I\'m trying to populate an array with numbers with an increase of 0.1 each like: [0.1,0.2,0.3...]
This code is giving me the error: fatal error: Array index ou
You can not add items to a Swift array with the subscript operator, you need to use append.
NOTE You can’t use subscript syntax to append a new item to the end of an array.”
Excerpt From: Apple Inc. “The Swift Programming Language (Swift 2 Prerelease).” iBooks. https://itun.es/us/k5SW7.l
Use append(), examples:
shoppingList.append("Flour")
pickerData.append(0.1)