title: SKSpriteNode creates a thin coloured line
body: <p>So I am using 3 <code>SKSpriteNode</code>'s in my application. <code>floorSprite</code>, <code>leftWall</code> and <code>rightWall</code>.</p>
  <p>This is the code I am currently using:</p>
  <pre><code>    let floorSprite = SKSpriteNode()//(imageNamed: &quot;floor&quot;)
      floorSprite.alpha = 0.0
      floorSprite.anchorPoint = CGPoint(x: 0.5, y: CGPoint.zero.y)
      floorSprite.physicsBody = SKPhysicsBody(rectangleOf: CGSize(width: self.frame.size.width, height: floorSprite.size.height + 12))
      floorSprite.physicsBody?.isDynamic = false
      floorSprite.physicsBody?.restitution = 0.4
      floorSprite.position = CGPoint(x: self.frame.minX, y: self.frame.minY + (floorSprite.size.height / 2))
      floorSprite.physicsBody?.contactTestBitMask = 0x1 &lt;&lt; 1
      floorSprite.physicsBody?.collisionBitMask = 0x1 &lt;&lt; 1
      floorSprite.zPosition = 4
      floorSprite.aspectFillToSize(self.frame.size)
      self.addChild(floorSprite)
      self.floorSprite = floorSprite
      
      let leftwall = SKSpriteNode()
      leftwall.physicsBody = SKPhysicsBody(rectangleOf: CGSize(width: 0.1, height: self.frame.size.height*2))
      leftwall.physicsBody?.collisionBitMask = 0x1 &lt;&lt; 1
      leftwall.physicsBody?.isDynamic = false
      leftwall.position = CGPoint(x: 0 , y: self.frame.size.height / 2.0)
      leftwall.zPosition = 4
      leftwall.physicsBody?.restitution = 1.0
      self.addChild(leftwall)
      
      let rightwall = SKSpriteNode()
      rightwall.physicsBody = SKPhysicsBody(rectangleOf: CGSize(width: 0.1, height: self.frame.size.height*2))
      rightwall.physicsBody?.collisionBitMask = 0x1 &lt;&lt; 1
      rightwall.physicsBody?.isDynamic = false
      rightwall.physicsBody?.restitution = 1.0
      rightwall.position = CGPoint(x: self.frame.size.width , y: self.frame.size.height / 2.0)
      rightwall.zPosition = 4
      self.addChild(rightwall)
  </code></pre>
  <p>Here is a screenshot of the issue I have. You can see the light blue lines that shows. If I remove the <code>self.addChild</code> line, the Sprite is not there, and the light blue color gone.
  <a href="https://i.stack.imgur.com/H0IvV.png" rel="nofollow noreferrer">CLICK HERE FOR IMAGE.</a></p>
  <p>Any ideas what might be wrong here? I have tried adding <code>leftWall.isHidden = true</code> and <code>leftWall.alpha = 0.0</code> but that has no effect...</p>