Check out example codes for "swift color converter". It will help you in understanding the concepts better.

Code Example 1

UIColor(red: 0.96, green: 0.96, blue: 0.97, alpha: 1.00)

Learn ReactJs, React Native from akashmittal.com