mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various improvements
This commit is contained in:
@@ -357,6 +357,16 @@ public final class ButtonComponent: Component {
|
||||
self.cornerRadius = cornerRadius
|
||||
self.isShimmering = isShimmering
|
||||
}
|
||||
|
||||
public func withIsShimmering(_ isShimmering: Bool) -> Background {
|
||||
return Background(
|
||||
color: self.color,
|
||||
foreground: self.foreground,
|
||||
pressedColor: self.pressedColor,
|
||||
cornerRadius: self.cornerRadius,
|
||||
isShimmering: isShimmering
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
public let background: Background
|
||||
|
||||
Reference in New Issue
Block a user