Chat wallpaper improvements

This commit is contained in:
Ilya Laktyushin
2023-04-05 21:13:59 +04:00
parent c0f7e5f819
commit 5b80b9a85b
13 changed files with 207 additions and 179 deletions

View File

@@ -160,7 +160,6 @@ private final class BadgeNode: ASDisplayNode {
public final class SolidRoundedButtonNode: ASDisplayNode {
private var theme: SolidRoundedButtonTheme
private var font: SolidRoundedButtonFont
private var fontSize: CGFloat
private let gloss: Bool
@@ -204,6 +203,14 @@ public final class SolidRoundedButtonNode: ASDisplayNode {
}
}
public var font: SolidRoundedButtonFont {
didSet {
if let width = self.validLayout {
_ = self.updateLayout(width: width, transition: .immediate)
}
}
}
public var subtitle: String? {
didSet {
self.updateAccessibilityLabels()