Last active
September 1, 2016 14:44
-
-
Save alsedi/afa23a782a1559adb723245161b129e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private func generateShapes() { | |
for i in 0..<shapesCount * 2 - 1 { | |
let shape = MutableShapeLayer() | |
shape.setup(size: minimalSize + ((step / 2.0) * CGFloat(i)), center: center, thickness: shapeWidth, color: (i % 2 == 0) ? UIColor.black : UIColor.white) | |
shapes.append(shape) | |
layer.insertSublayer(shape, at: 0) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment