Created
May 2, 2020 11:16
-
-
Save akshitzaveri/97b8af518ded006e7c9cbf54e9772fb3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// MARK: - Animation | |
func startAnimating() { | |
// 1 | |
let path = UIBezierPath() | |
// 2 | |
let initialPoint = self.getPoint(for: 0) | |
path.move(to: initialPoint) | |
// 3 | |
for angle in 1...360 { path.addLine(to: self.getPoint(for: angle)) } | |
// 4 | |
path.close() | |
// 5 | |
self.animate(view: self.miniCircleView, path: path) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment