Skip to content

Commit f67ac4e

Browse files
committed
try to fix content size tests again
1 parent 7289eb7 commit f67ac4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WorkflowSwiftUI/Tests/PreferredContentSizeTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import XCTest
77

88
final class PreferredContentSizeTests: XCTestCase {
99
func test_preferredContentSize() throws {
10-
guard #unavailable(iOS 18.0) else {
10+
// FIXME: actually solve whatever the problem is here
11+
let osMajorVersion = ProcessInfo.processInfo.operatingSystemVersion.majorVersion
12+
guard osMajorVersion < 18 else {
1113
try XCTSkipIf(true, "Intrinsic content size does not update unless hosted in an actual app on iOS 18")
1214
return
1315
}

0 commit comments

Comments
 (0)