Build Information
Failed to build Spices, reference 4.3.1 (c54398), with Swift 6.1 for macOS (SPM) on 24 Aug 2026 21:01:42 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
4 | @ObservedObject var menuItem: TextFieldMenuItem
5 |
6 | @State private var editingValue: String = ""
| `- error: 'State' is only available in macOS 10.15 or newer
7 | @State private var restartApp = false
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/TextFieldMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct TextFieldMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var menuItem: TextFieldMenuItem
5 |
6 | @State private var editingValue: String = ""
7 | @State private var restartApp = false
| `- error: 'State' is only available in macOS 10.15 or newer
8 |
9 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/TextFieldMenuItemView.swift:9:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct TextFieldMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var menuItem: TextFieldMenuItem
5 |
:
7 | @State private var restartApp = false
8 |
9 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | GeometryReader { proxy in
11 | HStack {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/TextFieldMenuItemView.swift:25:10: error: value of type 'some View' has no member 'restartApp'
23 | restartApp = menuItem.requiresRestart
24 | }
25 | .restartApp($restartApp)
| `- error: value of type 'some View' has no member 'restartApp'
26 | .onAppear {
27 | editingValue = menuItem.value
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ToggleMenuItemView.swift:4:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ToggleMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var menuItem: ToggleMenuItem
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
5 |
6 | @State private var isOn = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ToggleMenuItemView.swift:6:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ToggleMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var menuItem: ToggleMenuItem
5 |
6 | @State private var isOn = false
| `- error: 'State' is only available in macOS 10.15 or newer
7 | @State private var restartApp = false
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ToggleMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ToggleMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var menuItem: ToggleMenuItem
5 |
6 | @State private var isOn = false
7 | @State private var restartApp = false
| `- error: 'State' is only available in macOS 10.15 or newer
8 |
9 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ToggleMenuItemView.swift:9:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ToggleMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var menuItem: ToggleMenuItem
5 |
:
7 | @State private var restartApp = false
8 |
9 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | Toggle(isOn: $isOn) {
11 | Text(menuItem.name.rawValue)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ToggleMenuItemView.swift:24:10: error: value of type 'some View' has no member 'restartApp'
22 | }
23 | }
24 | .restartApp($restartApp)
| `- error: value of type 'some View' has no member 'restartApp'
25 | .onAppear {
26 | isOn = menuItem.value
[39/42] Compiling Spices ButtonMenuItemView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:6:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
6 | @State private var isErrorPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
7 | @State private var error: Error?
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
6 | @State private var isErrorPresented = false
7 | @State private var error: Error?
| `- error: 'State' is only available in macOS 10.15 or newer
8 |
9 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:9:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
:
7 | @State private var error: Error?
8 |
9 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | Button {
11 | do {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:14:21: error: cannot find 'UIApplication' in scope
12 | try menuItem.storage.value()
13 | if menuItem.requiresRestart {
14 | UIApplication.shared.shp_restart()
| `- error: cannot find 'UIApplication' in scope
15 | }
16 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:7:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:41:24: error: 'View' is only available in macOS 10.15 or newer
35 |
36 | private extension ChildSpiceStoreMenuItemView {
37 | struct ChildMenuItemListView: View {
| `- note: add @available attribute to enclosing struct
38 | let menuItem: ChildSpiceStoreMenuItem
39 | let dismiss: () -> Void
40 |
41 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | MenuItemListView(
43 | items: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:56:10: error: 'State' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
57 |
58 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:58:24: error: 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:10:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .push:
12 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:10:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .push:
12 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:15:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
15 | Text(menuItem.name.rawValue)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | case let .inline(header, footer):
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:15:17: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
15 | Text(menuItem.name.rawValue)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | case let .inline(header, footer):
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:14:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
12 | NavigationLink {
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | Text(menuItem.name.rawValue)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'Section' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'init(content:header:footer:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'init(content:header:footer:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:25:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
23 | } header: {
24 | if let header {
25 | Text(header)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | } footer: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:25:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
23 | } header: {
24 | if let header {
25 | Text(header)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | } footer: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:24:31: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
22 | )
23 | } header: {
24 | if let header {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(header)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:24:31: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
22 | )
23 | } header: {
24 | if let header {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(header)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:26:17: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
24 | if let header {
25 | Text(header)
26 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | } footer: {
28 | if let footer {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:23:23: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
21 | dismiss: dismiss
22 | )
23 | } header: {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | if let header {
25 | Text(header)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:29:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
27 | } footer: {
28 | if let footer {
29 | Text(footer)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:29:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
27 | } footer: {
28 | if let footer {
29 | Text(footer)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:28:31: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
26 | }
27 | } footer: {
28 | if let footer {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Text(footer)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:28:31: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
26 | }
27 | } footer: {
28 | if let footer {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Text(footer)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:30:17: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
28 | if let footer {
29 | Text(footer)
30 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:27:23: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
25 | Text(header)
26 | }
27 | } footer: {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | if let footer {
29 | Text(footer)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:7:25: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | 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
8 | switch menuItem.presentationStyle {
9 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:47:14: error: 'navigationBarTitleDisplayMode' is unavailable in macOS
45 | dismiss: dismiss
46 | )
47 | .navigationBarTitleDisplayMode(.inline)
| `- error: 'navigationBarTitleDisplayMode' is unavailable in macOS
48 | }
49 | }
SwiftUI.View.navigationBarTitleDisplayMode:2:25: note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func navigationBarTitleDisplayMode(_ displayMode: NavigationBarItem.TitleDisplayMode) -> some View
| `- note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:59:13: error: 'Button' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | isModalPresented = true
61 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:59:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | isModalPresented = true
61 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:60:17: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | } label: {
62 | Text(menuItem.name.rawValue)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:62:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
62 | Text(menuItem.name.rawValue)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:62:17: error: 'Text' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
62 | Text(menuItem.name.rawValue)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:61:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | Text(menuItem.name.rawValue)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:64:14: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
62 | Text(menuItem.name.rawValue)
63 | }
64 | .sheet(isPresented: $isModalPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | NavigationView {
66 | ChildMenuItemListView(menuItem: menuItem) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:65:17: error: 'NavigationView' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
63 | }
64 | .sheet(isPresented: $isModalPresented) {
65 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | ChildMenuItemListView(menuItem: menuItem) {
67 | isModalPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:67:25: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
65 | NavigationView {
66 | ChildMenuItemListView(menuItem: menuItem) {
67 | isModalPresented = false
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:7:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: 'ForEach' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:7:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:4:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListView: View {
| `- note: add @available attribute to enclosing struct
4 | @EnvironmentObject private var userInteraction: UserInteraction
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
5 | private let title: String
6 | private let menuItems: [MenuItem]
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListView: View {
| `- note: add @available attribute to enclosing struct
4 | @EnvironmentObject private var userInteraction: UserInteraction
5 | private let title: String
:
13 | }
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:35: error: extra argument 'role' in call
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: extra argument 'role' in call
26 | } else {
27 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:40: error: missing argument for parameter 'label' in call
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: missing argument for parameter 'label' in call
26 | } else {
27 | Button {
SwiftUI.Button.init:2:24: note: 'init(action:label:)' declared here
1 | generic struct Button {
2 | @preconcurrency public init(action: @escaping @MainActor () -> Void, @ViewBuilder label: () -> Label)}
| `- note: 'init(action:label:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:21: error: generic parameter 'Label' could not be inferred
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| |- error: generic parameter 'Label' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
26 | } else {
27 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:35: error: cannot infer contextual base in reference to member 'close'
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: cannot infer contextual base in reference to member 'close'
26 | } else {
27 | Button {
[40/42] Compiling Spices ChildSpiceStoreMenuItemView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:6:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
6 | @State private var isErrorPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
7 | @State private var error: Error?
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
6 | @State private var isErrorPresented = false
7 | @State private var error: Error?
| `- error: 'State' is only available in macOS 10.15 or newer
8 |
9 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:9:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
:
7 | @State private var error: Error?
8 |
9 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | Button {
11 | do {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:14:21: error: cannot find 'UIApplication' in scope
12 | try menuItem.storage.value()
13 | if menuItem.requiresRestart {
14 | UIApplication.shared.shp_restart()
| `- error: cannot find 'UIApplication' in scope
15 | }
16 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:7:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:41:24: error: 'View' is only available in macOS 10.15 or newer
35 |
36 | private extension ChildSpiceStoreMenuItemView {
37 | struct ChildMenuItemListView: View {
| `- note: add @available attribute to enclosing struct
38 | let menuItem: ChildSpiceStoreMenuItem
39 | let dismiss: () -> Void
40 |
41 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | MenuItemListView(
43 | items: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:56:10: error: 'State' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
57 |
58 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:58:24: error: 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:10:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .push:
12 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:10:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .push:
12 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:15:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
15 | Text(menuItem.name.rawValue)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | case let .inline(header, footer):
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:15:17: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
15 | Text(menuItem.name.rawValue)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | case let .inline(header, footer):
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:14:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
12 | NavigationLink {
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | Text(menuItem.name.rawValue)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'Section' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'init(content:header:footer:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'init(content:header:footer:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:25:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
23 | } header: {
24 | if let header {
25 | Text(header)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | } footer: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:25:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
23 | } header: {
24 | if let header {
25 | Text(header)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | } footer: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:24:31: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
22 | )
23 | } header: {
24 | if let header {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(header)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:24:31: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
22 | )
23 | } header: {
24 | if let header {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(header)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:26:17: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
24 | if let header {
25 | Text(header)
26 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | } footer: {
28 | if let footer {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:23:23: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
21 | dismiss: dismiss
22 | )
23 | } header: {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | if let header {
25 | Text(header)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:29:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
27 | } footer: {
28 | if let footer {
29 | Text(footer)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:29:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
27 | } footer: {
28 | if let footer {
29 | Text(footer)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:28:31: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
26 | }
27 | } footer: {
28 | if let footer {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Text(footer)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:28:31: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
26 | }
27 | } footer: {
28 | if let footer {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Text(footer)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:30:17: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
28 | if let footer {
29 | Text(footer)
30 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:27:23: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
25 | Text(header)
26 | }
27 | } footer: {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | if let footer {
29 | Text(footer)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:7:25: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | 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
8 | switch menuItem.presentationStyle {
9 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:47:14: error: 'navigationBarTitleDisplayMode' is unavailable in macOS
45 | dismiss: dismiss
46 | )
47 | .navigationBarTitleDisplayMode(.inline)
| `- error: 'navigationBarTitleDisplayMode' is unavailable in macOS
48 | }
49 | }
SwiftUI.View.navigationBarTitleDisplayMode:2:25: note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func navigationBarTitleDisplayMode(_ displayMode: NavigationBarItem.TitleDisplayMode) -> some View
| `- note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:59:13: error: 'Button' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | isModalPresented = true
61 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:59:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | isModalPresented = true
61 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:60:17: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | } label: {
62 | Text(menuItem.name.rawValue)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:62:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
62 | Text(menuItem.name.rawValue)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:62:17: error: 'Text' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
62 | Text(menuItem.name.rawValue)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:61:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | Text(menuItem.name.rawValue)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:64:14: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
62 | Text(menuItem.name.rawValue)
63 | }
64 | .sheet(isPresented: $isModalPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | NavigationView {
66 | ChildMenuItemListView(menuItem: menuItem) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:65:17: error: 'NavigationView' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
63 | }
64 | .sheet(isPresented: $isModalPresented) {
65 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | ChildMenuItemListView(menuItem: menuItem) {
67 | isModalPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:67:25: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
65 | NavigationView {
66 | ChildMenuItemListView(menuItem: menuItem) {
67 | isModalPresented = false
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:7:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: 'ForEach' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:7:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:4:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListView: View {
| `- note: add @available attribute to enclosing struct
4 | @EnvironmentObject private var userInteraction: UserInteraction
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
5 | private let title: String
6 | private let menuItems: [MenuItem]
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListView: View {
| `- note: add @available attribute to enclosing struct
4 | @EnvironmentObject private var userInteraction: UserInteraction
5 | private let title: String
:
13 | }
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:35: error: extra argument 'role' in call
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: extra argument 'role' in call
26 | } else {
27 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:40: error: missing argument for parameter 'label' in call
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: missing argument for parameter 'label' in call
26 | } else {
27 | Button {
SwiftUI.Button.init:2:24: note: 'init(action:label:)' declared here
1 | generic struct Button {
2 | @preconcurrency public init(action: @escaping @MainActor () -> Void, @ViewBuilder label: () -> Label)}
| `- note: 'init(action:label:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:21: error: generic parameter 'Label' could not be inferred
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| |- error: generic parameter 'Label' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
26 | } else {
27 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:35: error: cannot infer contextual base in reference to member 'close'
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: cannot infer contextual base in reference to member 'close'
26 | } else {
27 | Button {
[41/42] Compiling Spices MenuItemListContent.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:6:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
6 | @State private var isErrorPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
7 | @State private var error: Error?
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
6 | @State private var isErrorPresented = false
7 | @State private var error: Error?
| `- error: 'State' is only available in macOS 10.15 or newer
8 |
9 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:9:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
:
7 | @State private var error: Error?
8 |
9 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | Button {
11 | do {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:14:21: error: cannot find 'UIApplication' in scope
12 | try menuItem.storage.value()
13 | if menuItem.requiresRestart {
14 | UIApplication.shared.shp_restart()
| `- error: cannot find 'UIApplication' in scope
15 | }
16 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:7:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:41:24: error: 'View' is only available in macOS 10.15 or newer
35 |
36 | private extension ChildSpiceStoreMenuItemView {
37 | struct ChildMenuItemListView: View {
| `- note: add @available attribute to enclosing struct
38 | let menuItem: ChildSpiceStoreMenuItem
39 | let dismiss: () -> Void
40 |
41 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | MenuItemListView(
43 | items: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:56:10: error: 'State' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
57 |
58 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:58:24: error: 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:10:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .push:
12 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:10:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .push:
12 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:15:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
15 | Text(menuItem.name.rawValue)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | case let .inline(header, footer):
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:15:17: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
15 | Text(menuItem.name.rawValue)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | case let .inline(header, footer):
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:14:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
12 | NavigationLink {
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | Text(menuItem.name.rawValue)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'Section' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'init(content:header:footer:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'init(content:header:footer:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:25:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
23 | } header: {
24 | if let header {
25 | Text(header)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | } footer: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:25:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
23 | } header: {
24 | if let header {
25 | Text(header)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | } footer: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:24:31: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
22 | )
23 | } header: {
24 | if let header {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(header)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:24:31: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
22 | )
23 | } header: {
24 | if let header {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(header)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:26:17: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
24 | if let header {
25 | Text(header)
26 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | } footer: {
28 | if let footer {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:23:23: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
21 | dismiss: dismiss
22 | )
23 | } header: {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | if let header {
25 | Text(header)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:29:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
27 | } footer: {
28 | if let footer {
29 | Text(footer)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:29:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
27 | } footer: {
28 | if let footer {
29 | Text(footer)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:28:31: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
26 | }
27 | } footer: {
28 | if let footer {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Text(footer)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:28:31: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
26 | }
27 | } footer: {
28 | if let footer {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Text(footer)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:30:17: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
28 | if let footer {
29 | Text(footer)
30 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:27:23: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
25 | Text(header)
26 | }
27 | } footer: {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | if let footer {
29 | Text(footer)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:7:25: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | 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
8 | switch menuItem.presentationStyle {
9 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:47:14: error: 'navigationBarTitleDisplayMode' is unavailable in macOS
45 | dismiss: dismiss
46 | )
47 | .navigationBarTitleDisplayMode(.inline)
| `- error: 'navigationBarTitleDisplayMode' is unavailable in macOS
48 | }
49 | }
SwiftUI.View.navigationBarTitleDisplayMode:2:25: note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func navigationBarTitleDisplayMode(_ displayMode: NavigationBarItem.TitleDisplayMode) -> some View
| `- note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:59:13: error: 'Button' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | isModalPresented = true
61 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:59:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | isModalPresented = true
61 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:60:17: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | } label: {
62 | Text(menuItem.name.rawValue)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:62:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
62 | Text(menuItem.name.rawValue)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:62:17: error: 'Text' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
62 | Text(menuItem.name.rawValue)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:61:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | Text(menuItem.name.rawValue)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:64:14: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
62 | Text(menuItem.name.rawValue)
63 | }
64 | .sheet(isPresented: $isModalPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | NavigationView {
66 | ChildMenuItemListView(menuItem: menuItem) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:65:17: error: 'NavigationView' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
63 | }
64 | .sheet(isPresented: $isModalPresented) {
65 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | ChildMenuItemListView(menuItem: menuItem) {
67 | isModalPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:67:25: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
65 | NavigationView {
66 | ChildMenuItemListView(menuItem: menuItem) {
67 | isModalPresented = false
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:7:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: 'ForEach' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:7:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:4:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListView: View {
| `- note: add @available attribute to enclosing struct
4 | @EnvironmentObject private var userInteraction: UserInteraction
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
5 | private let title: String
6 | private let menuItems: [MenuItem]
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListView: View {
| `- note: add @available attribute to enclosing struct
4 | @EnvironmentObject private var userInteraction: UserInteraction
5 | private let title: String
:
13 | }
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:35: error: extra argument 'role' in call
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: extra argument 'role' in call
26 | } else {
27 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:40: error: missing argument for parameter 'label' in call
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: missing argument for parameter 'label' in call
26 | } else {
27 | Button {
SwiftUI.Button.init:2:24: note: 'init(action:label:)' declared here
1 | generic struct Button {
2 | @preconcurrency public init(action: @escaping @MainActor () -> Void, @ViewBuilder label: () -> Label)}
| `- note: 'init(action:label:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:21: error: generic parameter 'Label' could not be inferred
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| |- error: generic parameter 'Label' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
26 | } else {
27 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:35: error: cannot infer contextual base in reference to member 'close'
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: cannot infer contextual base in reference to member 'close'
26 | } else {
27 | Button {
[42/42] Compiling Spices MenuItemListView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:6:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
6 | @State private var isErrorPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
7 | @State private var error: Error?
8 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
6 | @State private var isErrorPresented = false
7 | @State private var error: Error?
| `- error: 'State' is only available in macOS 10.15 or newer
8 |
9 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:9:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ButtonMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ButtonMenuItem
5 |
:
7 | @State private var error: Error?
8 |
9 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
10 | Button {
11 | do {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ButtonMenuItemView.swift:14:21: error: cannot find 'UIApplication' in scope
12 | try menuItem.storage.value()
13 | if menuItem.requiresRestart {
14 | UIApplication.shared.shp_restart()
| `- error: cannot find 'UIApplication' in scope
15 | }
16 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:7:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:41:24: error: 'View' is only available in macOS 10.15 or newer
35 |
36 | private extension ChildSpiceStoreMenuItemView {
37 | struct ChildMenuItemListView: View {
| `- note: add @available attribute to enclosing struct
38 | let menuItem: ChildSpiceStoreMenuItem
39 | let dismiss: () -> Void
40 |
41 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | MenuItemListView(
43 | items: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:56:10: error: 'State' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
| `- error: 'State' is only available in macOS 10.15 or newer
57 |
58 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:58:24: error: 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:10:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .push:
12 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:10:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case .push:
12 | NavigationLink {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'NavigationLink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'NavigationLink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:15:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
15 | Text(menuItem.name.rawValue)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | case let .inline(header, footer):
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:15:17: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
15 | Text(menuItem.name.rawValue)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | }
17 | case let .inline(header, footer):
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:14:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
12 | NavigationLink {
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | Text(menuItem.name.rawValue)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:12:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
10 | ModalPresentationView(menuItem: menuItem)
11 | case .push:
12 | NavigationLink {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | ChildMenuItemListView(menuItem: menuItem, dismiss: dismiss)
14 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'Section' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'init(content:header:footer:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'init(content:header:footer:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:25:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
23 | } header: {
24 | if let header {
25 | Text(header)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | } footer: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:25:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
23 | } header: {
24 | if let header {
25 | Text(header)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | } footer: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:24:31: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
22 | )
23 | } header: {
24 | if let header {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(header)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:24:31: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
22 | )
23 | } header: {
24 | if let header {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Text(header)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:26:17: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
24 | if let header {
25 | Text(header)
26 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | } footer: {
28 | if let footer {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:23:23: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
21 | dismiss: dismiss
22 | )
23 | } header: {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | if let header {
25 | Text(header)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:29:21: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
27 | } footer: {
28 | if let footer {
29 | Text(footer)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:29:21: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
27 | } footer: {
28 | if let footer {
29 | Text(footer)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | }
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:28:31: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
26 | }
27 | } footer: {
28 | if let footer {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Text(footer)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:28:31: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
26 | }
27 | } footer: {
28 | if let footer {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | Text(footer)
30 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:30:17: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
28 | if let footer {
29 | Text(footer)
30 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:27:23: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
25 | Text(header)
26 | }
27 | } footer: {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | if let footer {
29 | Text(footer)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:18:13: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | switch menuItem.presentationStyle {
9 | case .modal:
:
16 | }
17 | case let .inline(header, footer):
18 | Section {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | MenuItemListContent(
20 | menuItems: menuItem.spiceStore.menuItems,
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:7:25: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct ChildSpiceStoreMenuItemView: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItem: ChildSpiceStoreMenuItem
5 | let dismiss: () -> Void
6 |
7 | 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
8 | switch menuItem.presentationStyle {
9 | case .modal:
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:47:14: error: 'navigationBarTitleDisplayMode' is unavailable in macOS
45 | dismiss: dismiss
46 | )
47 | .navigationBarTitleDisplayMode(.inline)
| `- error: 'navigationBarTitleDisplayMode' is unavailable in macOS
48 | }
49 | }
SwiftUI.View.navigationBarTitleDisplayMode:2:25: note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
1 | protocol View {
2 | nonisolated public func navigationBarTitleDisplayMode(_ displayMode: NavigationBarItem.TitleDisplayMode) -> some View
| `- note: 'navigationBarTitleDisplayMode' has been explicitly marked unavailable here
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:59:13: error: 'Button' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | isModalPresented = true
61 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:59:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | isModalPresented = true
61 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:60:17: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | } label: {
62 | Text(menuItem.name.rawValue)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:62:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
62 | Text(menuItem.name.rawValue)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:62:17: error: 'Text' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
62 | Text(menuItem.name.rawValue)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .sheet(isPresented: $isModalPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:61:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
61 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | Text(menuItem.name.rawValue)
63 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:64:14: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
62 | Text(menuItem.name.rawValue)
63 | }
64 | .sheet(isPresented: $isModalPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | NavigationView {
66 | ChildMenuItemListView(menuItem: menuItem) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:65:17: error: 'NavigationView' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
63 | }
64 | .sheet(isPresented: $isModalPresented) {
65 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | ChildMenuItemListView(menuItem: menuItem) {
67 | isModalPresented = false
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/ChildSpiceStoreMenuItemView.swift:67:25: error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
51 |
52 | private extension ChildSpiceStoreMenuItemView {
53 | struct ModalPresentationView: View {
| `- note: add @available attribute to enclosing struct
54 | let menuItem: ChildSpiceStoreMenuItem
55 |
56 | @State private var isModalPresented = false
57 |
58 | var body: some View {
| `- note: add @available attribute to enclosing property
59 | Button {
60 | isModalPresented = true
:
65 | NavigationView {
66 | ChildMenuItemListView(menuItem: menuItem) {
67 | isModalPresented = false
| |- error: setter for 'isModalPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:7:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: 'ForEach' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:8:9: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListContent.swift:7:25: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListContent: View {
| `- note: add @available attribute to enclosing struct
4 | let menuItems: [MenuItem]
5 | let dismiss: () -> Void
6 |
7 | var body: some View {
| | |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
8 | ForEach(menuItems, id: \.id) { menuItem in
9 | MenuItemView(menuItem: menuItem, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:4:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListView: View {
| `- note: add @available attribute to enclosing struct
4 | @EnvironmentObject private var userInteraction: UserInteraction
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
5 | private let title: String
6 | private let menuItems: [MenuItem]
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:15:20: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | struct MenuItemListView: View {
| `- note: add @available attribute to enclosing struct
4 | @EnvironmentObject private var userInteraction: UserInteraction
5 | private let title: String
:
13 | }
14 |
15 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:35: error: extra argument 'role' in call
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: extra argument 'role' in call
26 | } else {
27 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:40: error: missing argument for parameter 'label' in call
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: missing argument for parameter 'label' in call
26 | } else {
27 | Button {
SwiftUI.Button.init:2:24: note: 'init(action:label:)' declared here
1 | generic struct Button {
2 | @preconcurrency public init(action: @escaping @MainActor () -> Void, @ViewBuilder label: () -> Label)}
| `- note: 'init(action:label:)' declared here
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:21: error: generic parameter 'Label' could not be inferred
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| |- error: generic parameter 'Label' could not be inferred
| `- note: explicitly specify the generic arguments to fix this issue
26 | } else {
27 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:35: error: cannot infer contextual base in reference to member 'close'
23 | ToolbarItem(placement: .primaryAction) {
24 | if #available(iOS 26.0, *) {
25 | Button(role: .close, action: dismiss)
| `- error: cannot infer contextual base in reference to member 'close'
26 | } else {
27 | Button {
BUILD FAILURE 6.1 macosSpm