Unable to render UIBezierPath in playground
I remember there was a time when I can render the bezier path in the Xcode Playground, but with the latest version (8.3.1), that ability is gone?
import UIKit
let path = UIBezierPath()
path.move(to: .zero)
path.addLine(to: CGPoint(x: 100, y: 100))
All I can see is how many elements the path has:
Anyone have the same issue with Playground in Xcode 8.3.1?
+3
source to share
1 answer
I would say this is a bug in Xcode 8.3. This gave me the same result in Xcode 8.3. I just tried my code in Xcode 8.2.1 and it draws a line in the quick view.
This is what should be filed as an Apple bug report.
In the meantime, either use an older version of Xcode or insert a bezier path in the view and quickly preview the view.
+3
source to share