In DataModel. swift i have a class called DataModel with this struct :
struct pippo {
var x : Int
var y : Int
}
struct peppe {
var z : Int
var v : Int
}
struct franco {
var a : Int
var b : Int
}
Now i want to create an Array of Array of struct like this :
var array : [[DataModel.pippo],[DataModel.peppe],[DataModel.franco]] = [[],[],[]]
Is there a method ?
var array : ([DataModel.pippo],[DataModel.peppe],[DataModel.franco]) = ([],[],[])Am I right?