Various improvements

This commit is contained in:
Ilya Laktyushin
2025-01-10 05:15:00 +04:00
parent 2bf24b2bd9
commit b0511f146e
32 changed files with 720 additions and 393 deletions

View File

@@ -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