swift change background color

Swift
Color.blue.edgesIgnoringSafeArea(.all)self.view.backgroundColor = UIColor.red
Source

Also in Swift: