Commit 9d8ac8f 1 parent 66414ea commit 9d8ac8f Copy full SHA for 9d8ac8f
File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3249,6 +3249,10 @@ - (void)applyCenterViewOpacityIfNeeded {
3249
3249
#pragma mark - Center corner radius
3250
3250
3251
3251
- (void )setCenterViewCornerRadius : (CGFloat )centerViewCornerRadius {
3252
+ if (centerViewCornerRadius == _centerViewCornerRadius) {
3253
+ return ;
3254
+ }
3255
+
3252
3256
_centerViewCornerRadius = centerViewCornerRadius;
3253
3257
[self applyCenterViewCornerRadiusAnimated: NO ];
3254
3258
}
@@ -3278,6 +3282,10 @@ - (void)applyCenterViewCornerRadiusAnimated:(BOOL)animated {
3278
3282
UIBezierPath* path = [self generateCenterViewCornerRadiusPath ];
3279
3283
3280
3284
if (!self.slidingControllerView .layer .mask ) {
3285
+ if (_centerViewCornerRadius == 0 ) {
3286
+ return ;
3287
+ }
3288
+
3281
3289
self.slidingControllerView .layer .mask = [CAShapeLayer layer ];
3282
3290
((CAShapeLayer *)self.slidingControllerView .layer .mask ).path = [path CGPath ];
3283
3291
}
You can’t perform that action at this time.
0 commit comments