title: Userdefaults has no member standarduserdefaults in Swift3
body: <p>Type 'UserDefaults' has no member 'StandardUserDefaults'</p>
  
  <p>This is Swift 3.</p>
  
  <p>Here is the game view controller</p>
  
  <pre><code>import UIKit
  import SpriteKit
  
  class GameViewController: UIViewController {
  
      @IBOutlet var darkswitch: UISwitch!
  
      @IBOutlet var lightswitch: UISwitch!
  
      var DarkOn = Bool()
  
      var LightOn = Bool()
  
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
  
          if (DarkOn == true){
              darkswitch.isOn = true
              lightswitch.isOn = false
  
          }
  
          if (lightswitch == true){
              darkswitch.isOn = false
              lightswitch.isOn = true
  
          }
  
  
  
  
          if let scene = GameScene.unarchiveFromFile("GameScene") as? GameScene {
              // Configure the view.
              let skView = self.view as! SKView
  
              skView.backgroundColor = UIColor.white
  
              /* Sprite Kit applies additional optimizations to improve rendering performance */
              skView.ignoresSiblingOrder = true
  
              /* Set the scale mode to scale to fit the window */
              scene.scaleMode = .aspectFill
              ˚
              skView.presentScene(scene)
          }
      }
  
      override var shouldAutorotate : Bool {
          return true
      }
  
      override var supportedInterfaceOrientations : UIInterfaceOrientationMask {
          if UIDevice.current.userInterfaceIdiom == .phone {
              return UIInterfaceOrientationMask.allButUpsideDown
          } else {
              return UIInterfaceOrientationMask.all
          }
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Release any cached data, images, etc that aren't in use.
      }
  
      @IBAction func darkaction(_ sender: AnyObject) {
          darkswitch.isOn = true
          lightswitch.isOn = false
  
          var darkdefault = UserDefaults.StandardUserDefaults()
          darkdefault.setBool(true,forKey: "darkdefault")
  
  
          var lightdefault = UserDefaults.StandardUserDefaults()
  
          lightdefault.setBool (false, forkey: "lightdefault")
  
      }
  
  
      @IBAction func lightaction(_ sender: AnyObject) {
          darkswitch.isOn = false
          lightswitch.isOn = true
  
          var darkdefault = UserDefaults.StandardUserDefaults()
          darkdefault.setBool(false,forKey: "darkdefault")
  
  
          var lightdefault = UserDefaults.StandardUserDefaults()
  
          lightdefault.setBool (true, forkey: "lightdefault")
      }
  
  
  
      override var prefersStatusBarHidden : Bool {
          return true
      }
  }
  </code></pre>