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

Code Example 1

let swiftColor = UIColor(red: 1, green: 165/255, blue: 0, alpha: 1)

Learn ReactJs, React Native from akashmittal.com