Kodeco Forums

Video Tutorial: CALayers Part 3: CAShapeLayer

Learn about how to use CAShapeLayer to create an animated circular progress control.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1812-video-tutorial-calayers-part-3-cashapelayer

How do you add constraints to CAShapeLayer so that the object is always in the same location no matter the device size? I’ve tried shapeLayer.position and although it puts the object in the location I want it is not consistent across devices. Any advice would be appreciated. Thank you!