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