mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -310,6 +310,7 @@ final class PhoneDemoComponent: Component {
|
||||
case swirlStars
|
||||
case fasterStars
|
||||
case badgeStars
|
||||
case emoji
|
||||
}
|
||||
|
||||
let context: AccountContext
|
||||
@@ -452,6 +453,13 @@ final class PhoneDemoComponent: Component {
|
||||
self.decorationView = starsView
|
||||
self.decorationContainerView.addSubview(starsView)
|
||||
}
|
||||
case .emoji:
|
||||
if let _ = self.decorationView as? EmojiStarsView {
|
||||
} else {
|
||||
let starsView = EmojiStarsView(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