mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various improvements
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user