swift set uicolor

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

Source

Also in Swift: