In previous versions of swift, you would get the colour white like this UIColor.whiteColor()
UIColor.whiteColor()
However, in Swift 3, you get the colour white without initi
You can use computed properties:
extension UIColor { static var custom: UIColor { return UIColor(white: 0.5, alpha: 1) } }