add to an array swift code example
Example 1: how to insert element at start of the array ios swift
someArray.insert(someValue, atIndex: 0)
Example 2: swift append to array
var numbers = [1, 2, 3, 4, 5]
numbers.append(100)
print(numbers)
// Prints "[1, 2, 3, 4, 5, 100]"