Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func update(progress: CGFloat) {
- let height: CGFloat = foregroundButton.bounds.height * progress
- let rect = CGRect(x: 0, y: 0, width: foregroundButton.bounds.width, height: height)
- let path = UIBezierPath(rect: rect).cgPath
- shapeLayer.path = path
- }
Add Comment
Please, Sign In to add comment