@@ -118,26 +118,14 @@ open class UKCircularProgress: UIView, UKComponent {
118
118
self . progressLayer. path = circlePath. cgPath
119
119
self . stripesMaskLayer. path = circlePath. cgPath
120
120
121
- if case . striped = self . model. style {
122
- let stripesPath = self . model. stripesBezierPath ( in: self . bounds)
123
-
124
- var transform = CGAffineTransform . identity
125
- transform = transform
126
- . translatedBy ( x: center. x, y: center. y)
127
- . rotated ( by: - CGFloat. pi / 2 )
128
- . translatedBy ( x: - center. x, y: - center. y)
129
-
130
- stripesPath. apply ( transform)
131
-
132
- self . stripesLayer. path = stripesPath. cgPath
133
- } else {
134
- CATransaction . begin ( )
135
- CATransaction . setDisableActions ( true )
136
- self . stripesLayer. path = nil
137
- self . stripesLayer. removeAllAnimations ( )
138
- self . stripesMaskLayer. removeAllAnimations ( )
139
- CATransaction . commit ( )
140
- }
121
+ let stripesPath = self . model. stripesBezierPath ( in: self . bounds)
122
+ var transform = CGAffineTransform . identity
123
+ transform = transform
124
+ . translatedBy ( x: center. x, y: center. y)
125
+ . rotated ( by: - CGFloat. pi / 2 )
126
+ . translatedBy ( x: - center. x, y: - center. y)
127
+ stripesPath. apply ( transform)
128
+ self . stripesLayer. path = stripesPath. cgPath
141
129
}
142
130
143
131
private func updateProgress( ) {
0 commit comments