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 013d12e commit a29a9ccCopy full SHA for a29a9cc
Tests/OpenSwiftUITests/Data/Environment/UIKitEnvironmentTests.swift
@@ -7,10 +7,11 @@
7
import Testing
8
import UIKit
9
10
+@MainActor
11
struct UIKitEnvironmentTests {
12
@Test
13
func overrideTrait() {
- let trait = UITraitCollection.current
14
+ let trait = UITraitCollection()
15
#expect(trait.layoutDirection == .unspecified)
16
var environment = EnvironmentValues()
17
environment.layoutDirection = .rightToLeft
0 commit comments