Build Information
Failed to build Spices, reference 4.3.0 (bb50b8
), with Swift 6.2 (beta) for macOS (SPM) on 4 Sep 2025 10:37:14 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
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:16:9: error: 'Form' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
| |- error: 'Form' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:19:10: error: 'disabled' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
18 | }
19 | .disabled(!userInteraction.isEnabled)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .navigationTitle(title)
21 | .toolbar {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:20:10: error: 'navigationTitle' is only available in macOS 11.0 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
18 | }
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
| |- error: 'navigationTitle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:21:10: error: 'toolbar(content:)' is only available in macOS 11.0 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
21 | .toolbar {
| |- error: 'toolbar(content:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:21:18: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
21 | .toolbar {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:21:18: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
21 | .toolbar {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:13: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:13: error: 'ToolbarItem' is only available in macOS 11.0 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: 'ToolbarItem' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:13: error: 'init(placement:content:)' is only available in macOS 11.0 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: 'init(placement:content:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:52: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:52: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:23:17: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | dismiss()
25 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:23:17: error: 'Button' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | dismiss()
25 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:23:17: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | dismiss()
25 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:26:21: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
24 | dismiss()
25 | } label: {
26 | Text("Done").fontWeight(.bold)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:26:21: error: 'Text' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
24 | dismiss()
25 | } label: {
26 | Text("Done").fontWeight(.bold)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:26:34: error: 'fontWeight' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
24 | dismiss()
25 | } label: {
26 | Text("Done").fontWeight(.bold)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:26: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
23 | Button {
24 | dismiss()
25 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | Text("Done").fontWeight(.bold)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:52: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:21:18: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
21 | .toolbar {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
[39/43] 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: 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: '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: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: 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: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: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: 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: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: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: 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: '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: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:16:9: error: 'Form' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
| |- error: 'Form' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:19:10: error: 'disabled' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
18 | }
19 | .disabled(!userInteraction.isEnabled)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .navigationTitle(title)
21 | .toolbar {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:20:10: error: 'navigationTitle' is only available in macOS 11.0 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
18 | }
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
| |- error: 'navigationTitle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:21:10: error: 'toolbar(content:)' is only available in macOS 11.0 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
21 | .toolbar {
| |- error: 'toolbar(content:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:21:18: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
21 | .toolbar {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:21:18: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
21 | .toolbar {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:13: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:13: error: 'ToolbarItem' is only available in macOS 11.0 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: 'ToolbarItem' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:13: error: 'init(placement:content:)' is only available in macOS 11.0 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: 'init(placement:content:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:52: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:52: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:23:17: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | dismiss()
25 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:23:17: error: 'Button' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | dismiss()
25 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:23:17: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | dismiss()
25 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:26:21: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
24 | dismiss()
25 | } label: {
26 | Text("Done").fontWeight(.bold)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:26:21: error: 'Text' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
24 | dismiss()
25 | } label: {
26 | Text("Done").fontWeight(.bold)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:26:34: error: 'fontWeight' 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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
24 | dismiss()
25 | } label: {
26 | Text("Done").fontWeight(.bold)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:25:26: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
23 | Button {
24 | dismiss()
25 | } label: {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | Text("Done").fontWeight(.bold)
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:22:52: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
20 | .navigationTitle(title)
21 | .toolbar {
22 | ToolbarItem(placement: .primaryAction) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | Button {
24 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Internal/Views/MenuItemListView.swift:21:18: error: conformance of 'Text' to '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 {
| `- note: add @available attribute to enclosing property
16 | Form {
17 | MenuItemListContent(menuItems: menuItems, dismiss: dismiss)
:
19 | .disabled(!userInteraction.isEnabled)
20 | .navigationTitle(title)
21 | .toolbar {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | ToolbarItem(placement: .primaryAction) {
23 | Button {
[40/43] Compiling Spices PresentationStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:77:32: error: 'AnyPublisher' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
75 | /// }
76 | /// ```
77 | public var projectedValue: AnyPublisher<Value, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
78 | storage.publisher
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:57: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:96: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:394:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:397:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
397 | ) where Value == AnyView {
| `- error: 'AnyView' is only available in macOS 10.15 or newer
398 | self.name = Name(name)
399 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:394:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:428:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:431:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
431 | ) where Value == AnyView {
| `- error: 'AnyView' is only available in macOS 10.15 or newer
432 | self.name = Name(name)
433 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:428:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:343:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
343 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
344 | setterMessage: "Cannot assign new reference to a custom view spice."
345 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:349:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
:
347 | name: self.name,
348 | presentationStyle: .inline,
349 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
350 | )
351 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:366:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
366 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
367 | setterMessage: "Cannot assign new reference to a custom view spice."
368 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:372:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
:
370 | name: self.name,
371 | presentationStyle: .inline,
372 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | )
374 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:400:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
:
398 | self.name = Name(name)
399 | self.storage = AnyStorage(ThrowingStorage(
400 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | setterMessage: "Cannot assign new reference to a custom view spice."
402 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:406:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
:
404 | name: self.name,
405 | presentationStyle: .modal,
406 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | )
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:434:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
:
432 | self.name = Name(name)
433 | self.storage = AnyStorage(ThrowingStorage(
434 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
435 | setterMessage: "Cannot assign new reference to a custom view spice."
436 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:440:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
:
438 | name: self.name,
439 | presentationStyle: .push,
440 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
441 | )
442 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:46:20: error: 'dismiss' is only available in macOS 12.0 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
46 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
47 |
48 | /// Initializes a `SpiceEditor` with a ``SpiceStore``.
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:46:6: error: 'Environment' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
46 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
47 |
48 | /// Initializes a `SpiceEditor` with a ``SpiceStore``.
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:66:27: error: 'View' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
67 | NavigationView {
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:67:9: error: 'NavigationView' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| `- note: add @available attribute to enclosing property
67 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
69 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:73:10: error: 'environmentObject' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| `- note: add @available attribute to enclosing property
67 | NavigationView {
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
:
71 | }
72 | .configureSheetPresentation()
73 | .environmentObject(UserInteraction())
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 | }
[41/43] Compiling Spices Spice.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:77:32: error: 'AnyPublisher' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
75 | /// }
76 | /// ```
77 | public var projectedValue: AnyPublisher<Value, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
78 | storage.publisher
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:57: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:96: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:394:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:397:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
397 | ) where Value == AnyView {
| `- error: 'AnyView' is only available in macOS 10.15 or newer
398 | self.name = Name(name)
399 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:394:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:428:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:431:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
431 | ) where Value == AnyView {
| `- error: 'AnyView' is only available in macOS 10.15 or newer
432 | self.name = Name(name)
433 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:428:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:343:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
343 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
344 | setterMessage: "Cannot assign new reference to a custom view spice."
345 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:349:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
:
347 | name: self.name,
348 | presentationStyle: .inline,
349 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
350 | )
351 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:366:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
366 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
367 | setterMessage: "Cannot assign new reference to a custom view spice."
368 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:372:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
:
370 | name: self.name,
371 | presentationStyle: .inline,
372 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | )
374 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:400:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
:
398 | self.name = Name(name)
399 | self.storage = AnyStorage(ThrowingStorage(
400 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | setterMessage: "Cannot assign new reference to a custom view spice."
402 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:406:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
:
404 | name: self.name,
405 | presentationStyle: .modal,
406 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | )
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:434:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
:
432 | self.name = Name(name)
433 | self.storage = AnyStorage(ThrowingStorage(
434 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
435 | setterMessage: "Cannot assign new reference to a custom view spice."
436 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:440:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
:
438 | name: self.name,
439 | presentationStyle: .push,
440 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
441 | )
442 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:46:20: error: 'dismiss' is only available in macOS 12.0 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
46 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
47 |
48 | /// Initializes a `SpiceEditor` with a ``SpiceStore``.
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:46:6: error: 'Environment' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
46 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
47 |
48 | /// Initializes a `SpiceEditor` with a ``SpiceStore``.
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:66:27: error: 'View' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
67 | NavigationView {
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:67:9: error: 'NavigationView' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| `- note: add @available attribute to enclosing property
67 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
69 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:73:10: error: 'environmentObject' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| `- note: add @available attribute to enclosing property
67 | NavigationView {
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
:
71 | }
72 | .configureSheetPresentation()
73 | .environmentObject(UserInteraction())
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 | }
[42/43] Compiling Spices SpiceEditor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:77:32: error: 'AnyPublisher' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
75 | /// }
76 | /// ```
77 | public var projectedValue: AnyPublisher<Value, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
78 | storage.publisher
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:57: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:96: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:394:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:397:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
397 | ) where Value == AnyView {
| `- error: 'AnyView' is only available in macOS 10.15 or newer
398 | self.name = Name(name)
399 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:394:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:428:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:431:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
431 | ) where Value == AnyView {
| `- error: 'AnyView' is only available in macOS 10.15 or newer
432 | self.name = Name(name)
433 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:428:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:343:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
343 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
344 | setterMessage: "Cannot assign new reference to a custom view spice."
345 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:349:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
:
347 | name: self.name,
348 | presentationStyle: .inline,
349 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
350 | )
351 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:366:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
366 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
367 | setterMessage: "Cannot assign new reference to a custom view spice."
368 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:372:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
:
370 | name: self.name,
371 | presentationStyle: .inline,
372 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | )
374 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:400:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
:
398 | self.name = Name(name)
399 | self.storage = AnyStorage(ThrowingStorage(
400 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | setterMessage: "Cannot assign new reference to a custom view spice."
402 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:406:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
:
404 | name: self.name,
405 | presentationStyle: .modal,
406 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | )
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:434:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
:
432 | self.name = Name(name)
433 | self.storage = AnyStorage(ThrowingStorage(
434 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
435 | setterMessage: "Cannot assign new reference to a custom view spice."
436 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:440:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
:
438 | name: self.name,
439 | presentationStyle: .push,
440 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
441 | )
442 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:46:20: error: 'dismiss' is only available in macOS 12.0 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
46 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
47 |
48 | /// Initializes a `SpiceEditor` with a ``SpiceStore``.
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:46:6: error: 'Environment' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
46 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
47 |
48 | /// Initializes a `SpiceEditor` with a ``SpiceStore``.
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:66:27: error: 'View' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
67 | NavigationView {
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:67:9: error: 'NavigationView' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| `- note: add @available attribute to enclosing property
67 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
69 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:73:10: error: 'environmentObject' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| `- note: add @available attribute to enclosing property
67 | NavigationView {
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
:
71 | }
72 | .configureSheetPresentation()
73 | .environmentObject(UserInteraction())
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 | }
[43/43] Compiling Spices SpiceEditorViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:77:32: error: 'AnyPublisher' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
75 | /// }
76 | /// ```
77 | public var projectedValue: AnyPublisher<Value, Never> {
| | `- error: 'AnyPublisher' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
78 | storage.publisher
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:57: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:340:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:96: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:363:36: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:394:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:397:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
397 | ) where Value == AnyView {
| `- error: 'AnyView' is only available in macOS 10.15 or newer
398 | self.name = Name(name)
399 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:394:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
395 | name: String? = nil,
396 | presentation: ModalPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:428:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:431:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
431 | ) where Value == AnyView {
| `- error: 'AnyView' is only available in macOS 10.15 or newer
432 | self.name = Name(name)
433 | self.storage = AnyStorage(ThrowingStorage(
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:428:28: error: 'View' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
| `- error: 'View' is only available in macOS 10.15 or newer
429 | name: String? = nil,
430 | presentation: PushPresentationStyle
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:343:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
343 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
344 | setterMessage: "Cannot assign new reference to a custom view spice."
345 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:349:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
338 | /// - Parameters:
339 | /// - wrappedValue: The custom view to embed.
340 | public init(wrappedValue: some View) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
341 | self.name = Name(nil)
342 | self.storage = AnyStorage(ThrowingStorage(
:
347 | name: self.name,
348 | presentationStyle: .inline,
349 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
350 | )
351 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:366:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
366 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
367 | setterMessage: "Cannot assign new reference to a custom view spice."
368 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:372:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
361 | /// - wrappedValue: The custom view to embed.
362 | /// - presentation: Presentation style of the custom view.
363 | public init(wrappedValue: some View, presentation: InlinePresentationStyle) where Value == AnyView {
| `- note: add @available attribute to enclosing initializer
364 | self.name = Name(nil)
365 | self.storage = AnyStorage(ThrowingStorage(
:
370 | name: self.name,
371 | presentationStyle: .inline,
372 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | )
374 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:400:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
:
398 | self.name = Name(name)
399 | self.storage = AnyStorage(ThrowingStorage(
400 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | setterMessage: "Cannot assign new reference to a custom view spice."
402 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:406:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
391 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
392 | /// - presentation: Presentation style of the custom view.
393 | public init(
| `- note: add @available attribute to enclosing initializer
394 | wrappedValue: some View,
395 | name: String? = nil,
:
404 | name: self.name,
405 | presentationStyle: .modal,
406 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | )
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:434:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
:
432 | self.name = Name(name)
433 | self.storage = AnyStorage(ThrowingStorage(
434 | default: AnyView(wrappedValue),
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
435 | setterMessage: "Cannot assign new reference to a custom view spice."
436 | ))
/Users/admin/builder/spi-builder-workspace/Sources/Spices/Spice.swift:440:22: error: 'AnyView' is only available in macOS 10.15 or newer
52 | /// }
53 | /// ```
54 | @propertyWrapper public struct Spice<Value> {
| `- note: add @available attribute to enclosing generic struct
55 | /// Type alias for a synchronous button handler.
56 | public typealias ButtonHandler = () throws -> Void
:
425 | /// - name: The display name of the spice store. Defaults to a formatted version of the property name.
426 | /// - presentation: Presentation style of the custom view.
427 | public init(
| `- note: add @available attribute to enclosing initializer
428 | wrappedValue: some View,
429 | name: String? = nil,
:
438 | name: self.name,
439 | presentationStyle: .push,
440 | content: AnyView(wrappedValue)
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
441 | )
442 | }
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:46:20: error: 'dismiss' is only available in macOS 12.0 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
46 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
47 |
48 | /// Initializes a `SpiceEditor` with a ``SpiceStore``.
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:46:6: error: 'Environment' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
46 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
47 |
48 | /// Initializes a `SpiceEditor` with a ``SpiceStore``.
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:66:27: error: 'View' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
67 | NavigationView {
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:67:9: error: 'NavigationView' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| `- note: add @available attribute to enclosing property
67 | NavigationView {
| |- error: 'NavigationView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
69 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Spices/SpiceEditor.swift:73:10: error: 'environmentObject' is only available in macOS 10.15 or newer
41 | /// }
42 | /// ```
43 | public struct SpiceEditor: View {
| `- note: add @available attribute to enclosing struct
44 | private let title: String
45 | private let spiceStore: any SpiceStore
:
64 |
65 | /// The content of the view.
66 | public var body: some View {
| `- note: add @available attribute to enclosing property
67 | NavigationView {
68 | MenuItemListView(items: spiceStore.menuItems, title: title) {
:
71 | }
72 | .configureSheetPresentation()
73 | .environmentObject(UserInteraction())
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 | }
BUILD FAILURE 6.2 macosSpm