We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09bb095 commit c63d3efCopy full SHA for c63d3ef
Sources/UIKitBackend/UIKitBackend+Passive.swift
@@ -15,7 +15,7 @@ extension UIKitBackend {
15
case .leading:
16
.natural
17
case .trailing:
18
- UIScreen.main.traitCollection.layoutDirection == .rightToLeft ? .left : .right
+ UITraitCollection.current.layoutDirection == .rightToLeft ? .left : .right
19
}
20
paragraphStyle.lineBreakMode = .byWordWrapping
21
Sources/UIKitBackend/UIKitBackend.swift
@@ -71,7 +71,7 @@ public final class UIKitBackend: AppBackend {
71
design: .default
72
)
73
74
- switch UIScreen.main.traitCollection.userInterfaceStyle {
+ switch UITraitCollection.current.userInterfaceStyle {
75
case .light:
76
environment.colorScheme = .light
77
case .dark:
0 commit comments