So. I have tried to create a person with struct in Swift and i'm wondering how to create an array using an instance of my struct.
Can anybody tell me how to do this?
struct Person{
var name: String
var boyOrGirl: Bool
init(names: String, bOg: Bool){
self.name = names
self.boyOrGirl = bOg
}
}
var personArray: Person = [["Heine",true], ["Magnus",true]]