Various improvements

This commit is contained in:
Ilya Laktyushin
2024-02-27 10:38:24 +04:00
parent a603c138e9
commit 35e9887343
48 changed files with 590 additions and 202 deletions

View File

@@ -371,6 +371,7 @@ final class PhoneDemoComponent: Component {
case emoji
case hello
case tag
case business
}
enum Model {
@@ -547,6 +548,13 @@ final class PhoneDemoComponent: Component {
self.decorationView = starsView
self.decorationContainerView.addSubview(starsView)
}
case .business:
if let _ = self.decorationView as? BadgeBusinessView {
} else {
let starsView = BadgeBusinessView(frame: self.decorationContainerView.bounds)
self.decorationView = starsView
self.decorationContainerView.addSubview(starsView)
}
}
self.phoneView.setup(context: component.context, videoFile: component.videoFile, position: component.position)