@@ -58,7 +58,7 @@ - (void)setup {
5858 self.backgroundView = [[UIView alloc ] initWithFrame: self .bounds];
5959
6060 UIView *containerView = self;
61- #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_26_0
61+ #ifdef __IPHONE_26_0
6262 if (@available (iOS 26.0 , *)) {
6363 UIGlassEffect *glassEffect = [UIGlassEffect effectWithStyle: UIGlassEffectStyleClear];
6464 glassEffect.interactive = YES ;
@@ -108,7 +108,7 @@ - (void)setup {
108108 [_doneIconButton setImage: [TOCropToolbar doneImage ] forState: UIControlStateNormal];
109109 [_doneIconButton setTintColor: [UIColor colorWithRed: 1 .0f green: 0 .8f blue: 0 .0f alpha: 1 .0f ]];
110110 [_doneIconButton addTarget: self action: @selector (buttonTapped: ) forControlEvents: UIControlEventTouchUpInside];
111- #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_26_0
111+ #ifdef __IPHONE_26_0
112112 if (@available (iOS 26.0 , *)) {
113113 UIButtonConfiguration *configuration = [UIButtonConfiguration prominentGlassButtonConfiguration ];
114114 configuration.baseForegroundColor = [UIColor blackColor ];
@@ -139,7 +139,7 @@ - (void)setup {
139139 _cancelIconButton = [UIButton buttonWithType: UIButtonTypeSystem];
140140 [_cancelIconButton setImage: [TOCropToolbar cancelImage ] forState: UIControlStateNormal];
141141 [_cancelIconButton addTarget: self action: @selector (buttonTapped: ) forControlEvents: UIControlEventTouchUpInside];
142- #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_26_0
142+ #ifdef __IPHONE_26_0
143143 if (@available (iOS 26.0 , *)) {
144144 _cancelIconButton.configuration = [UIButtonConfiguration clearGlassButtonConfiguration ];
145145 }
0 commit comments