Skip to content

Commit 569c4ee

Browse files
committed
WIP
1 parent dbd832b commit 569c4ee

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

Sources/ViewTypes/Button.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#if !os(watchOS)
2-
public import SwiftUI
3-
42
/// An abstract representation of the `Button` type in SwiftUI.
53
///
64
/// ### iOS
@@ -35,6 +33,8 @@ extension IntrospectableViewType where Self == ButtonType {
3533
}
3634

3735
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
36+
public import AppKit
37+
3838
extension macOSViewVersion<ButtonType, NSButton> {
3939
public static let v10_15 = Self(for: .v10_15)
4040
public static let v11 = Self(for: .v11)

Sources/ViewTypes/DatePickerWithFieldStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#if !os(watchOS)
2-
public import SwiftUI
3-
42
/// An abstract representation of the `DatePicker` type in SwiftUI, with `.field` style.
53
///
64
/// ### iOS
@@ -42,6 +40,8 @@ extension IntrospectableViewType where Self == DatePickerWithFieldStyleType {
4240
}
4341

4442
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
43+
public import AppKit
44+
4545
extension macOSViewVersion<DatePickerWithFieldStyleType, NSDatePicker> {
4646
public static let v10_15 = Self(for: .v10_15)
4747
public static let v11 = Self(for: .v11)

Sources/ViewTypes/DatePickerWithStepperFieldStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#if !os(watchOS)
2-
public import SwiftUI
3-
42
/// An abstract representation of the `DatePicker` type in SwiftUI, with `.stepperField` style.
53
///
64
/// ### iOS
@@ -42,6 +40,8 @@ extension IntrospectableViewType where Self == DatePickerWithStepperFieldStyleTy
4240
}
4341

4442
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
43+
public import AppKit
44+
4545
extension macOSViewVersion<DatePickerWithStepperFieldStyleType, NSDatePicker> {
4646
public static let v10_15 = Self(for: .v10_15)
4747
public static let v11 = Self(for: .v11)

Sources/ViewTypes/ListWithBorderedStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#if !os(watchOS)
2-
public import SwiftUI
3-
42
/// An abstract representation of the `List` type in SwiftUI, with `.bordered` style.
53
///
64
/// ### iOS
@@ -44,6 +42,8 @@ extension IntrospectableViewType where Self == ListWithBorderedStyleType {
4442
}
4543

4644
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
45+
public import AppKit
46+
4747
extension macOSViewVersion<ListWithBorderedStyleType, NSTableView> {
4848
@available(*, unavailable, message: ".listStyle(.insetGrouped) isn't available on macOS 10.15")
4949
public static let v10_15 = Self.unavailable()

Sources/ViewTypes/PickerWithMenuStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#if !os(watchOS)
2-
public import SwiftUI
3-
42
/// An abstract representation of the `Picker` type in SwiftUI, with `.menu` style.
53
///
64
/// ### iOS
@@ -46,6 +44,8 @@ extension IntrospectableViewType where Self == PickerWithMenuStyleType {
4644
}
4745

4846
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
47+
public import AppKit
48+
4949
extension macOSViewVersion<PickerWithMenuStyleType, NSPopUpButton> {
5050
@available(*, unavailable, message: ".pickerStyle(.menu) isn't available on macOS 10.15")
5151
public static let v10_15 = Self.unavailable()

Sources/ViewTypes/ToggleWithButtonStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#if !os(watchOS)
2-
public import SwiftUI
3-
42
/// An abstract representation of the `Toggle` type in SwiftUI, with `.button` style.
53
///
64
/// ### iOS
@@ -42,6 +40,8 @@ extension IntrospectableViewType where Self == ToggleWithButtonStyleType {
4240
}
4341

4442
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
43+
public import AppKit
44+
4545
extension macOSViewVersion<ToggleWithButtonStyleType, NSButton> {
4646
@available(*, unavailable, message: ".toggleStyle(.button) isn't available on macOS 10.15")
4747
public static let v10_15 = Self.unavailable()

Sources/ViewTypes/ToggleWithCheckboxStyle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#if !os(watchOS)
2-
public import SwiftUI
3-
42
/// An abstract representation of the `Toggle` type in SwiftUI, with `.checkbox` style.
53
///
64
/// ### iOS
@@ -42,6 +40,8 @@ extension IntrospectableViewType where Self == ToggleWithCheckboxStyleType {
4240
}
4341

4442
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
43+
public import AppKit
44+
4545
extension macOSViewVersion<ToggleWithCheckboxStyleType, NSButton> {
4646
public static let v10_15 = Self(for: .v10_15)
4747
public static let v11 = Self(for: .v11)

0 commit comments

Comments
 (0)