Check out example codes for "initializer generator xcode swift". It will help you in understanding the concepts better.
Code Example 1
right click on class name > refactor > generate memberwise initializer
Learn ReactJs, React Native from akashmittal.com