title: Fatal error: init(coder:) has not been implemented. Where is the error when running
body: <p><img src="https://i.stack.imgur.com/euPxh.png" alt="Picture of code"></p>
  
  <p>I don't understand how to fix the error. If someone understands please help! </p>
  
  <pre><code>class GameScene: SKScene {
      let player = SKSpriteNode(imageNamed: "playerShip")
      let bulletSound = SKAction.playSoundFileNamed("bulletSound.wav", waitForCompletion: false)
  
      var gameArea: CGRect
  
      override init(size: CGSize)
      {
          let maxAspectRatio: CGFloat = 16.0/9.0
          let playableWidth = size.height/maxAspectRatio
          let margin = (size.width - playableWidth)/2
          gameArea = CGRect(x: margin, y: 0, width: playableWidth, height: size.height)
          super.init(size: size)
      }
  
      required init?(coder aDecoder: NSCoder)
      {
          fatalError("init(coder:) has not been implemented")
      }
  </code></pre>
  
  <p>I'm trying to set boundaries for the objects on the screen. When I wrote <code>super.init(size: size)</code>, Xcode automatically created required <code>init?(coder aDecoder: NSCoder)</code>, but when it runs I get the error of:</p>
  
  <blockquote>
    <p>Thread 1: Fatal error: init(coder:) has not been implemented</p>
  </blockquote>