Skip to content

Commit 3b2ba65

Browse files
committed
WIP
1 parent 76dc7cd commit 3b2ba65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+73
-73
lines changed

Sources/ViewTypes/Button.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public struct ButtonType: IntrospectableViewType {}
3131

3232
#if !os(iOS) && !os(tvOS) && !os(visionOS)
3333
extension IntrospectableViewType where Self == ButtonType {
34-
@MainActor public static var button: Self { .init() }
34+
public static var button: Self { .init() }
3535
}
3636

3737
#if canImport(AppKit) && !targetEnvironment(macCatalyst)

Sources/ViewTypes/ColorPicker.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public struct ColorPickerType: IntrospectableViewType {}
5555

5656
#if !os(tvOS)
5757
extension IntrospectableViewType where Self == ColorPickerType {
58-
@MainActor public static var colorPicker: Self { .init() }
58+
public static var colorPicker: Self { .init() }
5959
}
6060

6161
#if canImport(UIKit)

Sources/ViewTypes/DatePicker.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public struct DatePickerType: IntrospectableViewType {}
5353

5454
#if !os(tvOS)
5555
extension IntrospectableViewType where Self == DatePickerType {
56-
@MainActor public static var datePicker: Self { .init() }
56+
public static var datePicker: Self { .init() }
5757
}
5858

5959
#if canImport(UIKit)

Sources/ViewTypes/DatePickerWithCompactStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public struct DatePickerWithCompactStyleType: IntrospectableViewType {
6262

6363
#if !os(tvOS)
6464
extension IntrospectableViewType where Self == DatePickerWithCompactStyleType {
65-
@MainActor public static func datePicker(style: Self.Style) -> Self { .init() }
65+
public static func datePicker(style: Self.Style) -> Self { .init() }
6666
}
6767

6868
#if canImport(UIKit)

Sources/ViewTypes/DatePickerWithFieldStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public struct DatePickerWithFieldStyleType: IntrospectableViewType {
3838

3939
#if !os(iOS) && !os(tvOS) && !os(visionOS)
4040
extension IntrospectableViewType where Self == DatePickerWithFieldStyleType {
41-
@MainActor public static func datePicker(style: Self.Style) -> Self { .init() }
41+
public static func datePicker(style: Self.Style) -> Self { .init() }
4242
}
4343

4444
#if canImport(AppKit) && !targetEnvironment(macCatalyst)

Sources/ViewTypes/DatePickerWithGraphicalStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public struct DatePickerWithGraphicalStyleType: IntrospectableViewType {
6262

6363
#if !os(tvOS)
6464
extension IntrospectableViewType where Self == DatePickerWithGraphicalStyleType {
65-
@MainActor public static func datePicker(style: Self.Style) -> Self { .init() }
65+
public static func datePicker(style: Self.Style) -> Self { .init() }
6666
}
6767

6868
#if canImport(UIKit)

Sources/ViewTypes/DatePickerWithStepperFieldStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public struct DatePickerWithStepperFieldStyleType: IntrospectableViewType {
3838

3939
#if !os(iOS) && !os(tvOS) && !os(visionOS)
4040
extension IntrospectableViewType where Self == DatePickerWithStepperFieldStyleType {
41-
@MainActor public static func datePicker(style: Self.Style) -> Self { .init() }
41+
public static func datePicker(style: Self.Style) -> Self { .init() }
4242
}
4343

4444
#if canImport(AppKit) && !targetEnvironment(macCatalyst)

Sources/ViewTypes/DatePickerWithWheelStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public struct DatePickerWithWheelStyleType: IntrospectableViewType {
5050

5151
#if !os(tvOS) && !os(macOS)
5252
extension IntrospectableViewType where Self == DatePickerWithWheelStyleType {
53-
@MainActor public static func datePicker(style: Self.Style) -> Self { .init() }
53+
public static func datePicker(style: Self.Style) -> Self { .init() }
5454
}
5555

5656
#if canImport(UIKit)

Sources/ViewTypes/Form.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public struct FormType: IntrospectableViewType {}
6464

6565
#if !os(macOS)
6666
extension IntrospectableViewType where Self == FormType {
67-
@MainActor public static var form: Self { .init() }
67+
public static var form: Self { .init() }
6868
}
6969

7070
#if canImport(UIKit)

Sources/ViewTypes/FormWithGroupedStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public struct FormWithGroupedStyleType: IntrospectableViewType {
8181
}
8282

8383
extension IntrospectableViewType where Self == FormWithGroupedStyleType {
84-
@MainActor public static func form(style: Self.Style) -> Self { .init() }
84+
public static func form(style: Self.Style) -> Self { .init() }
8585
}
8686

8787
#if canImport(UIKit)

Sources/ViewTypes/FullScreenCover.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public struct FullScreenCoverType: IntrospectableViewType {
6666

6767
#if !os(macOS)
6868
extension IntrospectableViewType where Self == FullScreenCoverType {
69-
@MainActor public static var fullScreenCover: Self { .init() }
69+
public static var fullScreenCover: Self { .init() }
7070
}
7171

7272
#if canImport(UIKit)
@@ -79,7 +79,7 @@ extension iOSViewVersion<FullScreenCoverType, UIPresentationController> {
7979
public static let v17 = Self(for: .v17, selector: selector)
8080
public static let v18 = Self(for: .v18, selector: selector)
8181

82-
@MainActor private static var selector: IntrospectionSelector<UIPresentationController> {
82+
private static var selector: IntrospectionSelector<UIPresentationController> {
8383
.from(UIViewController.self, selector: { $0.presentationController })
8484
}
8585
}
@@ -93,7 +93,7 @@ extension tvOSViewVersion<FullScreenCoverType, UIPresentationController> {
9393
public static let v17 = Self(for: .v17, selector: selector)
9494
public static let v18 = Self(for: .v18, selector: selector)
9595

96-
@MainActor private static var selector: IntrospectionSelector<UIPresentationController> {
96+
private static var selector: IntrospectionSelector<UIPresentationController> {
9797
.from(UIViewController.self, selector: { $0.presentationController })
9898
}
9999
}
@@ -102,7 +102,7 @@ extension visionOSViewVersion<FullScreenCoverType, UIPresentationController> {
102102
public static let v1 = Self(for: .v1, selector: selector)
103103
public static let v2 = Self(for: .v2, selector: selector)
104104

105-
@MainActor private static var selector: IntrospectionSelector<UIPresentationController> {
105+
private static var selector: IntrospectionSelector<UIPresentationController> {
106106
.from(UIViewController.self, selector: { $0.presentationController })
107107
}
108108
}

Sources/ViewTypes/List.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ public struct ListType: IntrospectableViewType {
8080
}
8181

8282
extension IntrospectableViewType where Self == ListType {
83-
@MainActor public static var list: Self { .init() }
84-
@MainActor public static func list(style: Self.Style) -> Self { .init() }
83+
public static var list: Self { .init() }
84+
public static func list(style: Self.Style) -> Self { .init() }
8585
}
8686

8787
#if canImport(UIKit)

Sources/ViewTypes/ListCell.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public struct ListCellType: IntrospectableViewType {
7878
}
7979

8080
extension IntrospectableViewType where Self == ListCellType {
81-
@MainActor public static var listCell: Self { .init() }
81+
public static var listCell: Self { .init() }
8282
}
8383

8484
#if canImport(UIKit)

Sources/ViewTypes/ListWithBorderedStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public struct ListWithBorderedStyleType: IntrospectableViewType {
4040

4141
#if !os(iOS) && !os(tvOS) && !os(visionOS)
4242
extension IntrospectableViewType where Self == ListWithBorderedStyleType {
43-
@MainActor public static func list(style: Self.Style) -> Self { .init() }
43+
public static func list(style: Self.Style) -> Self { .init() }
4444
}
4545

4646
#if canImport(AppKit) && !targetEnvironment(macCatalyst)

Sources/ViewTypes/ListWithGroupedStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public struct ListWithGroupedStyleType: IntrospectableViewType {
7171

7272
#if !os(macOS)
7373
extension IntrospectableViewType where Self == ListWithGroupedStyleType {
74-
@MainActor public static func list(style: Self.Style) -> Self { .init() }
74+
public static func list(style: Self.Style) -> Self { .init() }
7575
}
7676

7777
#if canImport(UIKit)

Sources/ViewTypes/ListWithInsetGroupedStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public struct ListWithInsetGroupedStyleType: IntrospectableViewType {
5757

5858
#if !os(tvOS) && !os(macOS)
5959
extension IntrospectableViewType where Self == ListWithInsetGroupedStyleType {
60-
@MainActor public static func list(style: Self.Style) -> Self { .init() }
60+
public static func list(style: Self.Style) -> Self { .init() }
6161
}
6262

6363
#if canImport(UIKit)

Sources/ViewTypes/ListWithInsetStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public struct ListWithInsetStyleType: IntrospectableViewType {
7171

7272
#if !os(tvOS)
7373
extension IntrospectableViewType where Self == ListWithInsetStyleType {
74-
@MainActor public static func list(style: Self.Style) -> Self { .init() }
74+
public static func list(style: Self.Style) -> Self { .init() }
7575
}
7676

7777
#if canImport(UIKit)

Sources/ViewTypes/ListWithSidebarStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public struct ListWithSidebarStyleType: IntrospectableViewType {
7171

7272
#if !os(tvOS)
7373
extension IntrospectableViewType where Self == ListWithSidebarStyleType {
74-
@MainActor public static func list(style: Self.Style) -> Self { .init() }
74+
public static func list(style: Self.Style) -> Self { .init() }
7575
}
7676

7777
#if canImport(UIKit)

Sources/ViewTypes/Map.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public struct MapType: IntrospectableViewType {}
6868
import MapKit
6969

7070
extension IntrospectableViewType where Self == MapType {
71-
@MainActor public static var map: Self { .init() }
71+
public static var map: Self { .init() }
7272
}
7373

7474
extension iOSViewVersion<MapType, MKMapView> {

Sources/ViewTypes/NavigationSplitView.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import SwiftUI
7373
public struct NavigationSplitViewType: IntrospectableViewType {}
7474

7575
extension IntrospectableViewType where Self == NavigationSplitViewType {
76-
@MainActor public static var navigationSplitView: Self { .init() }
76+
public static var navigationSplitView: Self { .init() }
7777
}
7878

7979
#if canImport(UIKit)
@@ -89,7 +89,7 @@ extension iOSViewVersion<NavigationSplitViewType, UISplitViewController> {
8989
public static let v17 = Self(for: .v17, selector: selector)
9090
public static let v18 = Self(for: .v18, selector: selector)
9191

92-
@MainActor private static var selector: IntrospectionSelector<UISplitViewController> {
92+
private static var selector: IntrospectionSelector<UISplitViewController> {
9393
.default.withAncestorSelector { $0.splitViewController }
9494
}
9595
}
@@ -106,7 +106,7 @@ extension tvOSViewVersion<NavigationSplitViewType, UINavigationController> {
106106
public static let v17 = Self(for: .v17, selector: selector)
107107
public static let v18 = Self(for: .v18, selector: selector)
108108

109-
@MainActor private static var selector: IntrospectionSelector<UINavigationController> {
109+
private static var selector: IntrospectionSelector<UINavigationController> {
110110
.default.withAncestorSelector { $0.navigationController }
111111
}
112112
}
@@ -115,7 +115,7 @@ extension visionOSViewVersion<NavigationSplitViewType, UISplitViewController> {
115115
public static let v1 = Self(for: .v1, selector: selector)
116116
public static let v2 = Self(for: .v2, selector: selector)
117117

118-
@MainActor private static var selector: IntrospectionSelector<UISplitViewController> {
118+
private static var selector: IntrospectionSelector<UISplitViewController> {
119119
.default.withAncestorSelector { $0.splitViewController }
120120
}
121121
}

Sources/ViewTypes/NavigationStack.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import SwiftUI
5454
public struct NavigationStackType: IntrospectableViewType {}
5555

5656
extension IntrospectableViewType where Self == NavigationStackType {
57-
@MainActor public static var navigationStack: Self { .init() }
57+
public static var navigationStack: Self { .init() }
5858
}
5959

6060
#if canImport(UIKit)
@@ -70,7 +70,7 @@ extension iOSViewVersion<NavigationStackType, UINavigationController> {
7070
public static let v17 = Self(for: .v17, selector: selector)
7171
public static let v18 = Self(for: .v18, selector: selector)
7272

73-
@MainActor private static var selector: IntrospectionSelector<UINavigationController> {
73+
private static var selector: IntrospectionSelector<UINavigationController> {
7474
.default.withAncestorSelector { $0.navigationController }
7575
}
7676
}
@@ -87,7 +87,7 @@ extension tvOSViewVersion<NavigationStackType, UINavigationController> {
8787
public static let v17 = Self(for: .v17, selector: selector)
8888
public static let v18 = Self(for: .v18, selector: selector)
8989

90-
@MainActor private static var selector: IntrospectionSelector<UINavigationController> {
90+
private static var selector: IntrospectionSelector<UINavigationController> {
9191
.default.withAncestorSelector { $0.navigationController }
9292
}
9393
}
@@ -96,7 +96,7 @@ extension visionOSViewVersion<NavigationStackType, UINavigationController> {
9696
public static let v1 = Self(for: .v1, selector: selector)
9797
public static let v2 = Self(for: .v2, selector: selector)
9898

99-
@MainActor private static var selector: IntrospectionSelector<UINavigationController> {
99+
private static var selector: IntrospectionSelector<UINavigationController> {
100100
.default.withAncestorSelector { $0.navigationController }
101101
}
102102
}

Sources/ViewTypes/NavigationViewWithColumnsStyle.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public struct NavigationViewWithColumnsStyleType: IntrospectableViewType {
7373
}
7474

7575
extension IntrospectableViewType where Self == NavigationViewWithColumnsStyleType {
76-
@MainActor public static func navigationView(style: Self.Style) -> Self { .init() }
76+
public static func navigationView(style: Self.Style) -> Self { .init() }
7777
}
7878

7979
#if canImport(UIKit)
@@ -85,7 +85,7 @@ extension iOSViewVersion<NavigationViewWithColumnsStyleType, UISplitViewControll
8585
public static let v17 = Self(for: .v17, selector: selector)
8686
public static let v18 = Self(for: .v18, selector: selector)
8787

88-
@MainActor private static var selector: IntrospectionSelector<UISplitViewController> {
88+
private static var selector: IntrospectionSelector<UISplitViewController> {
8989
.default.withAncestorSelector { $0.splitViewController }
9090
}
9191
}
@@ -98,7 +98,7 @@ extension tvOSViewVersion<NavigationViewWithColumnsStyleType, UINavigationContro
9898
public static let v17 = Self(for: .v17, selector: selector)
9999
public static let v18 = Self(for: .v18, selector: selector)
100100

101-
@MainActor private static var selector: IntrospectionSelector<UINavigationController> {
101+
private static var selector: IntrospectionSelector<UINavigationController> {
102102
.default.withAncestorSelector { $0.navigationController }
103103
}
104104
}
@@ -107,7 +107,7 @@ extension visionOSViewVersion<NavigationViewWithColumnsStyleType, UISplitViewCon
107107
public static let v1 = Self(for: .v1, selector: selector)
108108
public static let v2 = Self(for: .v2, selector: selector)
109109

110-
@MainActor private static var selector: IntrospectionSelector<UISplitViewController> {
110+
private static var selector: IntrospectionSelector<UISplitViewController> {
111111
.default.withAncestorSelector { $0.splitViewController }
112112
}
113113
}

Sources/ViewTypes/NavigationViewWithStackStyle.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public struct NavigationViewWithStackStyleType: IntrospectableViewType {
6161
}
6262

6363
extension IntrospectableViewType where Self == NavigationViewWithStackStyleType {
64-
@MainActor public static func navigationView(style: Self.Style) -> Self { .init() }
64+
public static func navigationView(style: Self.Style) -> Self { .init() }
6565
}
6666

6767
#if canImport(UIKit)
@@ -73,7 +73,7 @@ extension iOSViewVersion<NavigationViewWithStackStyleType, UINavigationControlle
7373
public static let v17 = Self(for: .v17, selector: selector)
7474
public static let v18 = Self(for: .v18, selector: selector)
7575

76-
@MainActor private static var selector: IntrospectionSelector<UINavigationController> {
76+
private static var selector: IntrospectionSelector<UINavigationController> {
7777
.default.withAncestorSelector { $0.navigationController }
7878
}
7979
}
@@ -86,7 +86,7 @@ extension tvOSViewVersion<NavigationViewWithStackStyleType, UINavigationControll
8686
public static let v17 = Self(for: .v17, selector: selector)
8787
public static let v18 = Self(for: .v18, selector: selector)
8888

89-
@MainActor private static var selector: IntrospectionSelector<UINavigationController> {
89+
private static var selector: IntrospectionSelector<UINavigationController> {
9090
.default.withAncestorSelector { $0.navigationController }
9191
}
9292
}
@@ -95,7 +95,7 @@ extension visionOSViewVersion<NavigationViewWithStackStyleType, UINavigationCont
9595
public static let v1 = Self(for: .v1, selector: selector)
9696
public static let v2 = Self(for: .v2, selector: selector)
9797

98-
@MainActor private static var selector: IntrospectionSelector<UINavigationController> {
98+
private static var selector: IntrospectionSelector<UINavigationController> {
9999
.default.withAncestorSelector { $0.navigationController }
100100
}
101101
}

Sources/ViewTypes/PageControl.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ import SwiftUI
6060
public struct PageControlType: IntrospectableViewType {}
6161

6262
extension IntrospectableViewType where Self == PageControlType {
63-
@MainActor public static var pageControl: Self { .init() }
63+
public static var pageControl: Self { .init() }
6464
}
6565

6666
#if canImport(UIKit)

Sources/ViewTypes/PickerWithMenuStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public struct PickerWithMenuStyleType: IntrospectableViewType {
4242

4343
#if !os(iOS) && !os(tvOS) && !os(visionOS)
4444
extension IntrospectableViewType where Self == PickerWithMenuStyleType {
45-
@MainActor public static func picker(style: Self.Style) -> Self { .init() }
45+
public static func picker(style: Self.Style) -> Self { .init() }
4646
}
4747

4848
#if canImport(AppKit) && !targetEnvironment(macCatalyst)

Sources/ViewTypes/PickerWithSegmentedStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public struct PickerWithSegmentedStyleType: IntrospectableViewType {
8989
}
9090

9191
extension IntrospectableViewType where Self == PickerWithSegmentedStyleType {
92-
@MainActor public static func picker(style: Self.Style) -> Self { .init() }
92+
public static func picker(style: Self.Style) -> Self { .init() }
9393
}
9494

9595
#if canImport(UIKit)

Sources/ViewTypes/PickerWithWheelStyle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public struct PickerWithWheelStyleType: IntrospectableViewType {
5858

5959
#if !os(tvOS) && !os(macOS)
6060
extension IntrospectableViewType where Self == PickerWithWheelStyleType {
61-
@MainActor public static func picker(style: Self.Style) -> Self { .init() }
61+
public static func picker(style: Self.Style) -> Self { .init() }
6262
}
6363

6464
#if canImport(UIKit)

0 commit comments

Comments
 (0)