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];
The response by @Miknash and @wolfgang gutierrez barrera was helpful to me. Only difference was I had to add rgbValue: to the function call.
rgbValue:
UIColorFromHex(rgbValue: 0xA6D632,alpha: 1 ) like so
UIColorFromHex(rgbValue: 0xA6D632,alpha: 1 )