In an animation I added a lot of sublayers to a view, with:
[self.view.layer addSublayer:layer1]; [self.view.layer addSublayer:
Swift 5:
You can either remove the layer itself or iterate through them and do the following:
layer.removeAllAnimations() layer.removeFromSuperlayer()