Swift: Creating Fibonacci numbers

Creating Fibonacci numbers

let N = 10

var fib = [Int](count: N, repeatedValue: 1)

for i in 2..<N {
    fib[i] = fib[i-1] + fib[i-2]
}

for number in fib {
    print(number)
}

swift