File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ - (void)_roundedButtonCommonInit TOROUNDEDBUTTON_OBJC_DIRECT {
122122 // Set the corner radius depending on system version
123123#ifdef __IPHONE_26_0
124124 if (@available (iOS 26.0 , *)) {
125+ _backgroundStyle = TORoundedButtonBackgroundStyleGlass;
125126 _cornerConfiguration = [UICornerConfiguration capsuleConfiguration ];
126127 } else {
127128 _cornerRadius = (_cornerRadius > FLT_EPSILON) ?: 12 .0f ;
@@ -131,7 +132,7 @@ - (void)_roundedButtonCommonInit TOROUNDEDBUTTON_OBJC_DIRECT {
131132#endif
132133
133134#ifdef __IPHONE_13_0
134- if (@available (iOS 13.0 , *)) { _blurStyle = UIBlurEffectStyleSystemThinMaterialDark ; }
135+ if (@available (iOS 13.0 , *)) { _blurStyle = UIBlurEffectStyleSystemThinMaterial ; }
135136#endif
136137
137138 // Set the corner radius depending on system version
@@ -649,7 +650,7 @@ - (void)setGlassStyle:(UIGlassEffectStyle)glassStyle {
649650
650651 UIGlassEffect *const glassEffect = [UIGlassEffect effectWithStyle: _glassStyle];
651652 glassEffect.tintColor = self.tintColor ;
652-
653+
653654 UIVisualEffectView *const effectView = (UIVisualEffectView *)_backgroundView;
654655 [effectView setEffect: glassEffect];
655656}
You can’t perform that action at this time.
0 commit comments