mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -163,6 +163,7 @@ public protocol CustomViewControllerNavigationDataSummary: AnyObject {
|
||||
|
||||
open var navigationPresentation: ViewControllerNavigationPresentation = .default
|
||||
open var _presentedInModal: Bool = false
|
||||
open var _hasGlassStyle: Bool = false
|
||||
open var flatReceivesModalTransition: Bool = false
|
||||
|
||||
public var presentedOverCoveringView: Bool = false
|
||||
@@ -241,7 +242,7 @@ public protocol CustomViewControllerNavigationDataSummary: AnyObject {
|
||||
let statusBarHeight: CGFloat = layout.statusBarHeight ?? 0.0
|
||||
var defaultNavigationBarHeight: CGFloat
|
||||
if self._presentedInModal && layout.orientation == .portrait {
|
||||
defaultNavigationBarHeight = 56.0
|
||||
defaultNavigationBarHeight = self._hasGlassStyle ? 66.0 : 56.0
|
||||
} else {
|
||||
defaultNavigationBarHeight = 44.0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user