Skip to content

Commit 314be76

Browse files
committed
Make Liquid Glass the default on iOS 26
1 parent f150563 commit 314be76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

TORoundedButton/TORoundedButton.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)