mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Web app improvements
This commit is contained in:
parent
fa57a05bcb
commit
b8aa47ec81
@ -53,9 +53,10 @@ public class WebAppCancelButtonNode: ASDisplayNode {
|
||||
private let strings: PresentationStrings
|
||||
|
||||
public func updateColor(_ color: UIColor?, transition: ContainedViewLayoutTransition) {
|
||||
let previousColor = self.color
|
||||
self.color = color
|
||||
|
||||
if case let .animated(duration, curve) = transition {
|
||||
if case let .animated(duration, curve) = transition, previousColor != color {
|
||||
if let snapshotView = self.view.snapshotContentTree() {
|
||||
snapshotView.frame = self.bounds
|
||||
self.view.addSubview(snapshotView)
|
||||
|
Loading…
x
Reference in New Issue
Block a user