How to Properly Declare Array of Custom Objects in Swift?
First, I’m going to assume you didn’t want 2d arrays. If you did, I’ll answer your question from that perspective below. var foundation = [baseMakeUp]() Creates an empty array of baseMakeUp called foundation. You can’t use subscripting to add elements to an array, you can only use it to change existing elements. Since your array … Read more