NavigationTransition: use bottom navigation bar edge for dim offset

This commit is contained in:
Ilya Laktyushin 2019-05-01 16:16:05 +04:00
parent febf3d3f0e
commit 401a7b33c4

View File

@ -94,8 +94,8 @@ class NavigationTransitionCoordinator {
}
var dimInset: CGFloat = 0.0
if let topNavigationBar = self.topNavigationBar , self.inlineNavigationBarTransition {
dimInset = topNavigationBar.frame.maxY
if let bottomNavigationBar = self.bottomNavigationBar , self.inlineNavigationBarTransition {
dimInset = bottomNavigationBar.frame.maxY
}
let containerSize = self.container.bounds.size