Build Information
Failed to build ActionMenu, reference main (77540a
), with Swift 6.1 for macOS (SPM) on 15 Aug 2025 23:26:14 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
36 | }
37 |
38 | struct ToolbarProminentStyle: PrimitiveButtonStyle {
| `- note: add @available attribute to enclosing struct
39 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
40 | if #available(iOS 26, *) {
41 | Button(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:50:11: error: 'PrimitiveButtonStyle' is only available in macOS 10.15 or newer
48 |
49 | @available(iOS, introduced: 18, obsoleted: 26, message: "Remove this property in iOS 26")
50 | extension PrimitiveButtonStyle where Self == ToolbarProminentStyle {
| | `- error: 'PrimitiveButtonStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
51 | static var toolbarProminent: Self { .init() }
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:24:8: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
22 | struct ToolbarLabelStyle: LabelStyle {
23 | func makeBody(configuration: Configuration) -> some View {
24 | if #available(iOS 26, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
25 | Label(configuration)
26 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:25:7: error: conformance of 'LabelStyleConfiguration.Title' to 'View' is only available in macOS 11.0 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
25 | Label(configuration)
| |- error: conformance of 'LabelStyleConfiguration.Title' to 'View' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | } else {
27 | Label(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:25:7: error: conformance of 'LabelStyleConfiguration.Icon' to 'View' is only available in macOS 11.0 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
25 | Label(configuration)
| |- error: conformance of 'LabelStyleConfiguration.Icon' to 'View' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | } else {
27 | Label(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:25:7: error: 'Label' is only available in macOS 11.0 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
25 | Label(configuration)
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | } else {
27 | Label(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:25:7: error: 'init(_:)' is only available in macOS 11.0 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
25 | Label(configuration)
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | } else {
27 | Label(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:24:30: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | Label(configuration)
26 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:24:30: error: conformance of 'LabelStyleConfiguration.Title' to 'View' is only available in macOS 11.0 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
| |- error: conformance of 'LabelStyleConfiguration.Title' to 'View' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | Label(configuration)
26 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:24:30: error: conformance of 'LabelStyleConfiguration.Icon' to 'View' is only available in macOS 11.0 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
| |- error: conformance of 'LabelStyleConfiguration.Icon' to 'View' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | Label(configuration)
26 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:24:30: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | Label(configuration)
26 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:26:12: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
25 | Label(configuration)
26 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | Label(configuration)
28 | .labelStyle(.titleOnly)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:23:60: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
25 | Label(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:42:23: error: reference to member 'glassProminent' cannot be resolved without a contextual type
40 | if #available(iOS 26, *) {
41 | Button(configuration)
42 | .buttonStyle(.glassProminent)
| `- error: reference to member 'glassProminent' cannot be resolved without a contextual type
43 | } else {
44 | Button(configuration)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module ActionMenu
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:22:18: error: 'dismiss' is only available in macOS 12.0 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
23 |
24 | let title: String
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:22:4: error: 'Environment' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
23 |
24 | let title: String
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:25:4: error: 'Binding' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
24 | let title: String
25 | @Binding var contentSize: CGSize
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 | let content: Content
27 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:30:18: error: 'Binding' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
:
26 | let content: Content
27 |
28 | init(
| `- note: add @available attribute to enclosing initializer
29 | title: String = "Options",
30 | contentSize: Binding<CGSize>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
31 | @ViewBuilder content: () -> Content
32 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:31:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
:
26 | let content: Content
27 |
28 | init(
| `- note: add @available attribute to enclosing initializer
29 | title: String = "Options",
30 | contentSize: Binding<CGSize>,
31 | @ViewBuilder content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
32 | ) {
33 | self.title = title
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:38:18: error: 'View' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
:
36 | }
37 |
38 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
39 | NavigationStack {
40 | List {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:21:28: error: 'View' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:72:18: error: 'dismiss' is only available in macOS 12.0 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
70 | @State private var menuContentSize: CGSize = .zero
71 |
72 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
73 |
74 | init(title: String, isPresented: Binding<Bool>, @ViewBuilder menuContent: () -> MenuContent) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:67:4: error: 'Binding' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
68 | let menuContent: MenuContent
69 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:70:4: error: 'State' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
68 | let menuContent: MenuContent
69 |
70 | @State private var menuContentSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
71 |
72 | @Environment(\.dismiss) private var dismiss
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:72:4: error: 'Environment' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
70 | @State private var menuContentSize: CGSize = .zero
71 |
72 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
73 |
74 | init(title: String, isPresented: Binding<Bool>, @ViewBuilder menuContent: () -> MenuContent) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:74:36: error: 'Binding' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
72 | @Environment(\.dismiss) private var dismiss
73 |
74 | init(title: String, isPresented: Binding<Bool>, @ViewBuilder menuContent: () -> MenuContent) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
75 | self.title = title
76 | self._isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:74:52: error: 'ViewBuilder' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
72 | @Environment(\.dismiss) private var dismiss
73 |
74 | init(title: String, isPresented: Binding<Bool>, @ViewBuilder menuContent: () -> MenuContent) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
75 | self.title = title
76 | self._isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:80:39: error: 'View' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
78 | }
79 |
80 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
81 | content
82 | .sheet(isPresented: $isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:65:40: error: 'View' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:139:48: error: 'View' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
140 | ) -> some View {
141 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:138:33: error: 'Binding' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
139 | @ViewBuilder content: @escaping () -> some View
140 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:139:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
140 | ) -> some View {
141 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:139:48: error: 'View' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
140 | ) -> some View {
141 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:140:13: error: 'View' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
140 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
141 | modifier(
142 | ActionMenuModifier(
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:95:11: error: 'View' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:156:4: error: 'Previewable()' is only available in macOS 14.0 or newer
154 | "Strawberry",
155 | ]
156 | @Previewable @State var isMoreActionTapped = false
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
157 | @Previewable @State var selectedFruit: String? = nil
158 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:157:4: error: 'Previewable()' is only available in macOS 14.0 or newer
155 | ]
156 | @Previewable @State var isMoreActionTapped = false
157 | @Previewable @State var selectedFruit: String? = nil
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:152:4: error: 'Previewable()' is only available in macOS 14.0 or newer
150 |
151 | #Preview {
152 | @Previewable @State var fruits = [
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
153 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
154 | "Strawberry",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:152:17: error: 'State' is only available in macOS 10.15 or newer
150 |
151 | #Preview {
152 | @Previewable @State var fruits = [
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
154 | "Strawberry",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:156:17: error: 'State' is only available in macOS 10.15 or newer
154 | "Strawberry",
155 | ]
156 | @Previewable @State var isMoreActionTapped = false
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | @Previewable @State var selectedFruit: String? = nil
158 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:157:17: error: 'State' is only available in macOS 10.15 or newer
155 | ]
156 | @Previewable @State var isMoreActionTapped = false
157 | @Previewable @State var selectedFruit: String? = nil
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:151:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
149 | }
150 |
151 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
152 | @Previewable @State var fruits = [
153 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:159:3: error: 'Button' is only available in macOS 10.15 or newer
157 | @Previewable @State var selectedFruit: String? = nil
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | Text("Show Action Menu")
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:159:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
157 | @Previewable @State var selectedFruit: String? = nil
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | Text("Show Action Menu")
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:159:20: error: cannot pass as inout because setter for 'isMoreActionTapped' is only available in macOS 10.15 or newer
157 | @Previewable @State var selectedFruit: String? = nil
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
| |- error: cannot pass as inout because setter for 'isMoreActionTapped' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | Text("Show Action Menu")
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:160:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
160 | Text("Show Action Menu")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:160:5: error: 'Text' is only available in macOS 10.15 or newer
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
160 | Text("Show Action Menu")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:159:51: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
157 | @Previewable @State var selectedFruit: String? = nil
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | Text("Show Action Menu")
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:4: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:5: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:5: error: 'Section' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:5: error: 'init(_:content:)' is only available in macOS 12.0 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: 'init(_:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:13: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:164:7: error: 'Button' is only available in macOS 10.15 or newer
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 | if let selectedFruit = selectedFruit,
166 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:164:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
165 | if let selectedFruit = selectedFruit,
166 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:164:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 | if let selectedFruit = selectedFruit,
166 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:168:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
166 | let index = fruits.firstIndex(of: selectedFruit)
167 | {
168 | fruits[index] = selectedFruit.uppercased()
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | }
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:171:8: error: 'labelStyle' is only available in macOS 11.0 or newer
169 | }
170 | }
171 | .labelStyle(.menu)
| |- error: 'labelStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:7: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:7: error: 'Button' is only available in macOS 10.15 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:177:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
175 | let index = fruits.firstIndex(of: selectedFruit)
176 | {
177 | fruits[index] = selectedFruit.lowercased()
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
178 | }
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:5: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | 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
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:5: error: 'Section' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:5: error: 'init(content:)' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:7: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:7: error: 'Button' is only available in macOS 10.15 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:7: error: 'init(_:systemImage:role:action:)' is only available in macOS 12.0 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'init(_:systemImage:role:action:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:187:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
185 | let index = fruits.firstIndex(of: selectedFruit)
186 | {
187 | fruits.remove(at: index)
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | }
189 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:200:4: error: 'Previewable()' is only available in macOS 14.0 or newer
198 | "Strawberry",
199 | ]
200 | @Previewable @State var selectedFruit: String? = nil
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:196:4: error: 'Previewable()' is only available in macOS 14.0 or newer
194 |
195 | #Preview {
196 | @Previewable @State var fruits = [
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
197 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
198 | "Strawberry",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:196:17: error: 'State' is only available in macOS 10.15 or newer
194 |
195 | #Preview {
196 | @Previewable @State var fruits = [
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
198 | "Strawberry",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:200:17: error: 'State' is only available in macOS 10.15 or newer
198 | "Strawberry",
199 | ]
200 | @Previewable @State var selectedFruit: String? = nil
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:195:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
193 | }
194 |
195 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
196 | @Previewable @State var fruits = [
197 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:3: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:3: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:5: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:5: error: 'Section' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:5: error: 'init(_:content:)' is only available in macOS 12.0 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: 'init(_:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:13: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:204:7: error: 'Button' is only available in macOS 10.15 or newer
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | if let selectedFruit = selectedFruit,
206 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:204:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
205 | if let selectedFruit = selectedFruit,
206 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:204:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | if let selectedFruit = selectedFruit,
206 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:208:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
206 | let index = fruits.firstIndex(of: selectedFruit)
207 | {
208 | fruits[index] = selectedFruit.uppercased()
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | }
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:211:8: error: 'labelStyle' is only available in macOS 11.0 or newer
209 | }
210 | }
211 | .labelStyle(.menu)
| |- error: 'labelStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:7: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:7: error: 'Button' is only available in macOS 10.15 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:217:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
215 | let index = fruits.firstIndex(of: selectedFruit)
216 | {
217 | fruits[index] = selectedFruit.lowercased()
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:5: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | 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
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:5: error: 'Section' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:5: error: 'init(content:)' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:7: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:7: error: 'Button' is only available in macOS 10.15 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:7: error: 'init(_:systemImage:role:action:)' is only available in macOS 12.0 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'init(_:systemImage:role:action:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:227:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
225 | let index = fruits.firstIndex(of: selectedFruit)
226 | {
227 | fruits.remove(at: index)
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:79:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 | }
78 |
79 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
80 | List {
81 | Section {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:3: error: 'List' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: 'List' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:3: error: 'init(content:)' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:5: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | 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
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:5: error: 'Section' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:5: error: 'init(content:)' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:82:7: error: 'Button' is only available in macOS 10.15 or newer
80 | List {
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:82:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
80 | List {
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
83 | }
84 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:82:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
80 | List {
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:84:8: error: 'buttonStyle' is only available in macOS 10.15 or newer
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
84 | .buttonStyle(.action)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | }
86 | Section {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:86:5: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
84 | .buttonStyle(.action)
85 | }
86 | 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
87 | Button("Delete item", role: .destructive) {
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:86:5: error: 'Section' is only available in macOS 10.15 or newer
84 | .buttonStyle(.action)
85 | }
86 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | Button("Delete item", role: .destructive) {
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:86:5: error: 'init(content:)' is only available in macOS 10.15 or newer
84 | .buttonStyle(.action)
85 | }
86 | Section {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | Button("Delete item", role: .destructive) {
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:86:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
84 | .buttonStyle(.action)
85 | }
86 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | Button("Delete item", role: .destructive) {
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:87:7: error: 'Button' is only available in macOS 10.15 or newer
85 | }
86 | Section {
87 | Button("Delete item", role: .destructive) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:87:7: error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
85 | }
86 | Section {
87 | Button("Delete item", role: .destructive) {
| |- error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
88 | }
89 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:87:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
85 | }
86 | Section {
87 | Button("Delete item", role: .destructive) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:89:8: error: 'buttonStyle' is only available in macOS 10.15 or newer
87 | Button("Delete item", role: .destructive) {
88 | }
89 | .buttonStyle(.action)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:92:4: error: 'labelStyle' is only available in macOS 11.0 or newer
90 | }
91 | }
92 | .labelStyle(.menu)
| |- error: 'labelStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
93 | }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:23:55: error: 'View' is only available in macOS 10.15 or newer
20 | import SwiftUI
21 |
22 | struct ToolbarLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
23 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | if #available(iOS 26, *) {
25 | Label(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:34:11: error: 'LabelStyle' is only available in macOS 11.0 or newer
32 |
33 | @available(iOS, introduced: 18, obsoleted: 26, message: "Remove this property in iOS 26")
34 | extension LabelStyle where Self == ToolbarLabelStyle {
| | `- error: 'LabelStyle' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
35 | static var toolbar: Self { .init() }
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:39:55: error: 'View' is only available in macOS 10.15 or newer
36 | }
37 |
38 | struct ToolbarProminentStyle: PrimitiveButtonStyle {
| `- note: add @available attribute to enclosing struct
39 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
40 | if #available(iOS 26, *) {
41 | Button(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Backport.swift:50:11: error: 'PrimitiveButtonStyle' is only available in macOS 10.15 or newer
48 |
49 | @available(iOS, introduced: 18, obsoleted: 26, message: "Remove this property in iOS 26")
50 | extension PrimitiveButtonStyle where Self == ToolbarProminentStyle {
| | `- error: 'PrimitiveButtonStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
51 | static var toolbarProminent: Self { .init() }
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:21:11: error: 'PrimitiveButtonStyle' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | extension PrimitiveButtonStyle where Self == ActionMenuButtonStyle {
| | `- error: 'PrimitiveButtonStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
22 | /// A button style that dismisses the current view when the button is tapped.
23 | ///
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:33:18: error: 'dismiss' is only available in macOS 12.0 or newer
30 | }
31 |
32 | struct ActionMenuButtonStyle: PrimitiveButtonStyle {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
34 | @State private var shouldExecuteAction = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:33:4: error: 'Environment' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ActionMenuButtonStyle: PrimitiveButtonStyle {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
34 | @State private var shouldExecuteAction = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:34:4: error: 'State' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ActionMenuButtonStyle: PrimitiveButtonStyle {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.dismiss) private var dismiss
34 | @State private var shouldExecuteAction = false
| `- error: 'State' is only available in macOS 10.15 or newer
35 |
36 | func makeBody(configuration: Configuration) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:36:55: error: 'View' is only available in macOS 10.15 or newer
30 | }
31 |
32 | struct ActionMenuButtonStyle: PrimitiveButtonStyle {
| `- note: add @available attribute to enclosing struct
33 | @Environment(\.dismiss) private var dismiss
34 | @State private var shouldExecuteAction = false
35 |
36 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
37 | Button {
38 | shouldExecuteAction = true
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:56:11: error: 'LabelStyle' is only available in macOS 11.0 or newer
54 | }
55 |
56 | extension LabelStyle where Self == MenuLabelStyle {
| | `- error: 'LabelStyle' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
57 | /// A label style that displays the title on the left and the icon on the right.
58 | ///
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:65:4: error: 'ScaledMetric' is only available in macOS 11.0 or newer
62 | }
63 |
64 | struct MenuLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
65 | @ScaledMetric(relativeTo: .body) private var iconSize: CGFloat = 22.0
| `- error: 'ScaledMetric' is only available in macOS 11.0 or newer
66 |
67 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:68:55: error: 'View' is only available in macOS 10.15 or newer
62 | }
63 |
64 | struct MenuLabelStyle: LabelStyle {
| `- note: add @available attribute to enclosing struct
65 | @ScaledMetric(relativeTo: .body) private var iconSize: CGFloat = 22.0
66 |
67 |
68 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
69 | HStack(spacing: 22) {
70 | configuration.title
[5/5] Compiling ActionMenu ActionMenu.swift
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:22:18: error: 'dismiss' is only available in macOS 12.0 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
23 |
24 | let title: String
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:22:4: error: 'Environment' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
23 |
24 | let title: String
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:25:4: error: 'Binding' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
24 | let title: String
25 | @Binding var contentSize: CGSize
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 | let content: Content
27 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:30:18: error: 'Binding' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
:
26 | let content: Content
27 |
28 | init(
| `- note: add @available attribute to enclosing initializer
29 | title: String = "Options",
30 | contentSize: Binding<CGSize>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
31 | @ViewBuilder content: () -> Content
32 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:31:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
:
26 | let content: Content
27 |
28 | init(
| `- note: add @available attribute to enclosing initializer
29 | title: String = "Options",
30 | contentSize: Binding<CGSize>,
31 | @ViewBuilder content: () -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
32 | ) {
33 | self.title = title
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:38:18: error: 'View' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
:
36 | }
37 |
38 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
39 | NavigationStack {
40 | List {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:21:28: error: 'View' is only available in macOS 10.15 or newer
19 | import SwiftUI
20 |
21 | struct ActionMenu<Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
22 | @Environment(\.dismiss) private var dismiss
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:72:18: error: 'dismiss' is only available in macOS 12.0 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
70 | @State private var menuContentSize: CGSize = .zero
71 |
72 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
73 |
74 | init(title: String, isPresented: Binding<Bool>, @ViewBuilder menuContent: () -> MenuContent) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:67:4: error: 'Binding' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
68 | let menuContent: MenuContent
69 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:70:4: error: 'State' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
68 | let menuContent: MenuContent
69 |
70 | @State private var menuContentSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
71 |
72 | @Environment(\.dismiss) private var dismiss
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:72:4: error: 'Environment' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
70 | @State private var menuContentSize: CGSize = .zero
71 |
72 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
73 |
74 | init(title: String, isPresented: Binding<Bool>, @ViewBuilder menuContent: () -> MenuContent) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:74:36: error: 'Binding' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
72 | @Environment(\.dismiss) private var dismiss
73 |
74 | init(title: String, isPresented: Binding<Bool>, @ViewBuilder menuContent: () -> MenuContent) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
75 | self.title = title
76 | self._isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:74:52: error: 'ViewBuilder' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
72 | @Environment(\.dismiss) private var dismiss
73 |
74 | init(title: String, isPresented: Binding<Bool>, @ViewBuilder menuContent: () -> MenuContent) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
75 | self.title = title
76 | self._isPresented = isPresented
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:80:39: error: 'View' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
78 | }
79 |
80 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
81 | content
82 | .sheet(isPresented: $isPresented) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:65:40: error: 'View' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:139:48: error: 'View' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
140 | ) -> some View {
141 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:138:33: error: 'Binding' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
139 | @ViewBuilder content: @escaping () -> some View
140 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:139:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
140 | ) -> some View {
141 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:139:48: error: 'View' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
140 | ) -> some View {
141 | modifier(
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:140:13: error: 'View' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
140 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
141 | modifier(
142 | ActionMenuModifier(
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:95:11: error: 'View' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:156:4: error: 'Previewable()' is only available in macOS 14.0 or newer
154 | "Strawberry",
155 | ]
156 | @Previewable @State var isMoreActionTapped = false
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
157 | @Previewable @State var selectedFruit: String? = nil
158 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:157:4: error: 'Previewable()' is only available in macOS 14.0 or newer
155 | ]
156 | @Previewable @State var isMoreActionTapped = false
157 | @Previewable @State var selectedFruit: String? = nil
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:152:4: error: 'Previewable()' is only available in macOS 14.0 or newer
150 |
151 | #Preview {
152 | @Previewable @State var fruits = [
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
153 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
154 | "Strawberry",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:152:17: error: 'State' is only available in macOS 10.15 or newer
150 |
151 | #Preview {
152 | @Previewable @State var fruits = [
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
154 | "Strawberry",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:156:17: error: 'State' is only available in macOS 10.15 or newer
154 | "Strawberry",
155 | ]
156 | @Previewable @State var isMoreActionTapped = false
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | @Previewable @State var selectedFruit: String? = nil
158 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:157:17: error: 'State' is only available in macOS 10.15 or newer
155 | ]
156 | @Previewable @State var isMoreActionTapped = false
157 | @Previewable @State var selectedFruit: String? = nil
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:151:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
149 | }
150 |
151 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
152 | @Previewable @State var fruits = [
153 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:159:3: error: 'Button' is only available in macOS 10.15 or newer
157 | @Previewable @State var selectedFruit: String? = nil
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | Text("Show Action Menu")
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:159:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
157 | @Previewable @State var selectedFruit: String? = nil
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | Text("Show Action Menu")
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:159:20: error: cannot pass as inout because setter for 'isMoreActionTapped' is only available in macOS 10.15 or newer
157 | @Previewable @State var selectedFruit: String? = nil
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
| |- error: cannot pass as inout because setter for 'isMoreActionTapped' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | Text("Show Action Menu")
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:160:5: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
160 | Text("Show Action Menu")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:160:5: error: 'Text' is only available in macOS 10.15 or newer
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
160 | Text("Show Action Menu")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:159:51: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
157 | @Previewable @State var selectedFruit: String? = nil
158 |
159 | Button(action: { isMoreActionTapped.toggle() }) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | Text("Show Action Menu")
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:4: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:5: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:5: error: 'Section' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:5: error: 'init(_:content:)' is only available in macOS 12.0 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: 'init(_:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:13: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:164:7: error: 'Button' is only available in macOS 10.15 or newer
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 | if let selectedFruit = selectedFruit,
166 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:164:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
165 | if let selectedFruit = selectedFruit,
166 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:164:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 | if let selectedFruit = selectedFruit,
166 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:168:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
166 | let index = fruits.firstIndex(of: selectedFruit)
167 | {
168 | fruits[index] = selectedFruit.uppercased()
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | }
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:171:8: error: 'labelStyle' is only available in macOS 11.0 or newer
169 | }
170 | }
171 | .labelStyle(.menu)
| |- error: 'labelStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:7: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:7: error: 'Button' is only available in macOS 10.15 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:173:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
171 | .labelStyle(.menu)
172 |
173 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | if let selectedFruit = selectedFruit,
175 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:177:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
175 | let index = fruits.firstIndex(of: selectedFruit)
176 | {
177 | fruits[index] = selectedFruit.lowercased()
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
178 | }
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:163:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
163 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | Button("Uppercase", systemImage: "characters.uppercase") {
165 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:5: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | 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
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:5: error: 'Section' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:5: error: 'init(content:)' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:7: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:7: error: 'Button' is only available in macOS 10.15 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:7: error: 'init(_:systemImage:role:action:)' is only available in macOS 12.0 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'init(_:systemImage:role:action:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:183:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
181 |
182 | Section {
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
184 | if let selectedFruit = selectedFruit,
185 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:187:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
185 | let index = fruits.firstIndex(of: selectedFruit)
186 | {
187 | fruits.remove(at: index)
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | }
189 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:182:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | Button("Delete Item", systemImage: "trash", role: .destructive) {
184 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:162:67: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
160 | Text("Show Action Menu")
161 | }
162 | .actionMenu(title: "Actions", isPresented: $isMoreActionTapped) {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | Section("Text Operations") {
164 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:200:4: error: 'Previewable()' is only available in macOS 14.0 or newer
198 | "Strawberry",
199 | ]
200 | @Previewable @State var selectedFruit: String? = nil
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:196:4: error: 'Previewable()' is only available in macOS 14.0 or newer
194 |
195 | #Preview {
196 | @Previewable @State var fruits = [
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
197 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
198 | "Strawberry",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:196:17: error: 'State' is only available in macOS 10.15 or newer
194 |
195 | #Preview {
196 | @Previewable @State var fruits = [
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
198 | "Strawberry",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:200:17: error: 'State' is only available in macOS 10.15 or newer
198 | "Strawberry",
199 | ]
200 | @Previewable @State var selectedFruit: String? = nil
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:195:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
193 | }
194 |
195 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
196 | @Previewable @State var fruits = [
197 | "Apple", "Banana", "Orange", "Mango", "Pear", "Grape", "Pineapple",
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:3: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:3: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:3: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:5: error: 'buildExpression' is unavailable: this expression does not conform to 'View'
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| `- error: 'buildExpression' is unavailable: this expression does not conform to 'View'
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
SwiftUICore.ViewBuilder.buildExpression:3:22: note: 'buildExpression' has been explicitly marked unavailable here
1 | struct ViewBuilder {
2 | @available(*, unavailable, message: "this expression does not conform to 'View'")
3 | public static func buildExpression(_ invalid: Any) -> some View
| `- note: 'buildExpression' has been explicitly marked unavailable here
4 | }
5 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:5: error: 'Section' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:5: error: 'init(_:content:)' is only available in macOS 12.0 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: 'init(_:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:13: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:204:7: error: 'Button' is only available in macOS 10.15 or newer
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | if let selectedFruit = selectedFruit,
206 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:204:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
205 | if let selectedFruit = selectedFruit,
206 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:204:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | if let selectedFruit = selectedFruit,
206 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:208:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
206 | let index = fruits.firstIndex(of: selectedFruit)
207 | {
208 | fruits[index] = selectedFruit.uppercased()
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
209 | }
210 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:211:8: error: 'labelStyle' is only available in macOS 11.0 or newer
209 | }
210 | }
211 | .labelStyle(.menu)
| |- error: 'labelStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:7: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:7: error: 'Button' is only available in macOS 10.15 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:213:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
211 | .labelStyle(.menu)
212 |
213 | Button("Lowercase", systemImage: "characters.lowercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | if let selectedFruit = selectedFruit,
215 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:217:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
215 | let index = fruits.firstIndex(of: selectedFruit)
216 | {
217 | fruits[index] = selectedFruit.lowercased()
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | }
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:203:32: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
203 | Section("Text Operations") {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | Button("Uppercase", systemImage: "characters.uppercase") {
205 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:5: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | 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
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:5: error: 'Section' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:5: error: 'init(content:)' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:7: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:7: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:7: error: 'Button' is only available in macOS 10.15 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:7: error: 'init(_:systemImage:role:action:)' is only available in macOS 12.0 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'init(_:systemImage:role:action:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:223:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
221 |
222 | Section {
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
224 | if let selectedFruit = selectedFruit,
225 | let index = fruits.firstIndex(of: selectedFruit)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:227:11: error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
225 | let index = fruits.firstIndex(of: selectedFruit)
226 | {
227 | fruits.remove(at: index)
| |- error: cannot pass as inout because setter for 'fruits' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
228 | }
229 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:222:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
220 | }
221 |
222 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | Button("Delete Item", systemImage: "trash", role: .destructive) {
224 | if let selectedFruit = selectedFruit,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:202:63: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
200 | @Previewable @State var selectedFruit: String? = nil
201 |
202 | ActionMenu(title: "Actions", contentSize: .constant(.zero)) {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
203 | Section("Text Operations") {
204 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:79:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
77 | }
78 |
79 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
80 | List {
81 | Section {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:3: error: 'List' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: 'List' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:3: error: 'init(content:)' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:5: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | 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
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:5: error: 'Section' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:5: error: 'init(content:)' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:81:13: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
79 | #Preview {
80 | List {
81 | Section {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:82:7: error: 'Button' is only available in macOS 10.15 or newer
80 | List {
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:82:7: error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
80 | List {
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'init(_:systemImage:action:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
83 | }
84 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:82:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
80 | List {
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | }
84 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:84:8: error: 'buttonStyle' is only available in macOS 10.15 or newer
82 | Button("Uppercase", systemImage: "characters.uppercase") {
83 | }
84 | .buttonStyle(.action)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | }
86 | Section {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:86:5: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
84 | .buttonStyle(.action)
85 | }
86 | 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
87 | Button("Delete item", role: .destructive) {
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:86:5: error: 'Section' is only available in macOS 10.15 or newer
84 | .buttonStyle(.action)
85 | }
86 | Section {
| |- error: 'Section' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | Button("Delete item", role: .destructive) {
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:86:5: error: 'init(content:)' is only available in macOS 10.15 or newer
84 | .buttonStyle(.action)
85 | }
86 | Section {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | Button("Delete item", role: .destructive) {
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:86:13: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
84 | .buttonStyle(.action)
85 | }
86 | Section {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | Button("Delete item", role: .destructive) {
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:87:7: error: 'Button' is only available in macOS 10.15 or newer
85 | }
86 | Section {
87 | Button("Delete item", role: .destructive) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:87:7: error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
85 | }
86 | Section {
87 | Button("Delete item", role: .destructive) {
| |- error: 'init(_:role:action:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
88 | }
89 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:87:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
85 | }
86 | Section {
87 | Button("Delete item", role: .destructive) {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | }
89 | .buttonStyle(.action)
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:89:8: error: 'buttonStyle' is only available in macOS 10.15 or newer
87 | Button("Delete item", role: .destructive) {
88 | }
89 | .buttonStyle(.action)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:80:8: error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
78 |
79 | #Preview {
80 | List {
| |- error: conformance of 'Section<Parent, Content, Footer>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Section {
82 | Button("Uppercase", systemImage: "characters.uppercase") {
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/Styling.swift:92:4: error: 'labelStyle' is only available in macOS 11.0 or newer
90 | }
91 | }
92 | .labelStyle(.menu)
| |- error: 'labelStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
93 | }
94 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:52:8: error: ambiguous use of 'toolbar(content:)'
50 | .navigationTitle(title)
51 | .navigationBarTitleDisplayMode(.inline)
52 | .toolbar {
| `- error: ambiguous use of 'toolbar(content:)'
53 | ToolbarItem(placement: .topBarTrailing) {
54 | Button("Done", systemImage: "checkmark") {
SwiftUI.View.toolbar:2:25: note: found this candidate in module 'SwiftUI'
1 | protocol View {
2 | nonisolated public func toolbar<Content>(@ViewBuilder content: () -> Content) -> some View where Content : View
| `- note: found this candidate in module 'SwiftUI'
3 | }
4 |
SwiftUI.View.toolbar:2:25: note: found this candidate in module 'SwiftUI'
1 | protocol View {
2 | nonisolated public func toolbar<Content>(@ToolbarContentBuilder content: () -> Content) -> some View where Content : ToolbarContent
| `- note: found this candidate in module 'SwiftUI'
3 | }
4 |
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:82:8: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
78 | }
79 |
80 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
81 | content
82 | .sheet(isPresented: $isPresented) {
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | ActionMenu(title: title, contentSize: $menuContentSize) {
84 | menuContent
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:86:10: error: 'presentationDetents' is only available in macOS 13.0 or newer
63 | }
64 |
65 | struct ActionMenuModifier<MenuContent: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
66 | let title: String
67 | @Binding var isPresented: Bool
:
78 | }
79 |
80 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
81 | content
82 | .sheet(isPresented: $isPresented) {
:
84 | menuContent
85 | }
86 | .presentationDetents(
| |- error: 'presentationDetents' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
87 | menuContentSize == .zero
88 | ? [.medium, .large]
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:141:5: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
140 | ) -> some View {
141 | modifier(
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | ActionMenuModifier(
143 | title: title,
/Users/admin/builder/spi-builder-workspace/Sources/ActionMenu/ActionMenu.swift:141:5: error: 'modifier' is only available in macOS 10.15 or newer
93 | }
94 |
95 | extension View {
| `- note: add @available attribute to enclosing extension
96 | /// Presents an action menu sheet when a binding to a Boolean value that you provide is true.
97 | ///
:
135 | /// - isPresented: A binding to a Boolean value that determines whether to present the action menu.
136 | /// - content: A view builder that creates the content of the action menu. This is typically a list of `Button`s.
137 | public func actionMenu(
| `- note: add @available attribute to enclosing instance method
138 | title: String, isPresented: Binding<Bool>,
139 | @ViewBuilder content: @escaping () -> some View
140 | ) -> some View {
141 | modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | ActionMenuModifier(
143 | title: title,
BUILD FAILURE 6.1 macosSpm