Skip to content

Commit 090c4d4

Browse files
committed
WIP
1 parent 47e94dc commit 090c4d4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Sources/ViewTypes/DatePickerWithCompactStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extension IntrospectableViewType where Self == DatePickerWithCompactStyleType {
6868
#if canImport(UIKit)
6969
extension iOSViewVersion<DatePickerWithCompactStyleType, UIDatePicker> {
7070
@available(*, unavailable, message: ".datePickerStyle(.compact) isn't available on iOS 13")
71-
public static let v13 = Self(for: .v13)
71+
public static let v13 = Self.unavailable()
7272
public static let v14 = Self(for: .v14)
7373
public static let v15 = Self(for: .v15)
7474
public static let v16 = Self(for: .v16)
@@ -83,7 +83,7 @@ extension visionOSViewVersion<DatePickerWithCompactStyleType, UIDatePicker> {
8383
#elseif canImport(AppKit) && !targetEnvironment(macCatalyst)
8484
extension macOSViewVersion<DatePickerWithCompactStyleType, NSDatePicker> {
8585
@available(*, unavailable, message: ".datePickerStyle(.compact) isn't available on macOS 10.15")
86-
public static let v10_15 = Self(for: .v10_15)
86+
public static let v10_15 = Self.unavailable()
8787
public static let v10_15_4 = Self(for: .v10_15_4)
8888
public static let v11 = Self(for: .v11)
8989
public static let v12 = Self(for: .v12)

Sources/ViewTypes/TabView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ 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+
@available(*, unavailable, message: "TabView is no longer backed by NSTabView starting macOS 15")
100+
public static let v15 = Self.unavailable()
99101
}
100102
#endif
101103
#endif

Tests/Tests/ViewTypes/TabViewTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ final class TabViewTests: XCTestCase {
1212
#endif
1313

1414
func testTabView() throws {
15-
if #available(macOS 15, *) {
15+
guard #unavailable(macOS 15) else {
1616
throw XCTSkip()
1717
}
1818

@@ -34,7 +34,7 @@ final class TabViewTests: XCTestCase {
3434
}
3535

3636
func testTabViewAsAncestor() throws {
37-
if #available(macOS 15, *) {
37+
guard #unavailable(macOS 15) else {
3838
throw XCTSkip()
3939
}
4040

0 commit comments

Comments
 (0)