title: Why my view in Debug View Hierarchy in a bit different than the same one on my device?
body: <p>I have a draggable view that is a subclass of <code>UIView</code> where I create a <code>subLayer</code> in <code>layoutSubviews</code> method like the following:</p>
  
  <pre><code>    let bezierPath = UIBezierPath()
      var shapeLayer = CAShapeLayer()
      let center = CGPoint(x: self.bounds.size.width/2, y: draggableRectangleHeight/2)
      bezierPath.addArcWithCenter(center, radius: draggableRectangleHeight/2 - 5, startAngle: 0.0, endAngle: CGFloat(M_PI * 2), clockwise: true)
      shapeLayer.path = bezierPath.CGPath
      shapeLayer.fillColor = UIColor.orangeColor().CGColor
      layer.addSublayer(shapeLayer)
  </code></pre>
  
  <p>The result I'm looking for is fine on my device:</p>
  
  <p><img src="https://i.stack.imgur.com/tajO0.png" alt="enter image description here"></p>
  
  <p>but in the <code>Debug View Hierarchy</code>, it seems the Y axis is reversed:</p>
  
  <p><img src="https://i.stack.imgur.com/r5hSg.png" alt="enter image description here"></p>
  
  <p>Any idea why it's different?</p>