Build Information
Failed to build Spices, reference main (bb50b8
), with Swift 6.0 for macOS (SPM) on 4 Sep 2025 02:28:18 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
/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 | }
/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
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
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: '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: 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: '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: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: '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: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: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: '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: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: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: '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: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: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 | }
[41/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 |
<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/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 | }
/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
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
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: '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: 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: '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: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: '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: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: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: '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: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: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: '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: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: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 | }
[42/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 |
<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/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 | }
/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
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
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: '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: 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: '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: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: '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: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: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: '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: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: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: '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: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: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 | }
[43/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 |
<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/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 | }
/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
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
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: '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: 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: '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: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: '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: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: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: '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: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: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: '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: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: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 | }
BUILD FAILURE 6.0 macosSpm