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

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

Steve Hunter
Steve Hunter
Treehouse Moderator 57,657 Points

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.