Learn how to construct paths and position CALayers
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4659-drawing-in-ios/lessons/4
Learn how to construct paths and position CALayers
Hi Caroline. Thank you so much for this valuable course. The download materials for Part4 only has the png files and no playground. Please correct me if this is how it is supposed to be :). Thanks
@d4devil - I’m glad you’re enjoying the course - thank you for letting us know - it should be fixed now.
Thanks for the great course, Caroline, really helpful! I’ve got two questions though:
CAShapeLayer
and work with that?CGRect.zero
and should actually be invisible (if I got the notion behind it right). Is it because we’re working in a playground that the layer still shows up, before you give it a fixed frame?Would be glad for some clarification
class View: UIView {
override class var layerClass: AnyClass {
return CAShapeLayer.self
}
}
let shapeLayer = view.layer as! CAShapeLayer