title: Changing backgroundColor in Swift, Xcode 6
body: <p>I know the code to change the backgroundColor in iOS is something to this extent:</p>
  
  <pre><code>self.view.backgroundColor = UIColor.yellowColor()
  </code></pre>
  
  <p>But for some reason, I am getting an "Unexpected declaration" error.</p>
  
  <p>Anybody know why?</p>
  
  <p>This is the file I am dealing with, ViewController.swift. It is literally just a new single-view app template from Xcode 6.</p>
  
  <pre><code>//
  //  ViewController.swift
  //  backgroundColor
  //
  //  Created by Frank Barrett on 11/21/14.
  //  Copyright (c) 2014 Frank Barrett. All rights reserved.
  //
  
  import UIKit
  
  class ViewController: UIViewController {
  
  self.view.backgroundColor = UIColor.yellowColor()
  
  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.
  }
  
  
  }
  </code></pre>
  
  <p>The error is </p>
  
  <blockquote>
    <p>/Users/frank/Dropbox/code/ios/backgroundColor/backgroundColor/ViewController.swift:13:5: Expected ?>declaration</p>
  </blockquote>