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];
In Swift 4, just as simple as Swift 3:
self.view.backgroundColor = UIColor.brown