iOS Build a Simple iPhone App with Swift Improving Our User Interface Changing the Background Color

Tywan Claxton
Tywan Claxton
8,368 Points

Code Challenge: Changing Background Color swift 3

I am lost don't know what to do

class ViewController: UIViewController {

let blueColor = 

  override func viewDidLoad() {
      // Do any additional setup after loading the view, typically from a nib.

  override func didReceiveMemoryWarning() {
      // Dispose of any resources that can be recreated.

1 Answer

Hi 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.