I just want to clear some things up:
If you have an array of tuples with named elements, just like in the answer, you can use the syntax described below to add elements to the array:
arrayObj.append(id: 1, name: "TestName")
If you have an array of tuples with not named elements, like this:
var arrayObj: [(Int, String)] = []
use this:
arrayObj.append(1, "TestName")
If you created a typealias for you tuple, you can add elements to the list with the tuple syntax:
typealias MyTuple = (Int, String)
var arrayObj: [MyTuple] = []
arrayObj.append((1, "TestName"))