Build Information
Failed to build Spices, reference 4.3.0 (bb50b8), with Swift 6.3 for macOS (SPM) on 22 Apr 2026 12:38:30 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Text("An unknown error occurred during the operation.")
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:19:24: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
17 | isPresented = false
18 | }
19 | } message: {
| |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | if let error {
21 | Text(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:22:10: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
22 | @State private var isModalPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
23 |
24 | init(_ title: String, content: Content) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:29:24: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:19:43: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:9:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:9:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'init(_:destination:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'init(_:destination:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:13:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
12 | case .inline:
13 | menuItem.content
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | }
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:6:25: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:30:13: error: 'Button' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | isModalPresented = true
32 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:30:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | isModalPresented = true
32 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:31:17: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | } label: {
33 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:33:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
33 | Text(title)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:33:17: error: 'Text' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
33 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:32:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | Text(title)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:35:14: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
:
33 | Text(title)
34 | }
35 | .sheet(isPresented: $isModalPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | content
37 | }
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[33/43] Compiling Spices View+ConfigureSheetPresentation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/UserInteraction.swift:4:6: error: 'Published' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | final class UserInteraction: ObservableObject {
| `- note: add '@available' attribute to enclosing class
4 | @Published var isEnabled = true
| `- error: 'Published' is only available in macOS 10.15 or newer
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/UserInteraction.swift:3:30: error: 'ObservableObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | final class UserInteraction: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
4 | @Published var isEnabled = true
5 | }
<unknown>:0: error: cannot convert value of type 'any KeyPath<UserInteraction, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<UserInteraction, Bool>'
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:5:41: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 16, *)
4 | private struct ConfigureSheetPresentationViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
5 | 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
6 | content.presentationDetents([.medium, .large])
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:12:47: error: 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:11:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:6:17: error: 'presentationDetents' is only available in macOS 13.0 or newer
2 |
3 | @available(iOS 16, *)
4 | private struct ConfigureSheetPresentationViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
5 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
6 | content.presentationDetents([.medium, .large])
| |- error: 'presentationDetents' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
7 | }
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
13 | if #available(iOS 16, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:14:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | } else {
16 | self
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:14:13: error: 'modifier' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | } else {
16 | self
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:34: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:34: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:34: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:15:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | self
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:12:52: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:4:34: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:4:86: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:3:11: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:10:6: error: 'Binding' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
11 | let error: Error?
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:13:41: error: 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | 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
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:5:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
6 | }
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:5:9: error: 'modifier' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
6 | }
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:14: error: 'alert(_:isPresented:actions:message:)' is only available in macOS 12.0 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: 'alert(_:isPresented:actions:message:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:20: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:65: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:65: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:17: error: 'Button' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:17: error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:24: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:17:21: error: setter for 'isPresented' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
17 | isPresented = false
| |- error: setter for 'isPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | }
19 | } message: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:65: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:21:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
19 | } message: {
20 | if let error {
21 | Text(error.localizedDescription)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | } else {
23 | Text("An unknown error occurred during the operation.")
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:21:21: error: 'Text' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
19 | } message: {
20 | if let error {
21 | Text(error.localizedDescription)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | } else {
23 | Text("An unknown error occurred during the operation.")
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:20:30: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
18 | }
19 | } message: {
20 | if let error {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | Text(error.localizedDescription)
22 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:20:30: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
18 | }
19 | } message: {
20 | if let error {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | Text(error.localizedDescription)
22 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:23:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
21 | Text(error.localizedDescription)
22 | } else {
23 | Text("An unknown error occurred during the operation.")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:23:21: error: 'Text' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
21 | Text(error.localizedDescription)
22 | } else {
23 | Text("An unknown error occurred during the operation.")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:22:24: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
20 | if let error {
21 | Text(error.localizedDescription)
22 | } else {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Text("An unknown error occurred during the operation.")
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:22:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
20 | if let error {
21 | Text(error.localizedDescription)
22 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Text("An unknown error occurred during the operation.")
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:19:24: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
17 | isPresented = false
18 | }
19 | } message: {
| |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | if let error {
21 | Text(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:22:10: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
22 | @State private var isModalPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
23 |
24 | init(_ title: String, content: Content) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:29:24: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:19:43: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:9:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:9:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'init(_:destination:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'init(_:destination:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:13:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
12 | case .inline:
13 | menuItem.content
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | }
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:6:25: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:30:13: error: 'Button' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | isModalPresented = true
32 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:30:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | isModalPresented = true
32 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:31:17: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | } label: {
33 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:33:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
33 | Text(title)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:33:17: error: 'Text' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
33 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:32:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | Text(title)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:35:14: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
:
33 | Text(title)
34 | }
35 | .sheet(isPresented: $isModalPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | content
37 | }
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[34/43] Compiling Spices View+ErrorAlert.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/UserInteraction.swift:4:6: error: 'Published' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | final class UserInteraction: ObservableObject {
| `- note: add '@available' attribute to enclosing class
4 | @Published var isEnabled = true
| `- error: 'Published' is only available in macOS 10.15 or newer
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/UserInteraction.swift:3:30: error: 'ObservableObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | final class UserInteraction: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
4 | @Published var isEnabled = true
5 | }
<unknown>:0: error: cannot convert value of type 'any KeyPath<UserInteraction, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<UserInteraction, Bool>'
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:5:41: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 16, *)
4 | private struct ConfigureSheetPresentationViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
5 | 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
6 | content.presentationDetents([.medium, .large])
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:12:47: error: 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:11:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:6:17: error: 'presentationDetents' is only available in macOS 13.0 or newer
2 |
3 | @available(iOS 16, *)
4 | private struct ConfigureSheetPresentationViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
5 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
6 | content.presentationDetents([.medium, .large])
| |- error: 'presentationDetents' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
7 | }
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
13 | if #available(iOS 16, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:14:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | } else {
16 | self
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:14:13: error: 'modifier' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | } else {
16 | self
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:34: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:34: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:34: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:15:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | self
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:12:52: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:4:34: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:4:86: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:3:11: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:10:6: error: 'Binding' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
11 | let error: Error?
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:13:41: error: 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | 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
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:5:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
6 | }
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:5:9: error: 'modifier' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
6 | }
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:14: error: 'alert(_:isPresented:actions:message:)' is only available in macOS 12.0 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: 'alert(_:isPresented:actions:message:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:20: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:65: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:65: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:17: error: 'Button' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:17: error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:24: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:17:21: error: setter for 'isPresented' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
17 | isPresented = false
| |- error: setter for 'isPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | }
19 | } message: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:65: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:21:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
19 | } message: {
20 | if let error {
21 | Text(error.localizedDescription)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | } else {
23 | Text("An unknown error occurred during the operation.")
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:21:21: error: 'Text' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
19 | } message: {
20 | if let error {
21 | Text(error.localizedDescription)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | } else {
23 | Text("An unknown error occurred during the operation.")
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:20:30: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
18 | }
19 | } message: {
20 | if let error {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | Text(error.localizedDescription)
22 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:20:30: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
18 | }
19 | } message: {
20 | if let error {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | Text(error.localizedDescription)
22 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:23:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
21 | Text(error.localizedDescription)
22 | } else {
23 | Text("An unknown error occurred during the operation.")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:23:21: error: 'Text' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
21 | Text(error.localizedDescription)
22 | } else {
23 | Text("An unknown error occurred during the operation.")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:22:24: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
20 | if let error {
21 | Text(error.localizedDescription)
22 | } else {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Text("An unknown error occurred during the operation.")
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:22:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
20 | if let error {
21 | Text(error.localizedDescription)
22 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Text("An unknown error occurred during the operation.")
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:19:24: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
17 | isPresented = false
18 | }
19 | } message: {
| |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | if let error {
21 | Text(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:22:10: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
22 | @State private var isModalPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
23 |
24 | init(_ title: String, content: Content) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:29:24: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:19:43: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:9:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:9:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'init(_:destination:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'init(_:destination:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:13:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
12 | case .inline:
13 | menuItem.content
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | }
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:6:25: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:30:13: error: 'Button' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | isModalPresented = true
32 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:30:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | isModalPresented = true
32 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:31:17: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | } label: {
33 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:33:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
33 | Text(title)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:33:17: error: 'Text' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
33 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:32:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | Text(title)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:35:14: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
:
33 | Text(title)
34 | }
35 | .sheet(isPresented: $isModalPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | content
37 | }
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[35/43] Compiling Spices ViewMenuItemView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/UserInteraction.swift:4:6: error: 'Published' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | final class UserInteraction: ObservableObject {
| `- note: add '@available' attribute to enclosing class
4 | @Published var isEnabled = true
| `- error: 'Published' is only available in macOS 10.15 or newer
5 | }
6 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/UserInteraction.swift:3:30: error: 'ObservableObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | final class UserInteraction: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
4 | @Published var isEnabled = true
5 | }
<unknown>:0: error: cannot convert value of type 'any KeyPath<UserInteraction, Bool> & Sendable' to expected argument type 'ReferenceWritableKeyPath<UserInteraction, Bool>'
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:5:41: error: 'View' is only available in macOS 10.15 or newer
2 |
3 | @available(iOS 16, *)
4 | private struct ConfigureSheetPresentationViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
5 | 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
6 | content.presentationDetents([.medium, .large])
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:12:47: error: 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:11:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:6:17: error: 'presentationDetents' is only available in macOS 13.0 or newer
2 |
3 | @available(iOS 16, *)
4 | private struct ConfigureSheetPresentationViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
5 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
6 | content.presentationDetents([.medium, .large])
| |- error: 'presentationDetents' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
7 | }
8 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
13 | if #available(iOS 16, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:14:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | } else {
16 | self
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:14:13: error: 'modifier' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | } else {
16 | self
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:34: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:34: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:13:34: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:15:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
15 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | self
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ConfigureSheetPresentation.swift:12:52: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
8 | }
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | @ViewBuilder
12 | func configureSheetPresentation() -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
13 | if #available(iOS 16, *) {
14 | modifier(ConfigureSheetPresentationViewModifier())
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:4:34: error: 'Binding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:4:86: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:3:11: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:10:6: error: 'Binding' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
11 | let error: Error?
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:13:41: error: 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | 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
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:5:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
6 | }
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:5:9: error: 'modifier' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add '@available' attribute to enclosing extension
4 | func errorAlert(isPresented: Binding<Bool>, showing error: Error? = nil) -> some View {
| `- note: add '@available' attribute to enclosing instance method
5 | modifier(ErrorAlertViewModifier(isPresented: isPresented, error: error))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
6 | }
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:14: error: 'alert(_:isPresented:actions:message:)' is only available in macOS 12.0 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: 'alert(_:isPresented:actions:message:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:20: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:65: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:65: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:17: error: 'Button' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:17: error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:16:24: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | isPresented = false
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:17:21: error: setter for 'isPresented' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
16 | Button("OK", role: .cancel) {
17 | isPresented = false
| |- error: setter for 'isPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | }
19 | } message: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:15:65: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Button("OK", role: .cancel) {
17 | isPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:21:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
19 | } message: {
20 | if let error {
21 | Text(error.localizedDescription)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | } else {
23 | Text("An unknown error occurred during the operation.")
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:21:21: error: 'Text' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
19 | } message: {
20 | if let error {
21 | Text(error.localizedDescription)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | } else {
23 | Text("An unknown error occurred during the operation.")
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:20:30: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
18 | }
19 | } message: {
20 | if let error {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | Text(error.localizedDescription)
22 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:20:30: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
18 | }
19 | } message: {
20 | if let error {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | Text(error.localizedDescription)
22 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:23:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
21 | Text(error.localizedDescription)
22 | } else {
23 | Text("An unknown error occurred during the operation.")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:23:21: error: 'Text' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
21 | Text(error.localizedDescription)
22 | } else {
23 | Text("An unknown error occurred during the operation.")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:22:24: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
20 | if let error {
21 | Text(error.localizedDescription)
22 | } else {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Text("An unknown error occurred during the operation.")
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:22:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
20 | if let error {
21 | Text(error.localizedDescription)
22 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Text("An unknown error occurred during the operation.")
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/View+ErrorAlert.swift:19:24: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
7 | }
8 |
9 | private struct ErrorAlertViewModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
10 | @Binding var isPresented: Bool
11 | let error: Error?
12 |
13 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | content
15 | .alert("Error Occurred", isPresented: $isPresented) {
:
17 | isPresented = false
18 | }
19 | } message: {
| |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | if let error {
21 | Text(error.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:22:10: error: 'State' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
22 | @State private var isModalPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
23 |
24 | init(_ title: String, content: Content) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:29:24: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:19:43: error: 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| |- note: add '@available' attribute to enclosing generic struct
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:9:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:9:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'init(_:destination:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'init(_:destination:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:11:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
9 | ModalPresentationView(menuItem.name.rawValue, content: menuItem.content)
10 | case .push:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case .inline:
13 | menuItem.content
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:13:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
:
11 | NavigationLink(menuItem.name.rawValue, destination: menuItem.content)
12 | case .inline:
13 | menuItem.content
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | }
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:6:25: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ViewMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: ViewMenuItem
5 |
6 | var body: some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing property
7 | switch menuItem.presentationStyle {
8 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:30:13: error: 'Button' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | isModalPresented = true
32 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:30:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | isModalPresented = true
32 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:31:17: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | } label: {
33 | Text(title)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:33:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
33 | Text(title)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:33:17: error: 'Text' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
33 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:32:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
32 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | Text(title)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ViewMenuItemView.swift:35:14: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
17 |
18 | private extension ViewMenuItemView {
19 | struct ModalPresentationView<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
20 | private let title: String
21 | private let content: Content
:
27 | }
28 |
29 | var body: some View {
| `- note: add '@available' attribute to enclosing property
30 | Button {
31 | isModalPresented = true
:
33 | Text(title)
34 | }
35 | .sheet(isPresented: $isModalPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | content
37 | }
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[36/43] Compiling Spices UIApplication+Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:6:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
7 | @State private var isLoading = false
| `- error: 'State' is only available in macOS 10.15 or newer
8 | @State private var isErrorPresented = false
9 | @State private var error: Error?
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
9 | @State private var error: Error?
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
:
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
9 | @State private var error: Error?
| `- error: 'State' is only available in macOS 10.15 or newer
10 |
11 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:11:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
:
9 | @State private var error: Error?
10 |
11 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
12 | Button {
13 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:23:25: error: cannot find 'UIApplication' in scope
21 | try await menuItem.storage.value()
22 | if menuItem.requiresRestart {
23 | UIApplication.shared.shp_restart()
| `- error: cannot find 'UIApplication' in scope
24 | }
25 | } catch {
[37/43] Compiling Spices UIViewController+Helpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:6:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
7 | @State private var isLoading = false
| `- error: 'State' is only available in macOS 10.15 or newer
8 | @State private var isErrorPresented = false
9 | @State private var error: Error?
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
9 | @State private var error: Error?
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
:
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
9 | @State private var error: Error?
| `- error: 'State' is only available in macOS 10.15 or newer
10 |
11 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:11:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
:
9 | @State private var error: Error?
10 |
11 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
12 | Button {
13 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:23:25: error: cannot find 'UIApplication' in scope
21 | try await menuItem.storage.value()
22 | if menuItem.requiresRestart {
23 | UIApplication.shared.shp_restart()
| `- error: cannot find 'UIApplication' in scope
24 | }
25 | } catch {
[38/43] Compiling Spices View+RestartOnChange.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:6:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
7 | @State private var isLoading = false
| `- error: 'State' is only available in macOS 10.15 or newer
8 | @State private var isErrorPresented = false
9 | @State private var error: Error?
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
9 | @State private var error: Error?
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
:
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
9 | @State private var error: Error?
| `- error: 'State' is only available in macOS 10.15 or newer
10 |
11 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:11:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
:
9 | @State private var error: Error?
10 |
11 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
12 | Button {
13 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:23:25: error: cannot find 'UIApplication' in scope
21 | try await menuItem.storage.value()
22 | if menuItem.requiresRestart {
23 | UIApplication.shared.shp_restart()
| `- error: cannot find 'UIApplication' in scope
24 | }
25 | } catch {
[39/43] Compiling Spices AsyncButtonMenuItemView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:6:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
7 | @State private var isLoading = false
| `- error: 'State' is only available in macOS 10.15 or newer
8 | @State private var isErrorPresented = false
9 | @State private var error: Error?
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
6 | @EnvironmentObject private var userInteraction: UserInteraction
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
9 | @State private var error: Error?
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
:
7 | @State private var isLoading = false
8 | @State private var isErrorPresented = false
9 | @State private var error: Error?
| `- error: 'State' is only available in macOS 10.15 or newer
10 |
11 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:11:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct AsyncButtonMenuItemView: View {
| `- note: add '@available' attribute to enclosing struct
4 | let menuItem: AsyncButtonMenuItem
5 |
:
9 | @State private var error: Error?
10 |
11 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
12 | Button {
13 | Task {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/AsyncButtonMenuItemView.swift:23:25: error: cannot find 'UIApplication' in scope
21 | try await menuItem.storage.value()
22 | if menuItem.requiresRestart {
23 | UIApplication.shared.shp_restart()
| `- error: cannot find 'UIApplication' in scope
24 | }
25 | } catch {
[40/43] Compiling Spices ViewMenuItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/MenuItems/ViewMenuItem.swift:14:18: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | final class ViewMenuItem: MenuItem {
| `- note: add '@available' attribute to enclosing class
5 | enum PresentationStyle {
6 | case modal
:
12 | let name: Name
13 | let presentationStyle: PresentationStyle
14 | let content: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
15 |
16 | init(name: Name, presentationStyle: PresentationStyle, content: AnyView) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/MenuItems/ViewMenuItem.swift:16:69: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | final class ViewMenuItem: MenuItem {
| `- note: add '@available' attribute to enclosing class
5 | enum PresentationStyle {
6 | case modal
:
14 | let content: AnyView
15 |
16 | init(name: Name, presentationStyle: PresentationStyle, content: AnyView) {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
17 | self.name = name
18 | self.presentationStyle = presentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Storage/AnyStorage.swift:5:20: error: 'AnyPublisher' is only available in macOS 10.15 or newer
1 | import Combine
2 |
3 | final class AnyStorage<Value>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
4 | private(set) var isPrepared = false
5 | let publisher: AnyPublisher<Value, Never>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
6 | var value: Value {
7 | get {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Storage/AnyStorage.swift:11:13: error: 'objectWillChange' is only available in macOS 10.15 or newer
1 | import Combine
2 |
3 | final class AnyStorage<Value>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
4 | private(set) var isPrepared = false
5 | let publisher: AnyPublisher<Value, Never>
6 | var value: Value {
| `- note: add '@available' attribute to enclosing property
7 | get {
8 | read()
9 | }
10 | set {
11 | objectWillChange.send()
| |- error: 'objectWillChange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | write(newValue)
13 | }
[41/43] Compiling Spices Name.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/MenuItems/ViewMenuItem.swift:14:18: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | final class ViewMenuItem: MenuItem {
| `- note: add '@available' attribute to enclosing class
5 | enum PresentationStyle {
6 | case modal
:
12 | let name: Name
13 | let presentationStyle: PresentationStyle
14 | let content: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
15 |
16 | init(name: Name, presentationStyle: PresentationStyle, content: AnyView) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/MenuItems/ViewMenuItem.swift:16:69: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | final class ViewMenuItem: MenuItem {
| `- note: add '@available' attribute to enclosing class
5 | enum PresentationStyle {
6 | case modal
:
14 | let content: AnyView
15 |
16 | init(name: Name, presentationStyle: PresentationStyle, content: AnyView) {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
17 | self.name = name
18 | self.presentationStyle = presentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Storage/AnyStorage.swift:5:20: error: 'AnyPublisher' is only available in macOS 10.15 or newer
1 | import Combine
2 |
3 | final class AnyStorage<Value>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
4 | private(set) var isPrepared = false
5 | let publisher: AnyPublisher<Value, Never>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
6 | var value: Value {
7 | get {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Storage/AnyStorage.swift:11:13: error: 'objectWillChange' is only available in macOS 10.15 or newer
1 | import Combine
2 |
3 | final class AnyStorage<Value>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
4 | private(set) var isPrepared = false
5 | let publisher: AnyPublisher<Value, Never>
6 | var value: Value {
| `- note: add '@available' attribute to enclosing property
7 | get {
8 | read()
9 | }
10 | set {
11 | objectWillChange.send()
| |- error: 'objectWillChange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | write(newValue)
13 | }
[42/43] Compiling Spices Preparable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/MenuItems/ViewMenuItem.swift:14:18: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | final class ViewMenuItem: MenuItem {
| `- note: add '@available' attribute to enclosing class
5 | enum PresentationStyle {
6 | case modal
:
12 | let name: Name
13 | let presentationStyle: PresentationStyle
14 | let content: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
15 |
16 | init(name: Name, presentationStyle: PresentationStyle, content: AnyView) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/MenuItems/ViewMenuItem.swift:16:69: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | final class ViewMenuItem: MenuItem {
| `- note: add '@available' attribute to enclosing class
5 | enum PresentationStyle {
6 | case modal
:
14 | let content: AnyView
15 |
16 | init(name: Name, presentationStyle: PresentationStyle, content: AnyView) {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
17 | self.name = name
18 | self.presentationStyle = presentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Storage/AnyStorage.swift:5:20: error: 'AnyPublisher' is only available in macOS 10.15 or newer
1 | import Combine
2 |
3 | final class AnyStorage<Value>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
4 | private(set) var isPrepared = false
5 | let publisher: AnyPublisher<Value, Never>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
6 | var value: Value {
7 | get {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Storage/AnyStorage.swift:11:13: error: 'objectWillChange' is only available in macOS 10.15 or newer
1 | import Combine
2 |
3 | final class AnyStorage<Value>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
4 | private(set) var isPrepared = false
5 | let publisher: AnyPublisher<Value, Never>
6 | var value: Value {
| `- note: add '@available' attribute to enclosing property
7 | get {
8 | read()
9 | }
10 | set {
11 | objectWillChange.send()
| |- error: 'objectWillChange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | write(newValue)
13 | }
[43/43] Compiling Spices AnyStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/MenuItems/ViewMenuItem.swift:14:18: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | final class ViewMenuItem: MenuItem {
| `- note: add '@available' attribute to enclosing class
5 | enum PresentationStyle {
6 | case modal
:
12 | let name: Name
13 | let presentationStyle: PresentationStyle
14 | let content: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
15 |
16 | init(name: Name, presentationStyle: PresentationStyle, content: AnyView) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/MenuItems/ViewMenuItem.swift:16:69: error: 'AnyView' is only available in macOS 10.15 or newer
2 | import SwiftUI
3 |
4 | final class ViewMenuItem: MenuItem {
| `- note: add '@available' attribute to enclosing class
5 | enum PresentationStyle {
6 | case modal
:
14 | let content: AnyView
15 |
16 | init(name: Name, presentationStyle: PresentationStyle, content: AnyView) {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
17 | self.name = name
18 | self.presentationStyle = presentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Storage/AnyStorage.swift:5:20: error: 'AnyPublisher' is only available in macOS 10.15 or newer
1 | import Combine
2 |
3 | final class AnyStorage<Value>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
4 | private(set) var isPrepared = false
5 | let publisher: AnyPublisher<Value, Never>
| `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
6 | var value: Value {
7 | get {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Storage/AnyStorage.swift:11:13: error: 'objectWillChange' is only available in macOS 10.15 or newer
1 | import Combine
2 |
3 | final class AnyStorage<Value>: ObservableObject {
| `- note: add '@available' attribute to enclosing generic class
4 | private(set) var isPrepared = false
5 | let publisher: AnyPublisher<Value, Never>
6 | var value: Value {
| `- note: add '@available' attribute to enclosing property
7 | get {
8 | read()
9 | }
10 | set {
11 | objectWillChange.send()
| |- error: 'objectWillChange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | write(newValue)
13 | }
BUILD FAILURE 6.3 macosSpm