Is there a way to set the UIView background color with Swift?
I know that in Objective-C, you would use self.view.backgroundColor = [UIColor redColor];,
self.view.backgroundColor = [UIColor redColor];
You can use this extension as an alternative if you're dealing with RGB value.
extension UIColor { static func rgb(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor { return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1) } }