Check out example codes for "swift array of objects". It will help you in understanding the concepts better.

Code Example 1

var foundation = [baseMakeUp]()

Learn ReactJs, React Native from akashmittal.com