mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
iPad UI improvements
This commit is contained in:
@@ -92,6 +92,15 @@ public extension ContainerViewLayout {
|
||||
return insets
|
||||
}
|
||||
|
||||
var isModalOverlay: Bool {
|
||||
if case .tablet = self.deviceMetrics.type {
|
||||
if case .regular = self.metrics.widthClass {
|
||||
return abs(max(self.size.width, self.size.height) - self.deviceMetrics.screenSize.height) > 1.0
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var isNonExclusive: Bool {
|
||||
if case .tablet = self.deviceMetrics.type {
|
||||
if case .compact = self.metrics.widthClass {
|
||||
|
||||
Reference in New Issue
Block a user