initialize an array in swift with size 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)