
Tywan Claxton
8,368 PointsCode Challenge: Changing Background Color swift 3
I am lost don't know what to do
class ViewController: UIViewController {
let blueColor = UIColor.blue
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
1 Answer

Steve Hunter
57,667 PointsHi Tywan,
You need to call the backgroundColor
property of the view
object inside the viewDidLoad
method. Use dot notation on view
.
Something like, view.backgroundColor = blueColor
.
I hope that helps.
Steve.