create an array with constant number of component swift code example
Example: swift initialize array with size
let myArraySize: Int = 42
let myArray: [Int] = [Int](repeating: 0, count: myArraySize)
let myArraySize: Int = 42
let myArray: [Int] = [Int](repeating: 0, count: myArraySize)