Build Information
Failed to build SUICoordinator, reference main (b55c3d
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 06:04:16 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
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
[25/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
[26/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
[27/33] Compiling SUICoordinator RouterType.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 RouterView.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 |
[29/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 |
[30/33] Compiling SUICoordinator Coordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:38:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- 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<Route>
| `- error: 'Published' is only available in macOS 10.15 or newer
39 |
40 | // --------------------------------------------------------------------
<unknown>:0: error: cannot convert value of type 'KeyPath<Coordinator<Route>, Router<Route>>' to expected argument type 'ReferenceWritableKeyPath<Coordinator<Route>, Router<Route>>'
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:31:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:62:9: error: setter for 'router' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
59 |
60 | /// Initializes a new instance of `Coordinator`.
61 | public init() {
| `- note: add @available attribute to enclosing initializer
62 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
64 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:34:6: error: 'StateObject' is only available in macOS 11.0 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
32 | // --------------------------------------------------------------------
33 |
34 | @StateObject var dataSource: DataSource
| `- error: 'StateObject' is only available in macOS 11.0 or newer
35 |
36 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:51:17: error: 'Task' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
51 | Task(priority: .high) { await dataSource.start(animated: true) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:51:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
51 | Task(priority: .high) { await dataSource.start(animated: true) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:174:17: error: 'Task' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// The root router associated with the coordinator.
:
167 |
168 | /// Cleans up the coordinator.
169 | func swipedAway(coordinator: TCoordinatorType) {
| `- note: add @available attribute to enclosing instance method
170 | let sheetCoordinator = router.sheetCoordinator
171 |
172 | sheetCoordinator.onRemoveItem = { [weak coordinator] id in
173 | if let uuid = coordinator?.uuid, id.contains(uuid) {
174 | Task(priority: .utility) { [weak coordinator] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | await coordinator?.finish(animated: false, withDismiss: false)
176 | sheetCoordinator.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:174:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// The root router associated with the coordinator.
:
167 |
168 | /// Cleans up the coordinator.
169 | func swipedAway(coordinator: TCoordinatorType) {
| `- note: add @available attribute to enclosing instance method
170 | let sheetCoordinator = router.sheetCoordinator
171 |
172 | sheetCoordinator.onRemoveItem = { [weak coordinator] id in
173 | if let uuid = coordinator?.uuid, id.contains(uuid) {
174 | Task(priority: .utility) { [weak coordinator] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | await coordinator?.finish(animated: false, withDismiss: false)
176 | sheetCoordinator.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Navigation.swift:76:9: error: setter for 'mainView' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | public extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// Retrieves the top coordinator in the hierarchy, optionally starting from a specified coordinator.
:
73 | /// - transitionStyle: The transition presentation style for the flow.
74 | /// - animated: A boolean value indicating whether to animate the start flow process.
75 | func startFlow(route: Route, transitionStyle: TransitionPresentationStyle? = nil, animated: Bool = true) async -> Void {
| `- note: add @available attribute to enclosing instance method
76 | router.mainView = route
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 |
[31/33] Compiling SUICoordinator CoordinatorView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:38:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- 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<Route>
| `- error: 'Published' is only available in macOS 10.15 or newer
39 |
40 | // --------------------------------------------------------------------
<unknown>:0: error: cannot convert value of type 'KeyPath<Coordinator<Route>, Router<Route>>' to expected argument type 'ReferenceWritableKeyPath<Coordinator<Route>, Router<Route>>'
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:31:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:62:9: error: setter for 'router' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
59 |
60 | /// Initializes a new instance of `Coordinator`.
61 | public init() {
| `- note: add @available attribute to enclosing initializer
62 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
64 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:34:6: error: 'StateObject' is only available in macOS 11.0 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
32 | // --------------------------------------------------------------------
33 |
34 | @StateObject var dataSource: DataSource
| `- error: 'StateObject' is only available in macOS 11.0 or newer
35 |
36 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:51:17: error: 'Task' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
51 | Task(priority: .high) { await dataSource.start(animated: true) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:51:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
51 | Task(priority: .high) { await dataSource.start(animated: true) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:174:17: error: 'Task' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// The root router associated with the coordinator.
:
167 |
168 | /// Cleans up the coordinator.
169 | func swipedAway(coordinator: TCoordinatorType) {
| `- note: add @available attribute to enclosing instance method
170 | let sheetCoordinator = router.sheetCoordinator
171 |
172 | sheetCoordinator.onRemoveItem = { [weak coordinator] id in
173 | if let uuid = coordinator?.uuid, id.contains(uuid) {
174 | Task(priority: .utility) { [weak coordinator] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | await coordinator?.finish(animated: false, withDismiss: false)
176 | sheetCoordinator.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:174:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// The root router associated with the coordinator.
:
167 |
168 | /// Cleans up the coordinator.
169 | func swipedAway(coordinator: TCoordinatorType) {
| `- note: add @available attribute to enclosing instance method
170 | let sheetCoordinator = router.sheetCoordinator
171 |
172 | sheetCoordinator.onRemoveItem = { [weak coordinator] id in
173 | if let uuid = coordinator?.uuid, id.contains(uuid) {
174 | Task(priority: .utility) { [weak coordinator] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | await coordinator?.finish(animated: false, withDismiss: false)
176 | sheetCoordinator.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Navigation.swift:76:9: error: setter for 'mainView' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | public extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// Retrieves the top coordinator in the hierarchy, optionally starting from a specified coordinator.
:
73 | /// - transitionStyle: The transition presentation style for the flow.
74 | /// - animated: A boolean value indicating whether to animate the start flow process.
75 | func startFlow(route: Route, transitionStyle: TransitionPresentationStyle? = nil, animated: Bool = true) async -> Void {
| `- note: add @available attribute to enclosing instance method
76 | router.mainView = route
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 |
[32/33] Compiling SUICoordinator CoordinatorType+Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:38:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- 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<Route>
| `- error: 'Published' is only available in macOS 10.15 or newer
39 |
40 | // --------------------------------------------------------------------
<unknown>:0: error: cannot convert value of type 'KeyPath<Coordinator<Route>, Router<Route>>' to expected argument type 'ReferenceWritableKeyPath<Coordinator<Route>, Router<Route>>'
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:31:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:62:9: error: setter for 'router' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
59 |
60 | /// Initializes a new instance of `Coordinator`.
61 | public init() {
| `- note: add @available attribute to enclosing initializer
62 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
64 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:34:6: error: 'StateObject' is only available in macOS 11.0 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
32 | // --------------------------------------------------------------------
33 |
34 | @StateObject var dataSource: DataSource
| `- error: 'StateObject' is only available in macOS 11.0 or newer
35 |
36 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:51:17: error: 'Task' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
51 | Task(priority: .high) { await dataSource.start(animated: true) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:51:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
51 | Task(priority: .high) { await dataSource.start(animated: true) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:174:17: error: 'Task' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// The root router associated with the coordinator.
:
167 |
168 | /// Cleans up the coordinator.
169 | func swipedAway(coordinator: TCoordinatorType) {
| `- note: add @available attribute to enclosing instance method
170 | let sheetCoordinator = router.sheetCoordinator
171 |
172 | sheetCoordinator.onRemoveItem = { [weak coordinator] id in
173 | if let uuid = coordinator?.uuid, id.contains(uuid) {
174 | Task(priority: .utility) { [weak coordinator] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | await coordinator?.finish(animated: false, withDismiss: false)
176 | sheetCoordinator.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:174:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// The root router associated with the coordinator.
:
167 |
168 | /// Cleans up the coordinator.
169 | func swipedAway(coordinator: TCoordinatorType) {
| `- note: add @available attribute to enclosing instance method
170 | let sheetCoordinator = router.sheetCoordinator
171 |
172 | sheetCoordinator.onRemoveItem = { [weak coordinator] id in
173 | if let uuid = coordinator?.uuid, id.contains(uuid) {
174 | Task(priority: .utility) { [weak coordinator] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | await coordinator?.finish(animated: false, withDismiss: false)
176 | sheetCoordinator.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Navigation.swift:76:9: error: setter for 'mainView' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | public extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// Retrieves the top coordinator in the hierarchy, optionally starting from a specified coordinator.
:
73 | /// - transitionStyle: The transition presentation style for the flow.
74 | /// - animated: A boolean value indicating whether to animate the start flow process.
75 | func startFlow(route: Route, transitionStyle: TransitionPresentationStyle? = nil, animated: Bool = true) async -> Void {
| `- note: add @available attribute to enclosing instance method
76 | router.mainView = route
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 |
[33/33] Compiling SUICoordinator CoordinatorType+Navigation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:38:6: error: 'Published' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- 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<Route>
| `- error: 'Published' is only available in macOS 10.15 or newer
39 |
40 | // --------------------------------------------------------------------
<unknown>:0: error: cannot convert value of type 'KeyPath<Coordinator<Route>, Router<Route>>' to expected argument type 'ReferenceWritableKeyPath<Coordinator<Route>, Router<Route>>'
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:31:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:62:9: error: setter for 'router' is only available in macOS 10.15 or newer
29 | ///
30 | /// Coordinators are responsible for coordinating the navigation and flow within an application.
31 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add @available attribute to enclosing generic class
32 |
33 | // --------------------------------------------------------------------
:
59 |
60 | /// Initializes a new instance of `Coordinator`.
61 | public init() {
| `- note: add @available attribute to enclosing initializer
62 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
64 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:34:6: error: 'StateObject' is only available in macOS 11.0 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
32 | // --------------------------------------------------------------------
33 |
34 | @StateObject var dataSource: DataSource
| `- error: 'StateObject' is only available in macOS 11.0 or newer
35 |
36 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:51:17: error: 'Task' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
51 | Task(priority: .high) { await dataSource.start(animated: true) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:51:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
26 |
27 |
28 | public struct CoordinatorView<DataSource: CoordinatorType>: View {
| `- note: add @available attribute to enclosing generic struct
29 |
30 | // --------------------------------------------------------------------
:
46 | // --------------------------------------------------------------------
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | RouterView(viewModel: dataSource.router)
50 | .onViewDidLoad {
51 | Task(priority: .high) { await dataSource.start(animated: true) }
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:174:17: error: 'Task' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// The root router associated with the coordinator.
:
167 |
168 | /// Cleans up the coordinator.
169 | func swipedAway(coordinator: TCoordinatorType) {
| `- note: add @available attribute to enclosing instance method
170 | let sheetCoordinator = router.sheetCoordinator
171 |
172 | sheetCoordinator.onRemoveItem = { [weak coordinator] id in
173 | if let uuid = coordinator?.uuid, id.contains(uuid) {
174 | Task(priority: .utility) { [weak coordinator] in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | await coordinator?.finish(animated: false, withDismiss: false)
176 | sheetCoordinator.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:174:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// The root router associated with the coordinator.
:
167 |
168 | /// Cleans up the coordinator.
169 | func swipedAway(coordinator: TCoordinatorType) {
| `- note: add @available attribute to enclosing instance method
170 | let sheetCoordinator = router.sheetCoordinator
171 |
172 | sheetCoordinator.onRemoveItem = { [weak coordinator] id in
173 | if let uuid = coordinator?.uuid, id.contains(uuid) {
174 | Task(priority: .utility) { [weak coordinator] in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | await coordinator?.finish(animated: false, withDismiss: false)
176 | sheetCoordinator.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Navigation.swift:76:9: error: setter for 'mainView' is only available in macOS 10.15 or newer
25 | import Foundation
26 |
27 | public extension CoordinatorType {
| `- note: add @available attribute to enclosing extension
28 |
29 | /// Retrieves the top coordinator in the hierarchy, optionally starting from a specified coordinator.
:
73 | /// - transitionStyle: The transition presentation style for the flow.
74 | /// - animated: A boolean value indicating whether to animate the start flow process.
75 | func startFlow(route: Route, transitionStyle: TransitionPresentationStyle? = nil, animated: Bool = true) async -> Void {
| `- note: add @available attribute to enclosing instance method
76 | router.mainView = route
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 |
BUILD FAILURE 6.1 macosSpm