changing color of background swift

Swift
self.view.backgroundColor = UIColor.blue // or .blue for shorthand
Source

Also in Swift: