object of array in swift code example Example: swift array of objects var foundation = [baseMakeUp]()