Build Information
Failed to build SUICoordinator, reference 0.4.2 (b55c3d
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 06:04:44 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
| `- note: add 'if #available' version check
65 | let view = NavigationStack(path: $viewModel.items) {
66 | mainView.navigationDestination(for: Router.Route.self) {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:61:43: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
59 |
60 | @ViewBuilder
61 | private func buildBody() -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
62 | if viewModel.isTabbarCoordinable {
63 | addSheetTo(view: mainView)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:77:14: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
73 |
74 | @ViewBuilder
75 | private func addSheetTo(view: (some View)?) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
78 | coordinator: viewModel.sheetCoordinator,
79 | onDissmis: { index in
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:80:21: error: 'Task' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
73 |
74 | @ViewBuilder
75 | private func addSheetTo(view: (some View)?) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
78 | coordinator: viewModel.sheetCoordinator,
79 | onDissmis: { index in
80 | Task(priority: .high) { @MainActor [weak viewModel] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | viewModel?.removeItemFromSheetCoordinator(at: index)
82 | viewModel?.removeNilItemsFromSheetCoordinator()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:80:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
73 |
74 | @ViewBuilder
75 | private func addSheetTo(view: (some View)?) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
78 | coordinator: viewModel.sheetCoordinator,
79 | onDissmis: { index in
80 | Task(priority: .high) { @MainActor [weak viewModel] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | viewModel?.removeItemFromSheetCoordinator(at: index)
82 | viewModel?.removeNilItemsFromSheetCoordinator()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:93:21: error: setter for 'mainView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
89 | }
90 |
91 | private func onChangeFirstView(_ value: Router.Route?) {
| `- note: add @available attribute to enclosing instance method
92 | guard let view = value?.view else {
93 | return (mainView = nil)
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | }
95 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:96:9: error: setter for 'mainView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
89 | }
90 |
91 | private func onChangeFirstView(_ value: Router.Route?) {
| `- note: add @available attribute to enclosing instance method
92 | guard let view = value?.view else {
93 | return (mainView = nil)
94 | }
95 |
96 | mainView = AnyView(view)
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:96:20: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
89 | }
90 |
91 | private func onChangeFirstView(_ value: Router.Route?) {
| `- note: add @available attribute to enclosing instance method
92 | guard let view = value?.view else {
93 | return (mainView = nil)
94 | }
95 |
96 | mainView = AnyView(view)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:41:22: error: 'PresentationDetent' is only available in macOS 13.0 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: SCEquatable, Sendable {
| `- note: add @available attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
39 | case fullScreenCover
40 | /// A style allowing for presenting views with specific detents.
41 | case detents(Set<PresentationDetent>)
| `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
42 | }
43 |
[27/33] Compiling SUICoordinator TransitionPresentationStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterType.swift:33:29: error: 'ObservableObject' is only available in macOS 10.15 or newer
31 | /// Routers are responsible for the actual navigation and presentation of
32 | /// views or coordinators within a coordinator-based architecture.
33 | public protocol RouterType: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
34 |
35 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:34:6: error: 'StateObject' is only available in macOS 11.0 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
32 | // --------------------------------------------------------------------
33 |
34 | @StateObject var viewModel: Router
| `- error: 'StateObject' is only available in macOS 11.0 or newer
35 | @State private var mainView: AnyView?
36 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:35:34: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
33 |
34 | @StateObject var viewModel: Router
35 | @State private var mainView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
36 |
37 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
33 |
34 | @StateObject var viewModel: Router
35 | @State private var mainView: AnyView?
| `- error: 'State' is only available in macOS 10.15 or newer
36 |
37 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:49:20: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
47 | // --------------------------------------------------------------------
48 |
49 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
50 | ZStack { buildBody() }
51 | .onChange(of: viewModel.mainView, perform: onChangeFirstView)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:61:38: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
59 |
60 | @ViewBuilder
61 | private func buildBody() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
62 | if viewModel.isTabbarCoordinable {
63 | addSheetTo(view: mainView)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:60:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
58 |
59 |
60 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
61 | private func buildBody() -> some View {
| `- note: add @available attribute to enclosing instance method
62 | if viewModel.isTabbarCoordinable {
63 | addSheetTo(view: mainView)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:75:41: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
73 |
74 | @ViewBuilder
75 | private func addSheetTo(view: (some View)?) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:75:41: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
73 |
74 | @ViewBuilder
75 | private func addSheetTo(view: (some View)?) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:75:57: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
73 |
74 | @ViewBuilder
75 | private func addSheetTo(view: (some View)?) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:74:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
72 | }
73 |
74 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
75 | private func addSheetTo(view: (some View)?) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:50:9: error: 'ZStack' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
47 | // --------------------------------------------------------------------
48 |
49 | var body: some View {
| `- note: add @available attribute to enclosing property
50 | ZStack { buildBody() }
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .onChange(of: viewModel.mainView, perform: onChangeFirstView)
52 | .onViewDidLoad { onChangeFirstView(viewModel.mainView) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:51:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
47 | // --------------------------------------------------------------------
48 |
49 | var body: some View {
| `- note: add @available attribute to enclosing property
50 | ZStack { buildBody() }
51 | .onChange(of: viewModel.mainView, perform: onChangeFirstView)
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
52 | .onViewDidLoad { onChangeFirstView(viewModel.mainView) }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:62:42: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
59 |
60 | @ViewBuilder
61 | private func buildBody() -> some View {
| `- note: add @available attribute to enclosing instance method
62 | if viewModel.isTabbarCoordinable {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | addSheetTo(view: mainView)
64 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:65:24: error: 'NavigationStack' is only available in macOS 13.0 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
59 |
60 | @ViewBuilder
61 | private func buildBody() -> some View {
| `- note: add @available attribute to enclosing instance method
62 | if viewModel.isTabbarCoordinable {
63 | addSheetTo(view: mainView)
64 | } else {
65 | let view = NavigationStack(path: $viewModel.items) {
| |- error: 'NavigationStack' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
66 | mainView.navigationDestination(for: Router.Route.self) {
67 | AnyView($0.view)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:66:26: error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
59 |
60 | @ViewBuilder
61 | private func buildBody() -> some View {
| `- note: add @available attribute to enclosing instance method
62 | if viewModel.isTabbarCoordinable {
63 | addSheetTo(view: mainView)
64 | } else {
65 | let view = NavigationStack(path: $viewModel.items) {
66 | mainView.navigationDestination(for: Router.Route.self) {
| |- error: 'navigationDestination(for:destination:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
67 | AnyView($0.view)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:67:21: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
59 |
60 | @ViewBuilder
61 | private func buildBody() -> some View {
| `- note: add @available attribute to enclosing instance method
62 | if viewModel.isTabbarCoordinable {
63 | addSheetTo(view: mainView)
:
65 | let view = NavigationStack(path: $viewModel.items) {
66 | mainView.navigationDestination(for: Router.Route.self) {
67 | AnyView($0.view)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:64:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
59 |
60 | @ViewBuilder
61 | private func buildBody() -> some View {
| `- note: add @available attribute to enclosing instance method
62 | if viewModel.isTabbarCoordinable {
63 | addSheetTo(view: mainView)
64 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | let view = NavigationStack(path: $viewModel.items) {
66 | mainView.navigationDestination(for: Router.Route.self) {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:61:43: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
59 |
60 | @ViewBuilder
61 | private func buildBody() -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
62 | if viewModel.isTabbarCoordinable {
63 | addSheetTo(view: mainView)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:77:14: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
73 |
74 | @ViewBuilder
75 | private func addSheetTo(view: (some View)?) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
78 | coordinator: viewModel.sheetCoordinator,
79 | onDissmis: { index in
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:80:21: error: 'Task' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
73 |
74 | @ViewBuilder
75 | private func addSheetTo(view: (some View)?) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
78 | coordinator: viewModel.sheetCoordinator,
79 | onDissmis: { index in
80 | Task(priority: .high) { @MainActor [weak viewModel] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | viewModel?.removeItemFromSheetCoordinator(at: index)
82 | viewModel?.removeNilItemsFromSheetCoordinator()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:80:21: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
73 |
74 | @ViewBuilder
75 | private func addSheetTo(view: (some View)?) -> some View {
| `- note: add @available attribute to enclosing instance method
76 | view
77 | .sheetCoordinator(
78 | coordinator: viewModel.sheetCoordinator,
79 | onDissmis: { index in
80 | Task(priority: .high) { @MainActor [weak viewModel] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | viewModel?.removeItemFromSheetCoordinator(at: index)
82 | viewModel?.removeNilItemsFromSheetCoordinator()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:93:21: error: setter for 'mainView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
89 | }
90 |
91 | private func onChangeFirstView(_ value: Router.Route?) {
| `- note: add @available attribute to enclosing instance method
92 | guard let view = value?.view else {
93 | return (mainView = nil)
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | }
95 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:96:9: error: setter for 'mainView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
89 | }
90 |
91 | private func onChangeFirstView(_ value: Router.Route?) {
| `- note: add @available attribute to enclosing instance method
92 | guard let view = value?.view else {
93 | return (mainView = nil)
94 | }
95 |
96 | mainView = AnyView(view)
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouterView.swift:96:20: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct RouterView<Router: RouterType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
89 | }
90 |
91 | private func onChangeFirstView(_ value: Router.Route?) {
| `- note: add @available attribute to enclosing instance method
92 | guard let view = value?.view else {
93 | return (mainView = nil)
94 | }
95 |
96 | mainView = AnyView(view)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
97 | }
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:41:22: error: 'PresentationDetent' is only available in macOS 13.0 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: SCEquatable, Sendable {
| `- note: add @available attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
39 | case fullScreenCover
40 | /// A style allowing for presenting views with specific detents.
41 | case detents(Set<PresentationDetent>)
| `- error: 'PresentationDetent' is only available in macOS 13.0 or newer
42 | }
43 |
[28/33] Compiling SUICoordinator SheetCoordinatorType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorType.swift:38:37: error: 'View' is only available in macOS 10.15 or newer
29 | /// Sheet coordinator types define the interface for handling the presentation and removal of sheets
30 | /// in a coordinator-based architecture.
31 | public protocol SheetCoordinatorType: ObservableObject {
| `- note: add @available attribute to enclosing protocol
32 |
33 | // ---------------------------------------------------------
:
36 |
37 | /// A type alias representing a sheet item containing any view.
38 | typealias Item = SheetItem<(any View)>
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
39 |
40 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorType.swift:31:39: error: 'ObservableObject' is only available in macOS 10.15 or newer
29 | /// Sheet coordinator types define the interface for handling the presentation and removal of sheets
30 | /// in a coordinator-based architecture.
31 | public protocol SheetCoordinatorType: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
32 |
33 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:35:28: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
33 |
34 | typealias Action = ((Int) -> Void)
35 | typealias Value = (any View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
36 |
37 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:41:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
39 | // ---------------------------------------------------------
40 |
41 | @ObservedObject var coordinator: SheetCoordinator<Value>
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
42 | @State var index = 0
43 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:42:6: error: 'State' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
40 |
41 | @ObservedObject var coordinator: SheetCoordinator<Value>
42 | @State var index = 0
| `- error: 'State' is only available in macOS 10.15 or newer
43 |
44 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:57:41: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
55 |
56 | @ViewBuilder
57 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
58 | content
59 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:56:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
54 | // ---------------------------------------------------------
55 |
56 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
57 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
58 | content
59 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:83:15: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
83 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
84 | let view = (item.view() ?? AnyView(EmptyView()))
85 | .sheetCoordinator(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:98:26: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:98:26: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:100:15: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:96:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
94 | }
95 |
96 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:110:45: error: 'View' is only available in macOS 10.15 or newer
107 |
108 |
109 | extension View {
| `- note: add @available attribute to enclosing extension
110 | func hidden(_ shouldHide: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
111 | opacity(shouldHide ? 0 : 1)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:109:11: error: 'View' is only available in macOS 10.15 or newer
107 |
108 |
109 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
110 | func hidden(_ shouldHide: Bool) -> some View {
111 | opacity(shouldHide ? 0 : 1)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:63:45: error: cannot assign to property: '$coordinator' is immutable
61 | SheetView(
62 | index: index,
63 | items: $coordinator.items,
| `- error: cannot assign to property: '$coordinator' is immutable
64 | content: buildContent,
65 | transitionStyle: coordinator.lastPresentationStyle,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:70:42: error: cannot assign to property: '$coordinator' is immutable
68 | onDidLoad: onDidLoad
69 | )
70 | .hidden($coordinator.items.isEmpty || isLast)
| `- error: cannot assign to property: '$coordinator' is immutable
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:84:36: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
83 | ) -> some View {
84 | let view = (item.view() ?? AnyView(EmptyView()))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .sheetCoordinator(
86 | coordinator: coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:84:44: error: 'EmptyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
83 | ) -> some View {
84 | let view = (item.view() ?? AnyView(EmptyView()))
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .sheetCoordinator(
86 | coordinator: coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:93:29: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
:
91 | )
92 |
93 | return addSheet(to: AnyView(view), with: item.presentationStyle)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | }
95 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:102:46: error: 'presentationDetents' is only available in macOS 13.0 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
| |- error: 'presentationDetents' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
103 | default: content
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:102:38: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | default: content
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:103:22: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
:
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
103 | default: content
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | }
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:100:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:111:9: error: 'opacity' is only available in macOS 10.15 or newer
107 |
108 |
109 | extension View {
| `- note: add @available attribute to enclosing extension
110 | func hidden(_ shouldHide: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
111 | opacity(shouldHide ? 0 : 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 | }
[29/33] Compiling SUICoordinator SheetCoordinatorView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorType.swift:38:37: error: 'View' is only available in macOS 10.15 or newer
29 | /// Sheet coordinator types define the interface for handling the presentation and removal of sheets
30 | /// in a coordinator-based architecture.
31 | public protocol SheetCoordinatorType: ObservableObject {
| `- note: add @available attribute to enclosing protocol
32 |
33 | // ---------------------------------------------------------
:
36 |
37 | /// A type alias representing a sheet item containing any view.
38 | typealias Item = SheetItem<(any View)>
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
39 |
40 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorType.swift:31:39: error: 'ObservableObject' is only available in macOS 10.15 or newer
29 | /// Sheet coordinator types define the interface for handling the presentation and removal of sheets
30 | /// in a coordinator-based architecture.
31 | public protocol SheetCoordinatorType: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
32 |
33 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:35:28: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
33 |
34 | typealias Action = ((Int) -> Void)
35 | typealias Value = (any View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
36 |
37 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:41:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
39 | // ---------------------------------------------------------
40 |
41 | @ObservedObject var coordinator: SheetCoordinator<Value>
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
42 | @State var index = 0
43 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:42:6: error: 'State' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
40 |
41 | @ObservedObject var coordinator: SheetCoordinator<Value>
42 | @State var index = 0
| `- error: 'State' is only available in macOS 10.15 or newer
43 |
44 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:57:41: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
55 |
56 | @ViewBuilder
57 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
58 | content
59 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:56:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
54 | // ---------------------------------------------------------
55 |
56 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
57 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
58 | content
59 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:83:15: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
83 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
84 | let view = (item.view() ?? AnyView(EmptyView()))
85 | .sheetCoordinator(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:98:26: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:98:26: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:100:15: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:96:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
94 | }
95 |
96 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:110:45: error: 'View' is only available in macOS 10.15 or newer
107 |
108 |
109 | extension View {
| `- note: add @available attribute to enclosing extension
110 | func hidden(_ shouldHide: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
111 | opacity(shouldHide ? 0 : 1)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:109:11: error: 'View' is only available in macOS 10.15 or newer
107 |
108 |
109 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
110 | func hidden(_ shouldHide: Bool) -> some View {
111 | opacity(shouldHide ? 0 : 1)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:63:45: error: cannot assign to property: '$coordinator' is immutable
61 | SheetView(
62 | index: index,
63 | items: $coordinator.items,
| `- error: cannot assign to property: '$coordinator' is immutable
64 | content: buildContent,
65 | transitionStyle: coordinator.lastPresentationStyle,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:70:42: error: cannot assign to property: '$coordinator' is immutable
68 | onDidLoad: onDidLoad
69 | )
70 | .hidden($coordinator.items.isEmpty || isLast)
| `- error: cannot assign to property: '$coordinator' is immutable
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:84:36: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
83 | ) -> some View {
84 | let view = (item.view() ?? AnyView(EmptyView()))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .sheetCoordinator(
86 | coordinator: coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:84:44: error: 'EmptyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
83 | ) -> some View {
84 | let view = (item.view() ?? AnyView(EmptyView()))
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .sheetCoordinator(
86 | coordinator: coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:93:29: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
:
91 | )
92 |
93 | return addSheet(to: AnyView(view), with: item.presentationStyle)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | }
95 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:102:46: error: 'presentationDetents' is only available in macOS 13.0 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
| |- error: 'presentationDetents' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
103 | default: content
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:102:38: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | default: content
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:103:22: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
:
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
103 | default: content
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | }
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:100:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:111:9: error: 'opacity' is only available in macOS 10.15 or newer
107 |
108 |
109 | extension View {
| `- note: add @available attribute to enclosing extension
110 | func hidden(_ shouldHide: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
111 | opacity(shouldHide ? 0 : 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 | }
[30/33] Compiling SUICoordinator SheetItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorType.swift:38:37: error: 'View' is only available in macOS 10.15 or newer
29 | /// Sheet coordinator types define the interface for handling the presentation and removal of sheets
30 | /// in a coordinator-based architecture.
31 | public protocol SheetCoordinatorType: ObservableObject {
| `- note: add @available attribute to enclosing protocol
32 |
33 | // ---------------------------------------------------------
:
36 |
37 | /// A type alias representing a sheet item containing any view.
38 | typealias Item = SheetItem<(any View)>
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
39 |
40 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorType.swift:31:39: error: 'ObservableObject' is only available in macOS 10.15 or newer
29 | /// Sheet coordinator types define the interface for handling the presentation and removal of sheets
30 | /// in a coordinator-based architecture.
31 | public protocol SheetCoordinatorType: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
32 |
33 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:35:28: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
33 |
34 | typealias Action = ((Int) -> Void)
35 | typealias Value = (any View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
36 |
37 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:41:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
39 | // ---------------------------------------------------------
40 |
41 | @ObservedObject var coordinator: SheetCoordinator<Value>
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
42 | @State var index = 0
43 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:42:6: error: 'State' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
40 |
41 | @ObservedObject var coordinator: SheetCoordinator<Value>
42 | @State var index = 0
| `- error: 'State' is only available in macOS 10.15 or newer
43 |
44 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:57:41: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
55 |
56 | @ViewBuilder
57 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
58 | content
59 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:56:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
54 | // ---------------------------------------------------------
55 |
56 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
57 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
58 | content
59 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:83:15: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
83 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
84 | let view = (item.view() ?? AnyView(EmptyView()))
85 | .sheetCoordinator(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:98:26: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:98:26: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:100:15: error: 'View' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:96:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
94 | }
95 |
96 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:110:45: error: 'View' is only available in macOS 10.15 or newer
107 |
108 |
109 | extension View {
| `- note: add @available attribute to enclosing extension
110 | func hidden(_ shouldHide: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
111 | opacity(shouldHide ? 0 : 1)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:109:11: error: 'View' is only available in macOS 10.15 or newer
107 |
108 |
109 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
110 | func hidden(_ shouldHide: Bool) -> some View {
111 | opacity(shouldHide ? 0 : 1)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:63:45: error: cannot assign to property: '$coordinator' is immutable
61 | SheetView(
62 | index: index,
63 | items: $coordinator.items,
| `- error: cannot assign to property: '$coordinator' is immutable
64 | content: buildContent,
65 | transitionStyle: coordinator.lastPresentationStyle,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:70:42: error: cannot assign to property: '$coordinator' is immutable
68 | onDidLoad: onDidLoad
69 | )
70 | .hidden($coordinator.items.isEmpty || isLast)
| `- error: cannot assign to property: '$coordinator' is immutable
71 | }
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:84:36: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
83 | ) -> some View {
84 | let view = (item.view() ?? AnyView(EmptyView()))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .sheetCoordinator(
86 | coordinator: coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:84:44: error: 'EmptyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
83 | ) -> some View {
84 | let view = (item.view() ?? AnyView(EmptyView()))
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .sheetCoordinator(
86 | coordinator: coordinator,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:93:29: error: 'AnyView' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
78 |
79 |
80 | private func buildContent(
| `- note: add @available attribute to enclosing instance method
81 | with index: Int,
82 | item: SheetItem<Value>
:
91 | )
92 |
93 | return addSheet(to: AnyView(view), with: item.presentationStyle)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | }
95 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:102:46: error: 'presentationDetents' is only available in macOS 13.0 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
| |- error: 'presentationDetents' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
103 | default: content
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:102:38: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | default: content
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:103:22: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
:
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
103 | default: content
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | }
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:100:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import Combine
27 |
28 | struct SheetCoordinatorView: ViewModifier {
| `- note: add @available attribute to enclosing struct
29 |
30 | // ---------------------------------------------------------
:
95 |
96 | @ViewBuilder
97 | private func addSheet(
| `- note: add @available attribute to enclosing instance method
98 | to content: some View,
99 | with presentationStyle: TransitionPresentationStyle
100 | ) -> some View {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
101 | switch presentationStyle {
102 | case .detents(let data): content.presentationDetents(data)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetCoordinatorView.swift:111:9: error: 'opacity' is only available in macOS 10.15 or newer
107 |
108 |
109 | extension View {
| `- note: add @available attribute to enclosing extension
110 | func hidden(_ shouldHide: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
111 | opacity(shouldHide ? 0 : 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 | }
[31/33] Compiling SUICoordinator SheetView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:35:6: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
33 | // ---------------------------------------------------------
34 |
35 | @Binding var items: [Item?]
| `- error: 'Binding' is only available in macOS 10.15 or newer
36 |
37 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:54:16: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add @available attribute to enclosing initializer
53 | index: Int,
54 | items: Binding<[Item?]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
55 | @ViewBuilder content: @escaping (Int, (Item)) -> Content,
56 | transitionStyle: TransitionPresentationStyle?,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:55:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add @available attribute to enclosing initializer
53 | index: Int,
54 | items: Binding<[Item?]>,
55 | @ViewBuilder content: @escaping (Int, (Item)) -> Content,
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
56 | transitionStyle: TransitionPresentationStyle?,
57 | animated: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:74:20: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:97:34: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
95 |
96 | @ViewBuilder
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:97:70: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
95 |
96 | @ViewBuilder
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:96:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
94 | // ---------------------------------------------------------
95 |
96 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:108:39: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
106 |
107 | @ViewBuilder
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
109 | defaultView
110 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:108:75: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
106 |
107 | @ViewBuilder
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
109 | defaultView
110 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:107:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
105 | }
106 |
107 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
109 | defaultView
110 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:118:35: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:27:27: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:75:9: error: 'Group' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | if let index = $items.indices.firstIndex(of: index) {
77 | let item = $items[index]
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:75:9: error: 'init(content:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | if let index = $items.indices.firstIndex(of: index) {
77 | let item = $items[index]
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:76:35: error: 'indices' is only available in macOS 12.0 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
| |- error: 'indices' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | let item = $items[index]
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:81:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
79 | switch getTransitionStyle(from: index) {
80 | case .fullScreenCover:
81 | fullScreenView(item: item, index: index)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:81:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
79 | switch getTransitionStyle(from: index) {
80 | case .fullScreenCover:
81 | fullScreenView(item: item, index: index)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:83:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
81 | fullScreenView(item: item, index: index)
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | default:
85 | EmptyView()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:83:21: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
81 | fullScreenView(item: item, index: index)
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | default:
85 | EmptyView()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:85:21: error: 'EmptyView' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
83 | sheetView(item: item, index: index)
84 | default:
85 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:85:21: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
83 | sheetView(item: item, index: index)
84 | default:
85 | EmptyView()
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:76:65: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | let item = $items[index]
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:76:65: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
77 | let item = $items[index]
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:87:13: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
85 | EmptyView()
86 | }
87 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | .transaction { $0.disablesAnimations = !(animated) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:75:15: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
76 | if let index = $items.indices.firstIndex(of: index) {
77 | let item = $items[index]
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:89:10: error: 'transaction' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
87 | }
88 | }
89 | .transaction { $0.disablesAnimations = !(animated) }
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:89:27: error: 'disablesAnimations' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
87 | }
88 | }
89 | .transaction { $0.disablesAnimations = !(animated) }
| |- error: 'disablesAnimations' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:99:14: error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
95 |
96 | @ViewBuilder
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
| |- error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | item: item,
101 | onDismiss: { onDismiss?(index) },
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:110:14: error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
109 | defaultView
110 | .fullScreenCover(
| `- error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
111 | item: item,
112 | onDismiss: { onDismiss?(index) },
SwiftUI.View.fullScreenCover:2:25: note: 'fullScreenCover(item:onDismiss:content:)' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func fullScreenCover<Item, Content>(item: Binding<Item?>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping (Item) -> Content) -> some View where Item : Identifiable, Content : View
| `- note: 'fullScreenCover(item:onDismiss:content:)' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:119:9: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:119:15: error: 'blue' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:119:20: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/PageDataSource.swift:33:35: error: 'View' is only available in macOS 10.15 or newer
28 | ///
29 | /// Page data sources provide information such as title, icon, and position for a tabbar page.
30 | public protocol PageDataSource: SCHashable {
| `- note: add @available attribute to enclosing protocol
31 |
32 | /// A type alias representing a SwiftUI view.
33 | typealias View = (any SwiftUI.View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
34 |
35 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/PageDataSource.swift:40:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// Page data sources provide information such as title, icon, and position for a tabbar page.
30 | public protocol PageDataSource: SCHashable {
| `- note: add @available attribute to enclosing protocol
31 |
32 | /// A type alias representing a SwiftUI view.
:
38 |
39 | /// The title view for the page.
40 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
41 | var title: View { get }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/PageDataSource.swift:44:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// Page data sources provide information such as title, icon, and position for a tabbar page.
30 | public protocol PageDataSource: SCHashable {
| `- note: add @available attribute to enclosing protocol
31 |
32 | /// A type alias representing a SwiftUI view.
:
42 |
43 | /// The icon view for the page.
44 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
45 | var icon: View { get }
46 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:38:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
36 |
37 | /// The published router associated with the coordinator.
38 | @Published public var router: Router<DefaultRoute>
| `- error: 'Published' is only available in macOS 10.15 or newer
39 |
40 | /// The array of published pages associated with the tabbar coordinator.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:41:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
39 |
40 | /// The array of published pages associated with the tabbar coordinator.
41 | @Published public var pages: [Page] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
42 |
43 | /// The published current page associated with the tabbar coordinator.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:44:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
42 |
43 | /// The published current page associated with the tabbar coordinator.
44 | @Published public var currentPage: Page
| `- error: 'Published' is only available in macOS 10.15 or newer
45 |
46 | // --------------------------------------------------------------------
<unknown>:0: error: cannot convert value of type 'KeyPath<TabbarCoordinator<Page>, Router<DefaultRoute>>' to expected argument type 'ReferenceWritableKeyPath<TabbarCoordinator<Page>, Router<DefaultRoute>>'
<unknown>:0: error: cannot convert value of type 'KeyPath<TabbarCoordinator<Page>, [Page]>' to expected argument type 'ReferenceWritableKeyPath<TabbarCoordinator<Page>, [Page]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<TabbarCoordinator<Page>, Page>' to expected argument type 'ReferenceWritableKeyPath<TabbarCoordinator<Page>, Page>'
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:70:26: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
68 |
69 | /// A subject for setting badge values.
70 | public var setBadge: PassthroughSubject<(String?, Page), Never> = .init()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
71 |
72 | /// A custom view associated with the tabbar coordinator.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:92:9: error: setter for 'router' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
84 | /// - presentationStyle: The presentation style for transitioning between pages.
85 | /// - customView: A custom view associated with the tabbar coordinator.
86 | public init(
| `- note: add @available attribute to enclosing initializer
87 | pages: [Page],
88 | currentPage: Page,
:
90 | customView: (() -> Page.View?)? = nil
91 | ) {
92 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
94 | self.presentationStyle = presentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:95:9: error: setter for 'currentPage' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
84 | /// - presentationStyle: The presentation style for transitioning between pages.
85 | /// - customView: A custom view associated with the tabbar coordinator.
86 | public init(
| `- note: add @available attribute to enclosing initializer
87 | pages: [Page],
88 | currentPage: Page,
:
93 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
94 | self.presentationStyle = presentationStyle
95 | self.currentPage = currentPage
| |- error: setter for 'currentPage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | self.customView = customView
97 | self.pages = pages
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:97:9: error: setter for 'pages' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
84 | /// - presentationStyle: The presentation style for transitioning between pages.
85 | /// - customView: A custom view associated with the tabbar coordinator.
86 | public init(
| `- note: add @available attribute to enclosing initializer
87 | pages: [Page],
88 | currentPage: Page,
:
95 | self.currentPage = currentPage
96 | self.customView = customView
97 | self.pages = pages
| |- error: setter for 'pages' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 |
99 | router.isTabbarCoordinable = true
[32/33] Compiling SUICoordinator PageDataSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:35:6: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
33 | // ---------------------------------------------------------
34 |
35 | @Binding var items: [Item?]
| `- error: 'Binding' is only available in macOS 10.15 or newer
36 |
37 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:54:16: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add @available attribute to enclosing initializer
53 | index: Int,
54 | items: Binding<[Item?]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
55 | @ViewBuilder content: @escaping (Int, (Item)) -> Content,
56 | transitionStyle: TransitionPresentationStyle?,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:55:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add @available attribute to enclosing initializer
53 | index: Int,
54 | items: Binding<[Item?]>,
55 | @ViewBuilder content: @escaping (Int, (Item)) -> Content,
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
56 | transitionStyle: TransitionPresentationStyle?,
57 | animated: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:74:20: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:97:34: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
95 |
96 | @ViewBuilder
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:97:70: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
95 |
96 | @ViewBuilder
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:96:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
94 | // ---------------------------------------------------------
95 |
96 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:108:39: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
106 |
107 | @ViewBuilder
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
109 | defaultView
110 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:108:75: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
106 |
107 | @ViewBuilder
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
109 | defaultView
110 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:107:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
105 | }
106 |
107 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
109 | defaultView
110 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:118:35: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:27:27: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:75:9: error: 'Group' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | if let index = $items.indices.firstIndex(of: index) {
77 | let item = $items[index]
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:75:9: error: 'init(content:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | if let index = $items.indices.firstIndex(of: index) {
77 | let item = $items[index]
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:76:35: error: 'indices' is only available in macOS 12.0 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
| |- error: 'indices' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | let item = $items[index]
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:81:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
79 | switch getTransitionStyle(from: index) {
80 | case .fullScreenCover:
81 | fullScreenView(item: item, index: index)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:81:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
79 | switch getTransitionStyle(from: index) {
80 | case .fullScreenCover:
81 | fullScreenView(item: item, index: index)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:83:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
81 | fullScreenView(item: item, index: index)
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | default:
85 | EmptyView()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:83:21: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
81 | fullScreenView(item: item, index: index)
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | default:
85 | EmptyView()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:85:21: error: 'EmptyView' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
83 | sheetView(item: item, index: index)
84 | default:
85 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:85:21: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
83 | sheetView(item: item, index: index)
84 | default:
85 | EmptyView()
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:76:65: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | let item = $items[index]
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:76:65: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
77 | let item = $items[index]
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:87:13: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
85 | EmptyView()
86 | }
87 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | .transaction { $0.disablesAnimations = !(animated) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:75:15: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
76 | if let index = $items.indices.firstIndex(of: index) {
77 | let item = $items[index]
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:89:10: error: 'transaction' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
87 | }
88 | }
89 | .transaction { $0.disablesAnimations = !(animated) }
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:89:27: error: 'disablesAnimations' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
87 | }
88 | }
89 | .transaction { $0.disablesAnimations = !(animated) }
| |- error: 'disablesAnimations' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:99:14: error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
95 |
96 | @ViewBuilder
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
| |- error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | item: item,
101 | onDismiss: { onDismiss?(index) },
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:110:14: error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
109 | defaultView
110 | .fullScreenCover(
| `- error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
111 | item: item,
112 | onDismiss: { onDismiss?(index) },
SwiftUI.View.fullScreenCover:2:25: note: 'fullScreenCover(item:onDismiss:content:)' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func fullScreenCover<Item, Content>(item: Binding<Item?>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping (Item) -> Content) -> some View where Item : Identifiable, Content : View
| `- note: 'fullScreenCover(item:onDismiss:content:)' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:119:9: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:119:15: error: 'blue' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:119:20: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/PageDataSource.swift:33:35: error: 'View' is only available in macOS 10.15 or newer
28 | ///
29 | /// Page data sources provide information such as title, icon, and position for a tabbar page.
30 | public protocol PageDataSource: SCHashable {
| `- note: add @available attribute to enclosing protocol
31 |
32 | /// A type alias representing a SwiftUI view.
33 | typealias View = (any SwiftUI.View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
34 |
35 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/PageDataSource.swift:40:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// Page data sources provide information such as title, icon, and position for a tabbar page.
30 | public protocol PageDataSource: SCHashable {
| `- note: add @available attribute to enclosing protocol
31 |
32 | /// A type alias representing a SwiftUI view.
:
38 |
39 | /// The title view for the page.
40 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
41 | var title: View { get }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/PageDataSource.swift:44:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// Page data sources provide information such as title, icon, and position for a tabbar page.
30 | public protocol PageDataSource: SCHashable {
| `- note: add @available attribute to enclosing protocol
31 |
32 | /// A type alias representing a SwiftUI view.
:
42 |
43 | /// The icon view for the page.
44 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
45 | var icon: View { get }
46 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:38:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
36 |
37 | /// The published router associated with the coordinator.
38 | @Published public var router: Router<DefaultRoute>
| `- error: 'Published' is only available in macOS 10.15 or newer
39 |
40 | /// The array of published pages associated with the tabbar coordinator.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:41:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
39 |
40 | /// The array of published pages associated with the tabbar coordinator.
41 | @Published public var pages: [Page] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
42 |
43 | /// The published current page associated with the tabbar coordinator.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:44:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
42 |
43 | /// The published current page associated with the tabbar coordinator.
44 | @Published public var currentPage: Page
| `- error: 'Published' is only available in macOS 10.15 or newer
45 |
46 | // --------------------------------------------------------------------
<unknown>:0: error: cannot convert value of type 'KeyPath<TabbarCoordinator<Page>, Router<DefaultRoute>>' to expected argument type 'ReferenceWritableKeyPath<TabbarCoordinator<Page>, Router<DefaultRoute>>'
<unknown>:0: error: cannot convert value of type 'KeyPath<TabbarCoordinator<Page>, [Page]>' to expected argument type 'ReferenceWritableKeyPath<TabbarCoordinator<Page>, [Page]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<TabbarCoordinator<Page>, Page>' to expected argument type 'ReferenceWritableKeyPath<TabbarCoordinator<Page>, Page>'
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:70:26: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
68 |
69 | /// A subject for setting badge values.
70 | public var setBadge: PassthroughSubject<(String?, Page), Never> = .init()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
71 |
72 | /// A custom view associated with the tabbar coordinator.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:92:9: error: setter for 'router' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
84 | /// - presentationStyle: The presentation style for transitioning between pages.
85 | /// - customView: A custom view associated with the tabbar coordinator.
86 | public init(
| `- note: add @available attribute to enclosing initializer
87 | pages: [Page],
88 | currentPage: Page,
:
90 | customView: (() -> Page.View?)? = nil
91 | ) {
92 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
94 | self.presentationStyle = presentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:95:9: error: setter for 'currentPage' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
84 | /// - presentationStyle: The presentation style for transitioning between pages.
85 | /// - customView: A custom view associated with the tabbar coordinator.
86 | public init(
| `- note: add @available attribute to enclosing initializer
87 | pages: [Page],
88 | currentPage: Page,
:
93 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
94 | self.presentationStyle = presentationStyle
95 | self.currentPage = currentPage
| |- error: setter for 'currentPage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | self.customView = customView
97 | self.pages = pages
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:97:9: error: setter for 'pages' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
84 | /// - presentationStyle: The presentation style for transitioning between pages.
85 | /// - customView: A custom view associated with the tabbar coordinator.
86 | public init(
| `- note: add @available attribute to enclosing initializer
87 | pages: [Page],
88 | currentPage: Page,
:
95 | self.currentPage = currentPage
96 | self.customView = customView
97 | self.pages = pages
| |- error: setter for 'pages' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 |
99 | router.isTabbarCoordinable = true
[33/33] Compiling SUICoordinator TabbarCoordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:35:6: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
33 | // ---------------------------------------------------------
34 |
35 | @Binding var items: [Item?]
| `- error: 'Binding' is only available in macOS 10.15 or newer
36 |
37 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:54:16: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add @available attribute to enclosing initializer
53 | index: Int,
54 | items: Binding<[Item?]>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
55 | @ViewBuilder content: @escaping (Int, (Item)) -> Content,
56 | transitionStyle: TransitionPresentationStyle?,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:55:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add @available attribute to enclosing initializer
53 | index: Int,
54 | items: Binding<[Item?]>,
55 | @ViewBuilder content: @escaping (Int, (Item)) -> Content,
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
56 | transitionStyle: TransitionPresentationStyle?,
57 | animated: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:74:20: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:97:34: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
95 |
96 | @ViewBuilder
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:97:70: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
95 |
96 | @ViewBuilder
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:96:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
94 | // ---------------------------------------------------------
95 |
96 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:108:39: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
106 |
107 | @ViewBuilder
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
109 | defaultView
110 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:108:75: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
106 |
107 | @ViewBuilder
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
109 | defaultView
110 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:107:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
105 | }
106 |
107 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
109 | defaultView
110 | .fullScreenCover(
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:118:35: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:27:27: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:75:9: error: 'Group' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
| |- error: 'Group' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | if let index = $items.indices.firstIndex(of: index) {
77 | let item = $items[index]
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:75:9: error: 'init(content:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | if let index = $items.indices.firstIndex(of: index) {
77 | let item = $items[index]
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:76:35: error: 'indices' is only available in macOS 12.0 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
| |- error: 'indices' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
77 | let item = $items[index]
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:81:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
79 | switch getTransitionStyle(from: index) {
80 | case .fullScreenCover:
81 | fullScreenView(item: item, index: index)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:81:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
79 | switch getTransitionStyle(from: index) {
80 | case .fullScreenCover:
81 | fullScreenView(item: item, index: index)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:83:21: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
81 | fullScreenView(item: item, index: index)
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | default:
85 | EmptyView()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:83:21: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
81 | fullScreenView(item: item, index: index)
82 | case .sheet, .detents:
83 | sheetView(item: item, index: index)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | default:
85 | EmptyView()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:85:21: error: 'EmptyView' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
83 | sheetView(item: item, index: index)
84 | default:
85 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:85:21: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
83 | sheetView(item: item, index: index)
84 | default:
85 | EmptyView()
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | }
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:76:65: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | let item = $items[index]
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:76:65: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
77 | let item = $items[index]
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:87:13: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
85 | EmptyView()
86 | }
87 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | .transaction { $0.disablesAnimations = !(animated) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:75:15: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
76 | if let index = $items.indices.firstIndex(of: index) {
77 | let item = $items[index]
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:89:10: error: 'transaction' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
87 | }
88 | }
89 | .transaction { $0.disablesAnimations = !(animated) }
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:89:27: error: 'disablesAnimations' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
72 | // ---------------------------------------------------------
73 |
74 | var body: some View {
| `- note: add @available attribute to enclosing property
75 | Group {
76 | if let index = $items.indices.firstIndex(of: index) {
:
87 | }
88 | }
89 | .transaction { $0.disablesAnimations = !(animated) }
| |- error: 'disablesAnimations' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:99:14: error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
95 |
96 | @ViewBuilder
97 | private func sheetView(item: Binding<Item?>, index: Int) -> some View {
| `- note: add @available attribute to enclosing instance method
98 | defaultView
99 | .sheet(
| |- error: 'sheet(item:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
100 | item: item,
101 | onDismiss: { onDismiss?(index) },
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:110:14: error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
108 | private func fullScreenView(item: Binding<Item?>, index: Int) -> some View {
109 | defaultView
110 | .fullScreenCover(
| `- error: 'fullScreenCover(item:onDismiss:content:)' is unavailable in macOS
111 | item: item,
112 | onDismiss: { onDismiss?(index) },
SwiftUI.View.fullScreenCover:2:25: note: 'fullScreenCover(item:onDismiss:content:)' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func fullScreenCover<Item, Content>(item: Binding<Item?>, onDismiss: (() -> Void)? = nil, @ViewBuilder content: @escaping (Item) -> Content) -> some View where Item : Identifiable, Content : View
| `- note: 'fullScreenCover(item:onDismiss:content:)' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:119:9: error: 'Color' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:119:15: error: 'blue' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/SheetCoordinator/SheetView.swift:119:20: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct SheetView<Content: View, T: SheetItemType>: View {
| `- note: add @available attribute to enclosing generic struct
28 |
29 | typealias Item = T
:
116 | }
117 |
118 | private var defaultView: some View {
| `- note: add @available attribute to enclosing property
119 | Color.blue.frame(width: 0.3, height: 0.3)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | }
121 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/PageDataSource.swift:33:35: error: 'View' is only available in macOS 10.15 or newer
28 | ///
29 | /// Page data sources provide information such as title, icon, and position for a tabbar page.
30 | public protocol PageDataSource: SCHashable {
| `- note: add @available attribute to enclosing protocol
31 |
32 | /// A type alias representing a SwiftUI view.
33 | typealias View = (any SwiftUI.View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing type alias
34 |
35 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/PageDataSource.swift:40:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// Page data sources provide information such as title, icon, and position for a tabbar page.
30 | public protocol PageDataSource: SCHashable {
| `- note: add @available attribute to enclosing protocol
31 |
32 | /// A type alias representing a SwiftUI view.
:
38 |
39 | /// The title view for the page.
40 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
41 | var title: View { get }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/PageDataSource.swift:44:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
28 | ///
29 | /// Page data sources provide information such as title, icon, and position for a tabbar page.
30 | public protocol PageDataSource: SCHashable {
| `- note: add @available attribute to enclosing protocol
31 |
32 | /// A type alias representing a SwiftUI view.
:
42 |
43 | /// The icon view for the page.
44 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
45 | var icon: View { get }
46 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:38:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
36 |
37 | /// The published router associated with the coordinator.
38 | @Published public var router: Router<DefaultRoute>
| `- error: 'Published' is only available in macOS 10.15 or newer
39 |
40 | /// The array of published pages associated with the tabbar coordinator.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:41:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
39 |
40 | /// The array of published pages associated with the tabbar coordinator.
41 | @Published public var pages: [Page] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
42 |
43 | /// The published current page associated with the tabbar coordinator.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:44:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
42 |
43 | /// The published current page associated with the tabbar coordinator.
44 | @Published public var currentPage: Page
| `- error: 'Published' is only available in macOS 10.15 or newer
45 |
46 | // --------------------------------------------------------------------
<unknown>:0: error: cannot convert value of type 'KeyPath<TabbarCoordinator<Page>, Router<DefaultRoute>>' to expected argument type 'ReferenceWritableKeyPath<TabbarCoordinator<Page>, Router<DefaultRoute>>'
<unknown>:0: error: cannot convert value of type 'KeyPath<TabbarCoordinator<Page>, [Page]>' to expected argument type 'ReferenceWritableKeyPath<TabbarCoordinator<Page>, [Page]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<TabbarCoordinator<Page>, Page>' to expected argument type 'ReferenceWritableKeyPath<TabbarCoordinator<Page>, Page>'
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:70:26: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
68 |
69 | /// A subject for setting badge values.
70 | public var setBadge: PassthroughSubject<(String?, Page), Never> = .init()
| `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
71 |
72 | /// A custom view associated with the tabbar coordinator.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:92:9: error: setter for 'router' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
84 | /// - presentationStyle: The presentation style for transitioning between pages.
85 | /// - customView: A custom view associated with the tabbar coordinator.
86 | public init(
| `- note: add @available attribute to enclosing initializer
87 | pages: [Page],
88 | currentPage: Page,
:
90 | customView: (() -> Page.View?)? = nil
91 | ) {
92 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
94 | self.presentationStyle = presentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:95:9: error: setter for 'currentPage' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
84 | /// - presentationStyle: The presentation style for transitioning between pages.
85 | /// - customView: A custom view associated with the tabbar coordinator.
86 | public init(
| `- note: add @available attribute to enclosing initializer
87 | pages: [Page],
88 | currentPage: Page,
:
93 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
94 | self.presentationStyle = presentationStyle
95 | self.currentPage = currentPage
| |- error: setter for 'currentPage' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | self.customView = customView
97 | self.pages = pages
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Tabbar/TabbarCoordinator.swift:97:9: error: setter for 'pages' is only available in macOS 10.15 or newer
29 | ///
30 | /// Tabbar coordinators handle the navigation and coordination of pages within a tabbar.
31 | open class TabbarCoordinator<Page: TabbarPage>: TabbarCoordinatable {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
84 | /// - presentationStyle: The presentation style for transitioning between pages.
85 | /// - customView: A custom view associated with the tabbar coordinator.
86 | public init(
| `- note: add @available attribute to enclosing initializer
87 | pages: [Page],
88 | currentPage: Page,
:
95 | self.currentPage = currentPage
96 | self.customView = customView
97 | self.pages = pages
| |- error: setter for 'pages' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 |
99 | router.isTabbarCoordinable = true
BUILD FAILURE 6.1 macosSpm