| Set custom or some specific background colors in Swift Code?
Below are the two way to set background color in Swift:-
(1)To change the background color to green in a Swift UIViewController
self.view.backgroundColor = UIColor.green
(2)To set UI color in Swift
let whiteColor = UIColor(rgb: 0xFFFFFF)
self.view.backgroundColor = whiteColor | | |