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

Sara Worth
Sara Worth
5,225 Points

What am I doing wrong?

I believe I initialized blueColor correctly but it says it's wrong.

ViewController.swift
class ViewController: UIViewController {
  let blueColor = UIColor(red: 0.0/255.0, green: 0.0/255.0, blue: 255.0/255.0, alpha: 1.0)

  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

Mikis Woodwinter
Mikis Woodwinter
44,933 Points

Hi Sara,

You are correct but the Challenge is buggy. If you go with UIColor.blue, it should let you pass, though.

Sara Worth
Sara Worth
5,225 Points

Ok, thanks! :)