mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-01 20:28:05 +00:00
Fix iPad Pro layout detection
This commit is contained in:
parent
b5258b283a
commit
5b889d6367
@ -45,6 +45,10 @@ public enum DeviceMetrics: CaseIterable, Equatable {
|
||||
for device in DeviceMetrics.allCases {
|
||||
if let _ = onScreenNavigationHeight, device.onScreenNavigationHeight(inLandscape: false) == nil {
|
||||
if case .tablet = device.type {
|
||||
if screenSize.height == 1024.0 && screenSize.width == 768.0 {
|
||||
} else {
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
continue
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user