how to set UIColor with rgb using swift code example Example: swift set uicolor let swiftColor = UIColor(red: 1, green: 165/255, blue: 0, alpha: 1)