Skip to content

Commit 47e94dc

Browse files
committed
WIP
1 parent 86cb044 commit 47e94dc

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

Sources/ViewTypes/TabView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ extension macOSViewVersion<TabViewType, NSTabView> {
9696
public static let v12 = Self(for: .v12)
9797
public static let v13 = Self(for: .v13)
9898
public static let v14 = Self(for: .v14)
99-
public static let v15 = Self(for: .v15)
10099
}
101100
#endif
102101
#endif

Tests/Tests/ViewTypes/TabViewTests.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ final class TabViewTests: XCTestCase {
1111
typealias PlatformTabView = NSTabView
1212
#endif
1313

14-
func testTabView() {
14+
func testTabView() throws {
15+
if #available(macOS 15, *) {
16+
throw XCTSkip()
17+
}
18+
1519
XCTAssertViewIntrospection(of: PlatformTabView.self) { spies in
1620
let spy = spies[0]
1721

@@ -24,12 +28,16 @@ final class TabViewTests: XCTestCase {
2428
#if os(iOS) || os(tvOS)
2529
.introspect(.tabView, on: .iOS(.v13, .v14, .v15, .v16, .v17, .v18), .tvOS(.v13, .v14, .v15, .v16, .v17, .v18), customize: spy)
2630
#elseif os(macOS)
27-
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15), customize: spy)
31+
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), customize: spy)
2832
#endif
2933
}
3034
}
3135

32-
func testTabViewAsAncestor() {
36+
func testTabViewAsAncestor() throws {
37+
if #available(macOS 15, *) {
38+
throw XCTSkip()
39+
}
40+
3341
XCTAssertViewIntrospection(of: PlatformTabView.self) { spies in
3442
let spy = spies[0]
3543

@@ -40,7 +48,7 @@ final class TabViewTests: XCTestCase {
4048
#if os(iOS) || os(tvOS)
4149
.introspect(.tabView, on: .iOS(.v13, .v14, .v15, .v16, .v17, .v18), .tvOS(.v13, .v14, .v15, .v16, .v17, .v18), scope: .ancestor, customize: spy)
4250
#elseif os(macOS)
43-
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14, .v15), scope: .ancestor, customize: spy)
51+
.introspect(.tabView, on: .macOS(.v10_15, .v11, .v12, .v13, .v14), scope: .ancestor, customize: spy)
4452
#endif
4553
}
4654
}

0 commit comments

Comments
 (0)