title: How to change programmatically the background color of in tvOS in Swift?
body: <p>I would like to change programmatically the color of the background in the main view (I'm creating an app with Swift).I tryed to put this code in viewDidLoad() but it doesn't work. What is the correct way to do this?</p>
  
  <pre><code>override func viewDidLoad() {
    super.viewDidLoad()
     ...
     let myBackground = UIView()
     let colorWhite = UIColor(red: 255, green: 255, blue: 255, alpha: 1)
     myBackground.backgroundColor = colorWhite
     ...
    }
  }
  </code></pre>