Build Information
Failed to build SUICoordinator, reference main (9f5a6f), with Swift 6.2 for macOS (SPM) on 27 Sep 2025 22:30:06 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0.app xcrun swift build --arch arm64Build Log
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
82 | contentItem
83 | } else {
84 | if showContent {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | ZStack { contentItem }
86 | .transition(transition)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:87:17: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
85 | ZStack { contentItem }
86 | .transition(transition)
87 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:83:20: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
82 | contentItem
83 | } else {
| |- 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
84 | if showContent {
85 | ZStack { contentItem }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:83:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
82 | contentItem
83 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | if showContent {
85 | ZStack { contentItem }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:80:16: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
| |- 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
81 | if !animated {
82 | contentItem
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:90:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
88 | }
89 | }
90 | .animation(animation, value: showContent)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .onViewDidLoad { Task { @MainActor in
92 | await start(with: item)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:91:26: error: 'Task' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
89 | }
90 | .animation(animation, value: showContent)
91 | .onViewDidLoad { Task { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | await start(with: item)
93 | }}
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:91:26: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
89 | }
90 | .animation(animation, value: showContent)
91 | .onViewDidLoad { Task { @MainActor in
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | await start(with: item)
93 | }}
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:104:18: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
| |- 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
105 | .onReceive(item.willDismiss) { _ in
106 | Task { await finish() }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:105:18: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
105 | .onReceive(item.willDismiss) { _ in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | Task { await finish() }
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:106:21: error: 'Task' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
105 | .onReceive(item.willDismiss) { _ in
106 | Task { await finish() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:106:21: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
105 | .onReceive(item.willDismiss) { _ in
106 | Task { await finish() }
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:102:28: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:108:9: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
:
106 | Task { await finish() }
107 | }
108 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:101:32: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| | |- 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
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:120:9: error: setter for 'showContent' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
113 | // ---------------------------------------------------------
114 |
115 | private func start(with item: Item?) async {
| `- note: add '@available' attribute to enclosing instance method
116 | guard item != nil, animated else {
117 | return await finish()
118 | }
119 |
120 | showContent = true
| |- error: setter for 'showContent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:125:9: error: setter for 'showContent' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
| |- error: setter for 'showContent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:127:34: error: 'Task' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 |
129 | guard !isFullScreen else { return (item = nil) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:127:39: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
| |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
128 |
129 | guard !isFullScreen else { return (item = nil) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:127:51: error: 'seconds' is only available in macOS 13.0 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
| |- error: 'seconds' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
128 |
129 | guard !isFullScreen else { return (item = nil) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:129:44: error: setter for 'item' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
:
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
128 |
129 | guard !isFullScreen else { return (item = nil) }
| |- error: setter for 'item' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 |
131 | onDismiss?("")
[24/37] Compiling SUICoordinator ClearBackgroundViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Protocols/SheetItemType.swift:77:22: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
59 | /// }
60 | /// ```
61 | protocol SheetItemType: SCEquatable {
| `- note: add '@available' attribute to enclosing protocol
62 |
63 | /// A string that uniquely identifies the sheet item.
:
75 | ///
76 | /// - Note: The subject emits once when dismissal begins, not when it completes.
77 | var willDismiss: PassthroughSubject<Void, Never> { get }
| | `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
78 |
79 | /// Returns whether the sheet presentation should be animated.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:28:47: error: cannot find type 'UIView' in scope
26 |
27 | struct ClearBackgroundView: UIViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'UIView' in scope
29 | let view = UIView()
30 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:28:42: error: 'some' types are only permitted in properties, subscripts, and functions
26 |
27 | struct ClearBackgroundView: UIViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
29 | let view = UIView()
30 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:28:30: error: cannot find type 'Context' in scope
26 |
27 | struct ClearBackgroundView: UIViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'Context' in scope
29 | let view = UIView()
30 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:35:33: error: cannot find type 'UIViewType' in scope
33 | return view
34 | }
35 | func updateUIView(_ uiView: UIViewType, context: Context) { }
| `- error: cannot find type 'UIViewType' in scope
36 | }
37 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:35:54: error: cannot find type 'Context' in scope
33 | return view
34 | }
35 | func updateUIView(_ uiView: UIViewType, context: Context) { }
| `- error: cannot find type 'Context' in scope
36 | }
37 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:27:29: error: cannot find type 'UIViewRepresentable' in scope
25 | import SwiftUI
26 |
27 | struct ClearBackgroundView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | func makeUIView(context: Context) -> some UIView {
29 | let view = UIView()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:42:41: error: 'View' is only available in macOS 10.15 or newer
36 | }
37 |
38 | struct ClearBackgroundViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
39 |
40 | let condition: Bool
41 |
42 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
43 | if condition {
44 | if #available(iOS 16.4, *) {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:29:20: error: cannot find 'UIView' in scope
27 | struct ClearBackgroundView: UIViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
29 | let view = UIView()
| `- error: cannot find 'UIView' in scope
30 | DispatchQueue.main.async {
31 | view.superview?.superview?.backgroundColor = .clear
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:31:59: error: cannot infer contextual base in reference to member 'clear'
29 | let view = UIView()
30 | DispatchQueue.main.async {
31 | view.superview?.superview?.backgroundColor = .clear
| `- error: cannot infer contextual base in reference to member 'clear'
32 | }
33 | return view
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:49:22: error: instance method 'background(_:ignoresSafeAreaEdges:)' requires that 'ClearBackgroundView' conform to 'ShapeStyle'
47 | } else {
48 | content
49 | .background(ClearBackgroundView())
| `- error: instance method 'background(_:ignoresSafeAreaEdges:)' requires that 'ClearBackgroundView' conform to 'ShapeStyle'
50 | }
51 | } else {
SwiftUI.View.background:2:36: note: where 'S' = 'ClearBackgroundView'
1 | protocol View {
2 | @inlinable nonisolated public func background<S>(_ style: S, ignoresSafeAreaEdges edges: Edge.Set = .all) -> some View where S : ShapeStyle
| `- note: where 'S' = 'ClearBackgroundView'
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:33:6: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
31 | // ---------------------------------------------------------
32 |
33 | @Binding var item: Item?
| `- error: 'Binding' is only available in macOS 10.15 or newer
34 | @State private var showContent: Bool = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
32 |
33 | @Binding var item: Item?
34 | @State private var showContent: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
35 |
36 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:43:21: error: 'AnyTransition' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
41 | var onDismiss: ActionClosure? = nil
42 | var content: Content?
43 | var transition: AnyTransition
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
44 | var animation: Animation?
45 | let animated: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:44:20: error: 'Animation' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
42 | var content: Content?
43 | var transition: AnyTransition
44 | var animation: Animation?
| `- error: 'Animation' is only available in macOS 10.15 or newer
45 | let animated: Bool
46 | let isFullScreen: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:53:15: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add '@available' attribute to enclosing initializer
53 | item: Binding<Item?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
54 | transition: AnyTransition,
55 | animation: Animation?,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:54:21: error: 'AnyTransition' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add '@available' attribute to enclosing initializer
53 | item: Binding<Item?>,
54 | transition: AnyTransition,
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
55 | animation: Animation?,
56 | animated: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:55:20: error: 'Animation' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add '@available' attribute to enclosing initializer
53 | item: Binding<Item?>,
54 | transition: AnyTransition,
55 | animation: Animation?,
| `- error: 'Animation' is only available in macOS 10.15 or newer
56 | animated: Bool,
57 | isFullScreen: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:60:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add '@available' attribute to enclosing initializer
53 | item: Binding<Item?>,
54 | transition: AnyTransition,
:
58 | onDismiss: ActionClosure? = nil,
59 | onDidLoad: ActionClosure? = nil,
60 | @ViewBuilder content: @escaping (Item) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
61 | ) {
62 | self._item = item
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:79:20: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:101:27: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:100:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
98 | // ---------------------------------------------------------
99 |
100 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
101 | var contentItem: some View {
102 | if let item = item {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:27:59: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:80:9: error: 'ZStack' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | if !animated {
82 | contentItem
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:80:9: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
| |- 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
81 | if !animated {
82 | contentItem
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:81:26: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | contentItem
83 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:85:21: error: 'ZStack' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
83 | } else {
84 | if showContent {
85 | ZStack { contentItem }
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | .transition(transition)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:86:26: error: 'transition' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
84 | if showContent {
85 | ZStack { contentItem }
86 | .transition(transition)
| |- error: 'transition' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:84:32: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
82 | contentItem
83 | } else {
84 | if showContent {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | ZStack { contentItem }
86 | .transition(transition)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:87:17: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
85 | ZStack { contentItem }
86 | .transition(transition)
87 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:83:20: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
82 | contentItem
83 | } else {
| |- 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
84 | if showContent {
85 | ZStack { contentItem }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:83:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
82 | contentItem
83 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | if showContent {
85 | ZStack { contentItem }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:80:16: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
| |- 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
81 | if !animated {
82 | contentItem
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:90:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
88 | }
89 | }
90 | .animation(animation, value: showContent)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .onViewDidLoad { Task { @MainActor in
92 | await start(with: item)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:91:26: error: 'Task' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
89 | }
90 | .animation(animation, value: showContent)
91 | .onViewDidLoad { Task { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | await start(with: item)
93 | }}
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:91:26: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
89 | }
90 | .animation(animation, value: showContent)
91 | .onViewDidLoad { Task { @MainActor in
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | await start(with: item)
93 | }}
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:104:18: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
| |- 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
105 | .onReceive(item.willDismiss) { _ in
106 | Task { await finish() }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:105:18: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
105 | .onReceive(item.willDismiss) { _ in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | Task { await finish() }
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:106:21: error: 'Task' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
105 | .onReceive(item.willDismiss) { _ in
106 | Task { await finish() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:106:21: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
105 | .onReceive(item.willDismiss) { _ in
106 | Task { await finish() }
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:102:28: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:108:9: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
:
106 | Task { await finish() }
107 | }
108 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:101:32: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| | |- 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
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:120:9: error: setter for 'showContent' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
113 | // ---------------------------------------------------------
114 |
115 | private func start(with item: Item?) async {
| `- note: add '@available' attribute to enclosing instance method
116 | guard item != nil, animated else {
117 | return await finish()
118 | }
119 |
120 | showContent = true
| |- error: setter for 'showContent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:125:9: error: setter for 'showContent' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
| |- error: setter for 'showContent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:127:34: error: 'Task' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 |
129 | guard !isFullScreen else { return (item = nil) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:127:39: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
| |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
128 |
129 | guard !isFullScreen else { return (item = nil) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:127:51: error: 'seconds' is only available in macOS 13.0 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
| |- error: 'seconds' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
128 |
129 | guard !isFullScreen else { return (item = nil) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:129:44: error: setter for 'item' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
:
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
128 |
129 | guard !isFullScreen else { return (item = nil) }
| |- error: setter for 'item' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 |
131 | onDismiss?("")
[25/37] Compiling SUICoordinator CustomTransitionView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Protocols/SheetItemType.swift:77:22: error: 'PassthroughSubject' is only available in macOS 10.15 or newer
59 | /// }
60 | /// ```
61 | protocol SheetItemType: SCEquatable {
| `- note: add '@available' attribute to enclosing protocol
62 |
63 | /// A string that uniquely identifies the sheet item.
:
75 | ///
76 | /// - Note: The subject emits once when dismissal begins, not when it completes.
77 | var willDismiss: PassthroughSubject<Void, Never> { get }
| | `- error: 'PassthroughSubject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
78 |
79 | /// Returns whether the sheet presentation should be animated.
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:28:47: error: cannot find type 'UIView' in scope
26 |
27 | struct ClearBackgroundView: UIViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'UIView' in scope
29 | let view = UIView()
30 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:28:42: error: 'some' types are only permitted in properties, subscripts, and functions
26 |
27 | struct ClearBackgroundView: UIViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: 'some' types are only permitted in properties, subscripts, and functions
29 | let view = UIView()
30 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:28:30: error: cannot find type 'Context' in scope
26 |
27 | struct ClearBackgroundView: UIViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
| `- error: cannot find type 'Context' in scope
29 | let view = UIView()
30 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:35:33: error: cannot find type 'UIViewType' in scope
33 | return view
34 | }
35 | func updateUIView(_ uiView: UIViewType, context: Context) { }
| `- error: cannot find type 'UIViewType' in scope
36 | }
37 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:35:54: error: cannot find type 'Context' in scope
33 | return view
34 | }
35 | func updateUIView(_ uiView: UIViewType, context: Context) { }
| `- error: cannot find type 'Context' in scope
36 | }
37 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:27:29: error: cannot find type 'UIViewRepresentable' in scope
25 | import SwiftUI
26 |
27 | struct ClearBackgroundView: UIViewRepresentable {
| `- error: cannot find type 'UIViewRepresentable' in scope
28 | func makeUIView(context: Context) -> some UIView {
29 | let view = UIView()
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:42:41: error: 'View' is only available in macOS 10.15 or newer
36 | }
37 |
38 | struct ClearBackgroundViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
39 |
40 | let condition: Bool
41 |
42 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
43 | if condition {
44 | if #available(iOS 16.4, *) {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:29:20: error: cannot find 'UIView' in scope
27 | struct ClearBackgroundView: UIViewRepresentable {
28 | func makeUIView(context: Context) -> some UIView {
29 | let view = UIView()
| `- error: cannot find 'UIView' in scope
30 | DispatchQueue.main.async {
31 | view.superview?.superview?.backgroundColor = .clear
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:31:59: error: cannot infer contextual base in reference to member 'clear'
29 | let view = UIView()
30 | DispatchQueue.main.async {
31 | view.superview?.superview?.backgroundColor = .clear
| `- error: cannot infer contextual base in reference to member 'clear'
32 | }
33 | return view
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/ClearBackgroundViewModifier.swift:49:22: error: instance method 'background(_:ignoresSafeAreaEdges:)' requires that 'ClearBackgroundView' conform to 'ShapeStyle'
47 | } else {
48 | content
49 | .background(ClearBackgroundView())
| `- error: instance method 'background(_:ignoresSafeAreaEdges:)' requires that 'ClearBackgroundView' conform to 'ShapeStyle'
50 | }
51 | } else {
SwiftUI.View.background:2:36: note: where 'S' = 'ClearBackgroundView'
1 | protocol View {
2 | @inlinable nonisolated public func background<S>(_ style: S, ignoresSafeAreaEdges edges: Edge.Set = .all) -> some View where S : ShapeStyle
| `- note: where 'S' = 'ClearBackgroundView'
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:33:6: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
31 | // ---------------------------------------------------------
32 |
33 | @Binding var item: Item?
| `- error: 'Binding' is only available in macOS 10.15 or newer
34 | @State private var showContent: Bool = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
32 |
33 | @Binding var item: Item?
34 | @State private var showContent: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
35 |
36 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:43:21: error: 'AnyTransition' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
41 | var onDismiss: ActionClosure? = nil
42 | var content: Content?
43 | var transition: AnyTransition
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
44 | var animation: Animation?
45 | let animated: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:44:20: error: 'Animation' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
42 | var content: Content?
43 | var transition: AnyTransition
44 | var animation: Animation?
| `- error: 'Animation' is only available in macOS 10.15 or newer
45 | let animated: Bool
46 | let isFullScreen: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:53:15: error: 'Binding' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add '@available' attribute to enclosing initializer
53 | item: Binding<Item?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
54 | transition: AnyTransition,
55 | animation: Animation?,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:54:21: error: 'AnyTransition' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add '@available' attribute to enclosing initializer
53 | item: Binding<Item?>,
54 | transition: AnyTransition,
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
55 | animation: Animation?,
56 | animated: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:55:20: error: 'Animation' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add '@available' attribute to enclosing initializer
53 | item: Binding<Item?>,
54 | transition: AnyTransition,
55 | animation: Animation?,
| `- error: 'Animation' is only available in macOS 10.15 or newer
56 | animated: Bool,
57 | isFullScreen: Bool,
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:60:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
50 | // ---------------------------------------------------------
51 |
52 | init(
| `- note: add '@available' attribute to enclosing initializer
53 | item: Binding<Item?>,
54 | transition: AnyTransition,
:
58 | onDismiss: ActionClosure? = nil,
59 | onDidLoad: ActionClosure? = nil,
60 | @ViewBuilder content: @escaping (Item) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
61 | ) {
62 | self._item = item
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:79:20: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:101:27: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:100:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
98 | // ---------------------------------------------------------
99 |
100 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
101 | var contentItem: some View {
102 | if let item = item {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:27:59: error: 'View' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:80:9: error: 'ZStack' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | if !animated {
82 | contentItem
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:80:9: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
| |- 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
81 | if !animated {
82 | contentItem
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:81:26: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | contentItem
83 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:85:21: error: 'ZStack' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
83 | } else {
84 | if showContent {
85 | ZStack { contentItem }
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | .transition(transition)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:86:26: error: 'transition' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
84 | if showContent {
85 | ZStack { contentItem }
86 | .transition(transition)
| |- error: 'transition' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:84:32: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
82 | contentItem
83 | } else {
84 | if showContent {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | ZStack { contentItem }
86 | .transition(transition)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:87:17: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
85 | ZStack { contentItem }
86 | .transition(transition)
87 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:83:20: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
82 | contentItem
83 | } else {
| |- 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
84 | if showContent {
85 | ZStack { contentItem }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:83:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
82 | contentItem
83 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | if showContent {
85 | ZStack { contentItem }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:80:16: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
| |- 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
81 | if !animated {
82 | contentItem
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:90:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
88 | }
89 | }
90 | .animation(animation, value: showContent)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .onViewDidLoad { Task { @MainActor in
92 | await start(with: item)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:91:26: error: 'Task' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
89 | }
90 | .animation(animation, value: showContent)
91 | .onViewDidLoad { Task { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | await start(with: item)
93 | }}
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:91:26: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
77 | // ---------------------------------------------------------
78 |
79 | var body: some View {
| `- note: add '@available' attribute to enclosing property
80 | ZStack {
81 | if !animated {
:
89 | }
90 | .animation(animation, value: showContent)
91 | .onViewDidLoad { Task { @MainActor in
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | await start(with: item)
93 | }}
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:104:18: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
| |- 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
105 | .onReceive(item.willDismiss) { _ in
106 | Task { await finish() }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:105:18: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
105 | .onReceive(item.willDismiss) { _ in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | Task { await finish() }
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:106:21: error: 'Task' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
105 | .onReceive(item.willDismiss) { _ in
106 | Task { await finish() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:106:21: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
105 | .onReceive(item.willDismiss) { _ in
106 | Task { await finish() }
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:102:28: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | content
104 | .onViewDidLoad { onDidLoad?("") }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:108:9: error: 'buildIf' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
:
106 | Task { await finish() }
107 | }
108 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | }
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:101:32: 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 CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
99 |
100 | @ViewBuilder
101 | var contentItem: some View {
| | |- 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
| `- note: add '@available' attribute to enclosing property
102 | if let item = item {
103 | content
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:120:9: error: setter for 'showContent' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
113 | // ---------------------------------------------------------
114 |
115 | private func start(with item: Item?) async {
| `- note: add '@available' attribute to enclosing instance method
116 | guard item != nil, animated else {
117 | return await finish()
118 | }
119 |
120 | showContent = true
| |- error: setter for 'showContent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
121 | }
122 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:125:9: error: setter for 'showContent' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
| |- error: setter for 'showContent' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:127:34: error: 'Task' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 |
129 | guard !isFullScreen else { return (item = nil) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:127:39: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
| |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
128 |
129 | guard !isFullScreen else { return (item = nil) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:127:51: error: 'seconds' is only available in macOS 13.0 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
126 |
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
| |- error: 'seconds' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
128 |
129 | guard !isFullScreen else { return (item = nil) }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/View+Helpers/CustomTransitionView.swift:129:44: error: setter for 'item' is only available in macOS 10.15 or newer
25 | import SwiftUI
26 |
27 | struct CustomTransitionView<Item: SheetItemType, Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
28 |
29 | // ---------------------------------------------------------
:
121 | }
122 |
123 | private func finish() async {
| `- note: add '@available' attribute to enclosing instance method
124 | let duration = 0.3
125 | showContent = false
:
127 | if animated { try? await Task.sleep(for: .seconds(duration)) }
128 |
129 | guard !isFullScreen else { return (item = nil) }
| |- error: setter for 'item' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 |
131 | onDismiss?("")
[26/37] Compiling SUICoordinator CoordinatorType+UI.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:70:28: error: 'View' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
68 | /// - The coordinator remains the source of truth for navigation state
69 | @ViewBuilder
70 | func getView() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
71 | CoordinatorView(dataSource: self)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:69:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
67 | /// - Modal presentations are managed transparently
68 | /// - The coordinator remains the source of truth for navigation state
69 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
70 | func getView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
71 | CoordinatorView(dataSource: self)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:81:29: error: 'AnyView' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
79 | ///
80 | /// - Returns: An `AnyView` wrapping the coordinator’s SwiftUI view.
81 | func viewAsAnyView() -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
82 | getView().asAnyView()
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType.swift:34:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
32 | /// - Important: Adopt this protocol in your custom coordinator implementations.
33 | @MainActor
34 | public protocol CoordinatorType: SCHashable, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
35 |
36 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:67:27: error: 'View' is only available in macOS 10.15 or newer
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:68:9: 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
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
| |- 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
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:67:32: 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
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| | |- 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
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouteType.swift:62:54: error: 'View' is only available in macOS 10.15 or newer
60 | /// Use `RouteType` when you want to describe stack-based or modal navigation with clear ownership of both view and presentation.
61 | ///
62 | public typealias RouteType = RoutePresentationType & View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
63 |
64 | /// Protocol that supplies presentation and identity requirements for `RouteType`.
[27/37] Compiling SUICoordinator CoordinatorType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:70:28: error: 'View' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
68 | /// - The coordinator remains the source of truth for navigation state
69 | @ViewBuilder
70 | func getView() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
71 | CoordinatorView(dataSource: self)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:69:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
67 | /// - Modal presentations are managed transparently
68 | /// - The coordinator remains the source of truth for navigation state
69 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
70 | func getView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
71 | CoordinatorView(dataSource: self)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:81:29: error: 'AnyView' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
79 | ///
80 | /// - Returns: An `AnyView` wrapping the coordinator’s SwiftUI view.
81 | func viewAsAnyView() -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
82 | getView().asAnyView()
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType.swift:34:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
32 | /// - Important: Adopt this protocol in your custom coordinator implementations.
33 | @MainActor
34 | public protocol CoordinatorType: SCHashable, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
35 |
36 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:67:27: error: 'View' is only available in macOS 10.15 or newer
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:68:9: 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
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
| |- 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
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:67:32: 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
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| | |- 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
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouteType.swift:62:54: error: 'View' is only available in macOS 10.15 or newer
60 | /// Use `RouteType` when you want to describe stack-based or modal navigation with clear ownership of both view and presentation.
61 | ///
62 | public typealias RouteType = RoutePresentationType & View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
63 |
64 | /// Protocol that supplies presentation and identity requirements for `RouteType`.
[28/37] Compiling SUICoordinator DefaultRoute.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:70:28: error: 'View' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
68 | /// - The coordinator remains the source of truth for navigation state
69 | @ViewBuilder
70 | func getView() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
71 | CoordinatorView(dataSource: self)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:69:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
67 | /// - Modal presentations are managed transparently
68 | /// - The coordinator remains the source of truth for navigation state
69 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
70 | func getView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
71 | CoordinatorView(dataSource: self)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:81:29: error: 'AnyView' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
79 | ///
80 | /// - Returns: An `AnyView` wrapping the coordinator’s SwiftUI view.
81 | func viewAsAnyView() -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
82 | getView().asAnyView()
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType.swift:34:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
32 | /// - Important: Adopt this protocol in your custom coordinator implementations.
33 | @MainActor
34 | public protocol CoordinatorType: SCHashable, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
35 |
36 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:67:27: error: 'View' is only available in macOS 10.15 or newer
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:68:9: 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
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
| |- 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
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:67:32: 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
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| | |- 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
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouteType.swift:62:54: error: 'View' is only available in macOS 10.15 or newer
60 | /// Use `RouteType` when you want to describe stack-based or modal navigation with clear ownership of both view and presentation.
61 | ///
62 | public typealias RouteType = RoutePresentationType & View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
63 |
64 | /// Protocol that supplies presentation and identity requirements for `RouteType`.
[29/37] Compiling SUICoordinator RouteType.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:70:28: error: 'View' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
68 | /// - The coordinator remains the source of truth for navigation state
69 | @ViewBuilder
70 | func getView() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
71 | CoordinatorView(dataSource: self)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:69:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
67 | /// - Modal presentations are managed transparently
68 | /// - The coordinator remains the source of truth for navigation state
69 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
70 | func getView() -> some View {
| `- note: add '@available' attribute to enclosing instance method
71 | CoordinatorView(dataSource: self)
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+UI.swift:81:29: error: 'AnyView' is only available in macOS 10.15 or newer
30 | /// methods to convert coordinators into SwiftUI views that can be integrated
31 | /// into the view hierarchy.
32 | public extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
33 |
34 | /// Creates and returns a SwiftUI view representation of the coordinator.
:
79 | ///
80 | /// - Returns: An `AnyView` wrapping the coordinator’s SwiftUI view.
81 | func viewAsAnyView() -> AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
82 | getView().asAnyView()
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType.swift:34:46: error: 'ObservableObject' is only available in macOS 10.15 or newer
32 | /// - Important: Adopt this protocol in your custom coordinator implementations.
33 | @MainActor
34 | public protocol CoordinatorType: SCHashable, ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
35 |
36 | // ---------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:67:27: error: 'View' is only available in macOS 10.15 or newer
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:68:9: 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
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
| |- 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
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/DefaultRoute.swift:67:32: 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
27 |
28 | /// A struct representing a default route with a specified presentation style and content view.
29 | public struct DefaultRoute: RouteType {
| `- note: add '@available' attribute to enclosing struct
30 |
31 | // ---------------------------------------------------------
:
65 | }
66 |
67 | public var body: some View {
| | |- 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
| `- note: add '@available' attribute to enclosing property
68 | content()?.asAnyView()
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/RouteType.swift:62:54: error: 'View' is only available in macOS 10.15 or newer
60 | /// Use `RouteType` when you want to describe stack-based or modal navigation with clear ownership of both view and presentation.
61 | ///
62 | public typealias RouteType = RoutePresentationType & View
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
63 |
64 | /// Protocol that supplies presentation and identity requirements for `RouteType`.
[30/37] Compiling SUICoordinator TransitionPresentationStyle.swift
/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: @unchecked Sendable, SCEquatable {
| `- 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 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:43:29: error: 'AnyTransition' is only available in macOS 10.15 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: @unchecked Sendable, SCEquatable {
| `- note: add '@available' attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
41 | case detents(Set<PresentationDetent>)
42 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
44 |
45 | internal var isCustom: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:43:55: error: 'Animation' is only available in macOS 10.15 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: @unchecked Sendable, SCEquatable {
| `- note: add '@available' attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
41 | case detents(Set<PresentationDetent>)
42 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
| `- error: 'Animation' is only available in macOS 10.15 or newer
44 |
45 | internal var isCustom: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Aliasess.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
10 | public typealias ActionClosure = (String) -> Void
11 | public typealias AnyCoordinatorType = (any CoordinatorType)
12 | public typealias AnyViewAlias = (any View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Protocols/Protocols.swift:51:33: error: 'Identifiable' is only available in macOS 10.15 or newer
49 | /// - Important: The identifier is based on the type name using `String(describing: self.self)`.
50 | /// - SeeAlso: `Identifiable`
51 | public protocol SCIdentifiable: Identifiable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
52 | var id: String { get }
53 | }
[31/37] Compiling SUICoordinator ItemManager.swift
/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: @unchecked Sendable, SCEquatable {
| `- 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 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:43:29: error: 'AnyTransition' is only available in macOS 10.15 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: @unchecked Sendable, SCEquatable {
| `- note: add '@available' attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
41 | case detents(Set<PresentationDetent>)
42 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
44 |
45 | internal var isCustom: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:43:55: error: 'Animation' is only available in macOS 10.15 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: @unchecked Sendable, SCEquatable {
| `- note: add '@available' attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
41 | case detents(Set<PresentationDetent>)
42 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
| `- error: 'Animation' is only available in macOS 10.15 or newer
44 |
45 | internal var isCustom: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Aliasess.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
10 | public typealias ActionClosure = (String) -> Void
11 | public typealias AnyCoordinatorType = (any CoordinatorType)
12 | public typealias AnyViewAlias = (any View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Protocols/Protocols.swift:51:33: error: 'Identifiable' is only available in macOS 10.15 or newer
49 | /// - Important: The identifier is based on the type name using `String(describing: self.self)`.
50 | /// - SeeAlso: `Identifiable`
51 | public protocol SCIdentifiable: Identifiable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
52 | var id: String { get }
53 | }
[32/37] Compiling SUICoordinator Aliasess.swift
/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: @unchecked Sendable, SCEquatable {
| `- 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 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:43:29: error: 'AnyTransition' is only available in macOS 10.15 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: @unchecked Sendable, SCEquatable {
| `- note: add '@available' attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
41 | case detents(Set<PresentationDetent>)
42 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
44 |
45 | internal var isCustom: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:43:55: error: 'Animation' is only available in macOS 10.15 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: @unchecked Sendable, SCEquatable {
| `- note: add '@available' attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
41 | case detents(Set<PresentationDetent>)
42 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
| `- error: 'Animation' is only available in macOS 10.15 or newer
44 |
45 | internal var isCustom: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Aliasess.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
10 | public typealias ActionClosure = (String) -> Void
11 | public typealias AnyCoordinatorType = (any CoordinatorType)
12 | public typealias AnyViewAlias = (any View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Protocols/Protocols.swift:51:33: error: 'Identifiable' is only available in macOS 10.15 or newer
49 | /// - Important: The identifier is based on the type name using `String(describing: self.self)`.
50 | /// - SeeAlso: `Identifiable`
51 | public protocol SCIdentifiable: Identifiable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
52 | var id: String { get }
53 | }
[33/37] Compiling SUICoordinator Protocols.swift
/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: @unchecked Sendable, SCEquatable {
| `- 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 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:43:29: error: 'AnyTransition' is only available in macOS 10.15 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: @unchecked Sendable, SCEquatable {
| `- note: add '@available' attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
41 | case detents(Set<PresentationDetent>)
42 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
| `- error: 'AnyTransition' is only available in macOS 10.15 or newer
44 |
45 | internal var isCustom: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Router/TransitionPresentationStyle.swift:43:55: error: 'Animation' is only available in macOS 10.15 or newer
30 | TransitionPresentationStyle enumerates the different styles used for transitioning between views or presenting views within an application.
31 | */
32 | public enum TransitionPresentationStyle: @unchecked Sendable, SCEquatable {
| `- note: add '@available' attribute to enclosing enum
33 |
34 | /// A push transition style, commonly used in navigation controllers.
:
41 | case detents(Set<PresentationDetent>)
42 | /// A custom presentation style.
43 | case custom(transition: AnyTransition, animation: Animation?, fullScreen: Bool = false)
| `- error: 'Animation' is only available in macOS 10.15 or newer
44 |
45 | internal var isCustom: Bool {
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Aliasess.swift:12:38: error: 'View' is only available in macOS 10.15 or newer
10 | public typealias ActionClosure = (String) -> Void
11 | public typealias AnyCoordinatorType = (any CoordinatorType)
12 | public typealias AnyViewAlias = (any View)
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing type alias
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Shared/Protocols/Protocols.swift:51:33: error: 'Identifiable' is only available in macOS 10.15 or newer
49 | /// - Important: The identifier is based on the type name using `String(describing: self.self)`.
50 | /// - SeeAlso: `Identifiable`
51 | public protocol SCIdentifiable: Identifiable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing protocol
52 | var id: String { get }
53 | }
[34/37] Compiling SUICoordinator Coordinator.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:95:6: error: 'Published' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add '@available' attribute to enclosing generic class
85 |
86 | // --------------------------------------------------------------------
:
93 | /// push navigation, modal presentations, and navigation stack management.
94 | /// Changes to the router state automatically trigger UI updates.
95 | @Published public var router: Router<Route>
| `- error: 'Published' is only available in macOS 10.15 or newer
96 |
97 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:84:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | 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
85 |
86 | // --------------------------------------------------------------------
<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:147:9: error: setter for 'router' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add '@available' attribute to enclosing generic class
85 |
86 | // --------------------------------------------------------------------
:
144 | /// - The coordinator is not started automatically; call `start()` explicitly
145 | /// - Router configuration can be modified after initialization if needed
146 | public init() {
| `- note: add '@available' attribute to enclosing initializer
147 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
149 | }
/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:52: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 | // --------------------------------------------------------------------
:
50 | // --------------------------------------------------------------------
51 |
52 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
53 | RouterView(coordinator: dataSource)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:44:13: 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 | // --------------------------------------------------------------------
:
38 | // --------------------------------------------------------------------
39 |
40 | init(dataSource: DataSource) {
| `- note: add '@available' attribute to enclosing initializer
41 | self._dataSource = .init(wrappedValue: dataSource)
42 |
43 | if !dataSource.isRunning && !dataSource.isTabCoordinable {
44 | Task { @MainActor in await dataSource.start() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:44:13: error: 'init(name: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 | // --------------------------------------------------------------------
:
38 | // --------------------------------------------------------------------
39 |
40 | init(dataSource: DataSource) {
| `- note: add '@available' attribute to enclosing initializer
41 | self._dataSource = .init(wrappedValue: dataSource)
42 |
43 | if !dataSource.isRunning && !dataSource.isTabCoordinable {
44 | Task { @MainActor in await dataSource.start() }
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:28: 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:33: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
28 |
29 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:45: error: 'seconds' is only available in macOS 13.0 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
28 |
29 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'seconds' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:213:30: error: 'move(edge:)' 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
202 | /// - animated: A Boolean value indicating whether the transition should be animated.
203 | /// - Returns: A `SheetItem` configured to present the target coordinator's view.
204 | func buildSheetItemForCoordinator(
| `- note: add '@available' attribute to enclosing instance method
205 | _ coordinator: AnyCoordinatorType,
206 | presentationStyle: TransitionPresentationStyle,
:
211 | if effectivePresentationStyle == .push {
212 | effectivePresentationStyle = .custom(
213 | transition: .move(edge: .trailing),
| |- error: 'move(edge:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | animation: .default,
215 | fullScreen: true
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:214:29: error: 'default' 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
202 | /// - animated: A Boolean value indicating whether the transition should be animated.
203 | /// - Returns: A `SheetItem` configured to present the target coordinator's view.
204 | func buildSheetItemForCoordinator(
| `- note: add '@available' attribute to enclosing instance method
205 | _ coordinator: AnyCoordinatorType,
206 | presentationStyle: TransitionPresentationStyle,
:
212 | effectivePresentationStyle = .custom(
213 | transition: .move(edge: .trailing),
214 | animation: .default,
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | fullScreen: true
216 | )
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Navigation.swift:156:25: 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 | /// Returns the coordinator that is currently visible to the user.
:
153 | /// ```
154 |
155 | @MainActor func startFlow(route: Route) async -> Void {
| `- note: add '@available' attribute to enclosing instance method
156 | if !isRunning { router.mainView = route }
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | }
158 |
[35/37] Compiling SUICoordinator CoordinatorView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:95:6: error: 'Published' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add '@available' attribute to enclosing generic class
85 |
86 | // --------------------------------------------------------------------
:
93 | /// push navigation, modal presentations, and navigation stack management.
94 | /// Changes to the router state automatically trigger UI updates.
95 | @Published public var router: Router<Route>
| `- error: 'Published' is only available in macOS 10.15 or newer
96 |
97 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:84:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | 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
85 |
86 | // --------------------------------------------------------------------
<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:147:9: error: setter for 'router' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add '@available' attribute to enclosing generic class
85 |
86 | // --------------------------------------------------------------------
:
144 | /// - The coordinator is not started automatically; call `start()` explicitly
145 | /// - Router configuration can be modified after initialization if needed
146 | public init() {
| `- note: add '@available' attribute to enclosing initializer
147 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
149 | }
/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:52: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 | // --------------------------------------------------------------------
:
50 | // --------------------------------------------------------------------
51 |
52 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
53 | RouterView(coordinator: dataSource)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:44:13: 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 | // --------------------------------------------------------------------
:
38 | // --------------------------------------------------------------------
39 |
40 | init(dataSource: DataSource) {
| `- note: add '@available' attribute to enclosing initializer
41 | self._dataSource = .init(wrappedValue: dataSource)
42 |
43 | if !dataSource.isRunning && !dataSource.isTabCoordinable {
44 | Task { @MainActor in await dataSource.start() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:44:13: error: 'init(name: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 | // --------------------------------------------------------------------
:
38 | // --------------------------------------------------------------------
39 |
40 | init(dataSource: DataSource) {
| `- note: add '@available' attribute to enclosing initializer
41 | self._dataSource = .init(wrappedValue: dataSource)
42 |
43 | if !dataSource.isRunning && !dataSource.isTabCoordinable {
44 | Task { @MainActor in await dataSource.start() }
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:28: 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:33: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
28 |
29 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:45: error: 'seconds' is only available in macOS 13.0 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
28 |
29 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'seconds' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:213:30: error: 'move(edge:)' 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
202 | /// - animated: A Boolean value indicating whether the transition should be animated.
203 | /// - Returns: A `SheetItem` configured to present the target coordinator's view.
204 | func buildSheetItemForCoordinator(
| `- note: add '@available' attribute to enclosing instance method
205 | _ coordinator: AnyCoordinatorType,
206 | presentationStyle: TransitionPresentationStyle,
:
211 | if effectivePresentationStyle == .push {
212 | effectivePresentationStyle = .custom(
213 | transition: .move(edge: .trailing),
| |- error: 'move(edge:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | animation: .default,
215 | fullScreen: true
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:214:29: error: 'default' 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
202 | /// - animated: A Boolean value indicating whether the transition should be animated.
203 | /// - Returns: A `SheetItem` configured to present the target coordinator's view.
204 | func buildSheetItemForCoordinator(
| `- note: add '@available' attribute to enclosing instance method
205 | _ coordinator: AnyCoordinatorType,
206 | presentationStyle: TransitionPresentationStyle,
:
212 | effectivePresentationStyle = .custom(
213 | transition: .move(edge: .trailing),
214 | animation: .default,
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | fullScreen: true
216 | )
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Navigation.swift:156:25: 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 | /// Returns the coordinator that is currently visible to the user.
:
153 | /// ```
154 |
155 | @MainActor func startFlow(route: Route) async -> Void {
| `- note: add '@available' attribute to enclosing instance method
156 | if !isRunning { router.mainView = route }
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | }
158 |
[36/37] Compiling SUICoordinator CoordinatorType+Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:95:6: error: 'Published' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add '@available' attribute to enclosing generic class
85 |
86 | // --------------------------------------------------------------------
:
93 | /// push navigation, modal presentations, and navigation stack management.
94 | /// Changes to the router state automatically trigger UI updates.
95 | @Published public var router: Router<Route>
| `- error: 'Published' is only available in macOS 10.15 or newer
96 |
97 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:84:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | 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
85 |
86 | // --------------------------------------------------------------------
<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:147:9: error: setter for 'router' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add '@available' attribute to enclosing generic class
85 |
86 | // --------------------------------------------------------------------
:
144 | /// - The coordinator is not started automatically; call `start()` explicitly
145 | /// - Router configuration can be modified after initialization if needed
146 | public init() {
| `- note: add '@available' attribute to enclosing initializer
147 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
149 | }
/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:52: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 | // --------------------------------------------------------------------
:
50 | // --------------------------------------------------------------------
51 |
52 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
53 | RouterView(coordinator: dataSource)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:44:13: 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 | // --------------------------------------------------------------------
:
38 | // --------------------------------------------------------------------
39 |
40 | init(dataSource: DataSource) {
| `- note: add '@available' attribute to enclosing initializer
41 | self._dataSource = .init(wrappedValue: dataSource)
42 |
43 | if !dataSource.isRunning && !dataSource.isTabCoordinable {
44 | Task { @MainActor in await dataSource.start() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:44:13: error: 'init(name: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 | // --------------------------------------------------------------------
:
38 | // --------------------------------------------------------------------
39 |
40 | init(dataSource: DataSource) {
| `- note: add '@available' attribute to enclosing initializer
41 | self._dataSource = .init(wrappedValue: dataSource)
42 |
43 | if !dataSource.isRunning && !dataSource.isTabCoordinable {
44 | Task { @MainActor in await dataSource.start() }
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:28: 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:33: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
28 |
29 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:45: error: 'seconds' is only available in macOS 13.0 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
28 |
29 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'seconds' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:213:30: error: 'move(edge:)' 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
202 | /// - animated: A Boolean value indicating whether the transition should be animated.
203 | /// - Returns: A `SheetItem` configured to present the target coordinator's view.
204 | func buildSheetItemForCoordinator(
| `- note: add '@available' attribute to enclosing instance method
205 | _ coordinator: AnyCoordinatorType,
206 | presentationStyle: TransitionPresentationStyle,
:
211 | if effectivePresentationStyle == .push {
212 | effectivePresentationStyle = .custom(
213 | transition: .move(edge: .trailing),
| |- error: 'move(edge:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | animation: .default,
215 | fullScreen: true
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:214:29: error: 'default' 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
202 | /// - animated: A Boolean value indicating whether the transition should be animated.
203 | /// - Returns: A `SheetItem` configured to present the target coordinator's view.
204 | func buildSheetItemForCoordinator(
| `- note: add '@available' attribute to enclosing instance method
205 | _ coordinator: AnyCoordinatorType,
206 | presentationStyle: TransitionPresentationStyle,
:
212 | effectivePresentationStyle = .custom(
213 | transition: .move(edge: .trailing),
214 | animation: .default,
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | fullScreen: true
216 | )
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Navigation.swift:156:25: 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 | /// Returns the coordinator that is currently visible to the user.
:
153 | /// ```
154 |
155 | @MainActor func startFlow(route: Route) async -> Void {
| `- note: add '@available' attribute to enclosing instance method
156 | if !isRunning { router.mainView = route }
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | }
158 |
[37/37] Compiling SUICoordinator CoordinatorType+Navigation.swift
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:95:6: error: 'Published' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add '@available' attribute to enclosing generic class
85 |
86 | // --------------------------------------------------------------------
:
93 | /// push navigation, modal presentations, and navigation stack management.
94 | /// Changes to the router state automatically trigger UI updates.
95 | @Published public var router: Router<Route>
| `- error: 'Published' is only available in macOS 10.15 or newer
96 |
97 | // --------------------------------------------------------------------
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/Coordinator.swift:84:43: error: 'ObservableObject' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | 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
85 |
86 | // --------------------------------------------------------------------
<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:147:9: error: setter for 'router' is only available in macOS 10.15 or newer
82 | /// }
83 | /// ```
84 | open class Coordinator<Route: RouteType>: ObservableObject, CoordinatorType {
| `- note: add '@available' attribute to enclosing generic class
85 |
86 | // --------------------------------------------------------------------
:
144 | /// - The coordinator is not started automatically; call `start()` explicitly
145 | /// - Router configuration can be modified after initialization if needed
146 | public init() {
| `- note: add '@available' attribute to enclosing initializer
147 | self.router = .init()
| |- error: setter for 'router' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | self.uuid = "\(NSStringFromClass(type(of: self))) - \(UUID().uuidString)"
149 | }
/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:52: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 | // --------------------------------------------------------------------
:
50 | // --------------------------------------------------------------------
51 |
52 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
53 | RouterView(coordinator: dataSource)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:44:13: 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 | // --------------------------------------------------------------------
:
38 | // --------------------------------------------------------------------
39 |
40 | init(dataSource: DataSource) {
| `- note: add '@available' attribute to enclosing initializer
41 | self._dataSource = .init(wrappedValue: dataSource)
42 |
43 | if !dataSource.isRunning && !dataSource.isTabCoordinable {
44 | Task { @MainActor in await dataSource.start() }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/Coordinator/CoordinatorView.swift:44:13: error: 'init(name: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 | // --------------------------------------------------------------------
:
38 | // --------------------------------------------------------------------
39 |
40 | init(dataSource: DataSource) {
| `- note: add '@available' attribute to enclosing initializer
41 | self._dataSource = .init(wrappedValue: dataSource)
42 |
43 | if !dataSource.isRunning && !dataSource.isTabCoordinable {
44 | Task { @MainActor in await dataSource.start() }
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:28: 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:33: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
28 |
29 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:184:45: error: 'seconds' is only available in macOS 13.0 or newer
25 | import Foundation
26 |
27 | extension CoordinatorType {
| `- note: add '@available' attribute to enclosing extension
28 |
29 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
176 |
177 | /// Cleans up the coordinator.
178 | func swipedAway(coordinator: AnyCoordinatorType) async {
| `- note: add '@available' attribute to enclosing instance method
179 | let sheetCoordinator = router.sheetCoordinator
180 | let uuid = coordinator.uuid
:
182 | sheetCoordinator.onRemoveItem = { [weak sheetCoordinator, weak coordinator] id in
183 | if id.contains(uuid) {
184 | try? await Task.sleep(for: .seconds(0.2))
| |- error: 'seconds' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
185 | await coordinator?.finish(animated: false, withDismiss: false)
186 | sheetCoordinator?.onRemoveItem = nil
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:213:30: error: 'move(edge:)' 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
202 | /// - animated: A Boolean value indicating whether the transition should be animated.
203 | /// - Returns: A `SheetItem` configured to present the target coordinator's view.
204 | func buildSheetItemForCoordinator(
| `- note: add '@available' attribute to enclosing instance method
205 | _ coordinator: AnyCoordinatorType,
206 | presentationStyle: TransitionPresentationStyle,
:
211 | if effectivePresentationStyle == .push {
212 | effectivePresentationStyle = .custom(
213 | transition: .move(edge: .trailing),
| |- error: 'move(edge:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | animation: .default,
215 | fullScreen: true
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Helpers.swift:214:29: error: 'default' 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 | /// A Boolean value indicating whether the coordinator has been started and has a main view.
:
202 | /// - animated: A Boolean value indicating whether the transition should be animated.
203 | /// - Returns: A `SheetItem` configured to present the target coordinator's view.
204 | func buildSheetItemForCoordinator(
| `- note: add '@available' attribute to enclosing instance method
205 | _ coordinator: AnyCoordinatorType,
206 | presentationStyle: TransitionPresentationStyle,
:
212 | effectivePresentationStyle = .custom(
213 | transition: .move(edge: .trailing),
214 | animation: .default,
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | fullScreen: true
216 | )
/Users/admin/builder/spi-builder-workspace/Sources/SUICoordinator/CoordinatorType/CoordinatorType+Navigation.swift:156:25: 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 | /// Returns the coordinator that is currently visible to the user.
:
153 | /// ```
154 |
155 | @MainActor func startFlow(route: Route) async -> Void {
| `- note: add '@available' attribute to enclosing instance method
156 | if !isRunning { router.mainView = route }
| |- error: setter for 'mainView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | }
158 |
BUILD FAILURE 6.2 macosSpm