Add support for web app header and background color customization

This commit is contained in:
Ilya Laktyushin
2022-05-26 01:06:19 +04:00
parent f4d9c0e2f7
commit 690045cf99
7 changed files with 98 additions and 23 deletions

View File

@@ -116,6 +116,7 @@ public final class SolidRoundedButtonComponent: Component {
}
if let button = self.button {
button.title = component.title
button.updateTheme(component.theme)
let height = button.updateLayout(width: availableSize.width, transition: .immediate)
transition.setFrame(view: button, frame: CGRect(origin: CGPoint(), size: CGSize(width: availableSize.width, height: height)), completion: nil)