mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various improvements
This commit is contained in:
@@ -241,8 +241,10 @@ public protocol CustomViewControllerNavigationDataSummary: AnyObject {
|
||||
open func navigationLayout(layout: ContainerViewLayout) -> NavigationLayout {
|
||||
let statusBarHeight: CGFloat = layout.statusBarHeight ?? 0.0
|
||||
var defaultNavigationBarHeight: CGFloat
|
||||
if self._presentedInModal && layout.orientation == .portrait {
|
||||
defaultNavigationBarHeight = self._hasGlassStyle ? 66.0 : 56.0
|
||||
if self._presentedInModal && self._hasGlassStyle {
|
||||
defaultNavigationBarHeight = 66.0
|
||||
} else if self._presentedInModal && layout.orientation == .portrait {
|
||||
defaultNavigationBarHeight = 56.0
|
||||
} else {
|
||||
defaultNavigationBarHeight = 44.0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user