Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-10-29 18:22:44 +04:00
parent ee17de35dd
commit b40dd4320b
3 changed files with 7 additions and 1 deletions

View File

@@ -549,6 +549,9 @@ final class BotCheckoutNativeCardEntryControllerNode: ViewControllerTracingNode,
}
func scrollViewDidScroll(_ scrollView: UIScrollView) {
guard !self.scrollNode.view.ignoreUpdateBounds else {
return
}
let value = scrollView.contentOffset.y + scrollView.contentInset.top
self.navigationBar?.updateBackgroundAlpha(min(30.0, value) / 30.0, transition: .immediate)
}