swift 원형 프로그레스 제작
import UIKit class CircleProgress: UIView { // 전역변수 let circle = CAShapeLayer () let pause = CAShapeLayer () let progress = CAShapeLayer () let mask = CAShapeLayer () let black = UIColor . blackColor (). CGColor // 초기값 var value: CGFloat = 0.0 required init ?(coder: NSCoder ) { super . init (coder: coder) Start () } override init (frame: CGRect ) { super . init (frame: frame) Start () } func Start() { // 크기 let rect = self . bounds let pauseRect = rect. insetBy (dx: rect. width / 3 , dy: re...