mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Temp
This commit is contained in:
@@ -237,7 +237,11 @@ public enum DeviceMetrics: CaseIterable, Equatable {
|
||||
public func onScreenNavigationHeight(inLandscape: Bool, systemOnScreenNavigationHeight: CGFloat?) -> CGFloat? {
|
||||
switch self {
|
||||
case .iPhoneX, .iPhoneXSMax, .iPhoneXr, .iPhone12Mini, .iPhone12, .iPhone12ProMax, .iPhone13Mini, .iPhone13, .iPhone13Pro, .iPhone13ProMax, .iPhone14Pro, .iPhone14ProMax, .iPhone16Pro, .iPhone16ProMax:
|
||||
return inLandscape ? 21.0 : 34.0
|
||||
if #available(iOS 26.0, *) {
|
||||
return 20.0
|
||||
} else {
|
||||
return inLandscape ? 21.0 : 34.0
|
||||
}
|
||||
case .iPhone14ProZoomed:
|
||||
return inLandscape ? 21.0 : 28.0
|
||||
case .iPhone14ProMaxZoomed:
|
||||
|
||||
Reference in New Issue
Block a user