Add blur to bot buttons

This commit is contained in:
Ali
2021-06-10 19:10:08 +04:00
parent 1343046314
commit c5871deb2c
4 changed files with 41 additions and 25 deletions

View File

@@ -209,6 +209,8 @@ public final class NavigationBackgroundNode: ASDisplayNode {
}
public func update(size: CGSize, cornerRadius: CGFloat = 0.0, transition: ContainedViewLayoutTransition) {
self.validLayout = (size, cornerRadius)
let contentFrame = CGRect(origin: CGPoint(), size: size)
transition.updateFrame(node: self.backgroundNode, frame: contentFrame)
if let effectView = self.effectView, effectView.frame != contentFrame {