Home > other >  Cannot use instance member 'emojis' within property initializer; property initializers run
Cannot use instance member 'emojis' within property initializer; property initializers run

Time:07-30

Cannot use instance member 'emojis' within property initializer; property initializers run before 'self' is available I have this error,would someone help me to remove it And I want to iterate through keys and value of dictionary.So one card is countries flag and other is its name.But positions of card with countries flag and card with name should appear randomly.

import SwiftUI

struct ContentView: View {
    @State var emojis: [String: String] = [
                  "           
  • Related