mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Improve smaller text rendering
This commit is contained in:
@@ -35,6 +35,16 @@ public struct LayoutMetrics: Equatable {
|
||||
}
|
||||
}
|
||||
|
||||
public extension LayoutMetrics {
|
||||
var isTablet: Bool {
|
||||
if case .regular = self.widthClass {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum LayoutOrientation {
|
||||
case portrait
|
||||
case landscape
|
||||
|
||||
Reference in New Issue
Block a user