mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Various improvements
This commit is contained in:
@@ -19,6 +19,7 @@ public final class SolidRoundedButtonComponent: Component {
|
||||
public let height: CGFloat
|
||||
public let cornerRadius: CGFloat
|
||||
public let gloss: Bool
|
||||
public let glass: Bool
|
||||
public let isEnabled: Bool
|
||||
public let iconName: String?
|
||||
public let animationName: String?
|
||||
@@ -39,6 +40,7 @@ public final class SolidRoundedButtonComponent: Component {
|
||||
height: CGFloat = 48.0,
|
||||
cornerRadius: CGFloat = 24.0,
|
||||
gloss: Bool = false,
|
||||
glass: Bool = false,
|
||||
isEnabled: Bool = true,
|
||||
iconName: String? = nil,
|
||||
animationName: String? = nil,
|
||||
@@ -58,6 +60,7 @@ public final class SolidRoundedButtonComponent: Component {
|
||||
self.height = height
|
||||
self.cornerRadius = cornerRadius
|
||||
self.gloss = gloss
|
||||
self.glass = glass
|
||||
self.isEnabled = isEnabled
|
||||
self.iconName = iconName
|
||||
self.animationName = animationName
|
||||
@@ -101,6 +104,9 @@ public final class SolidRoundedButtonComponent: Component {
|
||||
if lhs.gloss != rhs.gloss {
|
||||
return false
|
||||
}
|
||||
if lhs.glass != rhs.glass {
|
||||
return false
|
||||
}
|
||||
if lhs.isEnabled != rhs.isEnabled {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user