Improve smaller text rendering

This commit is contained in:
Ilya Laktyushin
2023-07-23 04:36:11 +02:00
parent a196a1684b
commit 8eaee14c41
10 changed files with 171 additions and 339 deletions

View File

@@ -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