Skip to content

Commit 25aaf0f

Browse files
committed
Removed liquid glass style from header
This reverts commit 21519b8.
1 parent 21519b8 commit 25aaf0f

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

TORoundedButton/TORoundedButton.h

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ NS_ASSUME_NONNULL_BEGIN
2727
@class TORoundedButton;
2828
@class UICornerConfiguration;
2929

30-
/// The types of static/dynamic visual styles that can be applied to the background.
31-
typedef NS_ENUM(NSInteger, TORoundedButtonBackgroundStyle) {
32-
TORoundedButtonBackgroundStyleSolid,
33-
TORoundedButtonBackgroundStyleBlur,
34-
TORoundedButtonBackgroundStyleGlass
35-
};
36-
3730
NS_SWIFT_NAME(RoundedButtonDelegate)
3831
@protocol TORoundedButtonDelegate <NSObject>
3932

@@ -71,15 +64,12 @@ IB_DESIGNABLE @interface TORoundedButton : UIControl
7164
/// (Default value is 15 points inset from each edge).
7265
@property (nonatomic, assign) UIEdgeInsets contentInset;
7366

74-
/// The style, whether static or dynamic of the button's background view.
75-
@property (nonatomic, assign) TORoundedButtonBackgroundStyle backgroundStyle;
67+
/// Replaces the solid color background with a blur view. (Default is NO)
68+
@property (nonatomic, assign) BOOL isTranslucent;
7669

77-
/// When `backgroundStyle` is set to `.blur`, the specific blur style to apply.
70+
/// When `isTranslucent` is `YES`, the amount of blur the background view has.
7871
@property (nonatomic, assign) UIBlurEffectStyle blurStyle;
7972

80-
/// When `backgroundStyle` is set to `.blur`, the specific blur style to apply.
81-
@property (nonatomic, assign) UIGlassEffectStyle glassStyle API_AVAILABLE(ios(26.0));
82-
8373
/// The text that is displayed in center of the button (Default is nil).
8474
/// This adds an internally controlled label view to the main content view.
8575
@property (nonatomic, copy, nullable) IBInspectable NSString *text;

0 commit comments

Comments
 (0)