Web app improvements

This commit is contained in:
Ilya Laktyushin 2023-09-09 21:49:09 +04:00
parent fa57a05bcb
commit b8aa47ec81

View File

@ -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)