Build Information
Failed to build BarKit, reference 1.1.1 (620b89), with Swift 6.3 for macOS (SPM) on 28 Jun 2026 05:57:43 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
546 | BarView(
547 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:556:46: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
554 | itemStyles: [.regular: .init()],
555 | itemSpacing: 0,
556 | itemStateAnimation: .custom(.easeInOut(duration: 0.2)),
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
557 | barAccessibilityLabel: "Bar"
558 | ),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:561:10: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
559 | badges: badges
560 | )
561 | .fixedSize(horizontal: false, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
562 | .padding(.leading, 16)
563 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:562:10: error: 'padding' is only available in macOS 10.15 or newer
560 | )
561 | .fixedSize(horizontal: false, vertical: true)
562 | .padding(.leading, 16)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
563 |
564 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:127:6: error: 'Previewable()' is only available in macOS 14.0 or newer
125 | icon: .system("house.fill")
126 | )
127 | @Previewable @State var badges: [AnyHashable: BadgeValue] = [
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
128 | "Home": .count(3),
129 | "Search": .dot,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:123:6: error: 'Previewable()' is only available in macOS 14.0 or newer
121 | @available(iOS 17.0, *)
122 | #Preview("FloatingTabBarView") {
123 | @Previewable @State var selected: PreviewBarItem = .init(
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
124 | title: "Home",
125 | icon: .system("house.fill")
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:123:19: error: 'State' is only available in macOS 10.15 or newer
121 | @available(iOS 17.0, *)
122 | #Preview("FloatingTabBarView") {
123 | @Previewable @State var selected: PreviewBarItem = .init(
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | title: "Home",
125 | icon: .system("house.fill")
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:127:19: error: 'State' is only available in macOS 10.15 or newer
125 | icon: .system("house.fill")
126 | )
127 | @Previewable @State var badges: [AnyHashable: BadgeValue] = [
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 | "Home": .count(3),
129 | "Search": .dot,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:122:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
120 |
121 | @available(iOS 17.0, *)
122 | #Preview("FloatingTabBarView") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
123 | @Previewable @State var selected: PreviewBarItem = .init(
124 | title: "Home",
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:139:5: error: 'ZStack' is only available in macOS 10.15 or newer
137 | ]
138 |
139 | ZStack(alignment: .bottom) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | Color.indigo.ignoresSafeArea()
141 | FloatingTabBarView(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:139:24: error: 'bottom' is only available in macOS 10.15 or newer
137 | ]
138 |
139 | ZStack(alignment: .bottom) {
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | Color.indigo.ignoresSafeArea()
141 | FloatingTabBarView(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:140:9: error: 'Color' is only available in macOS 10.15 or newer
138 |
139 | ZStack(alignment: .bottom) {
140 | Color.indigo.ignoresSafeArea()
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | FloatingTabBarView(
142 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:140:15: error: 'indigo' is only available in macOS 12.0 or newer
138 |
139 | ZStack(alignment: .bottom) {
140 | Color.indigo.ignoresSafeArea()
| |- error: 'indigo' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
141 | FloatingTabBarView(
142 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:140:22: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
138 |
139 | ZStack(alignment: .bottom) {
140 | Color.indigo.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
141 | FloatingTabBarView(
142 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:148:6: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
146 | )
147 | }
148 | .ignoresSafeArea(.all, edges: .bottom)
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
149 | }
150 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:143:6: error: 'Previewable()' is only available in macOS 14.0 or newer
141 | icon: .system("house.fill")
142 | )
143 | @Previewable @State var badges: [AnyHashable: BadgeValue] = [
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
144 | "Home": .count(3),
145 | "Search": .dot,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:139:6: error: 'Previewable()' is only available in macOS 14.0 or newer
137 | @available(iOS 17.0, *)
138 | #Preview("PinnedTabBarView - Regular") {
139 | @Previewable @State var selected: PreviewBarItem = .init(
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
140 | title: "Home",
141 | icon: .system("house.fill")
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:139:19: error: 'State' is only available in macOS 10.15 or newer
137 | @available(iOS 17.0, *)
138 | #Preview("PinnedTabBarView - Regular") {
139 | @Previewable @State var selected: PreviewBarItem = .init(
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | title: "Home",
141 | icon: .system("house.fill")
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:143:19: error: 'State' is only available in macOS 10.15 or newer
141 | icon: .system("house.fill")
142 | )
143 | @Previewable @State var badges: [AnyHashable: BadgeValue] = [
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | "Home": .count(3),
145 | "Search": .dot,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:138:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
136 |
137 | @available(iOS 17.0, *)
138 | #Preview("PinnedTabBarView - Regular") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
139 | @Previewable @State var selected: PreviewBarItem = .init(
140 | title: "Home",
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:155:5: error: 'VStack' is only available in macOS 10.15 or newer
153 | ]
154 |
155 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | Color.white.ignoresSafeArea()
157 | PinnedTabBarView(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:156:9: error: 'Color' is only available in macOS 10.15 or newer
154 |
155 | VStack(spacing: 0) {
156 | Color.white.ignoresSafeArea()
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | PinnedTabBarView(
158 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:156:15: error: 'white' is only available in macOS 10.15 or newer
154 |
155 | VStack(spacing: 0) {
156 | Color.white.ignoresSafeArea()
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | PinnedTabBarView(
158 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:156:21: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
154 |
155 | VStack(spacing: 0) {
156 | Color.white.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
157 | PinnedTabBarView(
158 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:163:10: error: 'environment' is only available in macOS 10.15 or newer
161 | badges: badges
162 | )
163 | .environment(\.bkDebugLayoutEnabled, false)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | }
165 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:169:6: error: 'Previewable()' is only available in macOS 14.0 or newer
167 | @available(iOS 17.0, *)
168 | #Preview("PinnedTabBarView - Prominent") {
169 | @Previewable @State var selected: PreviewBarItem = .init(
| |- error: 'Previewable()' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
170 | title: "Camera",
171 | icon: .system("camera.fill"),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:169:19: error: 'State' is only available in macOS 10.15 or newer
167 | @available(iOS 17.0, *)
168 | #Preview("PinnedTabBarView - Prominent") {
169 | @Previewable @State var selected: PreviewBarItem = .init(
| |- error: 'State' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | title: "Camera",
171 | icon: .system("camera.fill"),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:168:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
166 |
167 | @available(iOS 17.0, *)
168 | #Preview("PinnedTabBarView - Prominent") {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
169 | @Previewable @State var selected: PreviewBarItem = .init(
170 | title: "Camera",
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:181:5: error: 'VStack' is only available in macOS 10.15 or newer
179 | ]
180 |
181 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
182 | Color.white.ignoresSafeArea()
183 | PinnedTabBarView(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:182:9: error: 'Color' is only available in macOS 10.15 or newer
180 |
181 | VStack(spacing: 0) {
182 | Color.white.ignoresSafeArea()
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | PinnedTabBarView(
184 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:182:15: error: 'white' is only available in macOS 10.15 or newer
180 |
181 | VStack(spacing: 0) {
182 | Color.white.ignoresSafeArea()
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
183 | PinnedTabBarView(
184 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:182:21: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
180 |
181 | VStack(spacing: 0) {
182 | Color.white.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
183 | PinnedTabBarView(
184 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:187:58: error: 'blue' is only available in macOS 10.15 or newer
185 | selected: $selected,
186 | configuration: .init(
187 | background: .material(.ultraThin, tint: .blue.opacity(0.3)),
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | itemStyles: [
189 | .regular: .init(iconSideLength: 24),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:187:63: error: 'opacity' is only available in macOS 10.15 or newer
185 | selected: $selected,
186 | configuration: .init(
187 | background: .material(.ultraThin, tint: .blue.opacity(0.3)),
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
188 | itemStyles: [
189 | .regular: .init(iconSideLength: 24),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:193:46: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
191 | ],
192 | itemSpacing: 0,
193 | itemStateAnimation: .custom(.easeInOut(duration: 0.2)),
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | baselineStyle: .regular,
195 | barAccessibilityLabel: "Tab Bar"
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:198:10: error: 'environment' is only available in macOS 10.15 or newer
196 | )
197 | )
198 | .environment(\.bkDebugLayoutEnabled, false)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
199 | }
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:26:20: error: 'verticalSizeClass' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
24 |
25 | /// Detects current vertical size class to toggle between compact and regular layouts.
26 | @Environment(\.verticalSizeClass) private var verticalSizeClass
| `- error: 'verticalSizeClass' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Bindings
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:26:6: error: 'Environment' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
24 |
25 | /// Detects current vertical size class to toggle between compact and regular layouts.
26 | @Environment(\.verticalSizeClass) private var verticalSizeClass
| `- error: 'Environment' is only available in macOS 10.15 or newer
27 |
28 | // MARK: - Bindings
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:31:6: error: 'Binding' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
:
29 |
30 | /// The currently selected bar item.
31 | @Binding private var selected: Item
| `- error: 'Binding' is only available in macOS 10.15 or newer
32 |
33 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:51:33: error: 'EdgeInsets' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
:
49 | /// - `bottom`: distance above the home indicator / safe area edge.
50 | /// - `top`: ignored — floating bars do not constrain their top edge.
51 | private let floatingInsets: EdgeInsets
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
52 |
53 | /// Insets that position the capsule in compact height size class (e.g. landscape).
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:55:40: error: 'EdgeInsets' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
:
53 | /// Insets that position the capsule in compact height size class (e.g. landscape).
54 | /// If `nil`, `floatingInsets` is used for all size classes.
55 | private let floatingInsetsCompact: EdgeInsets?
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
56 |
57 | /// An optional closure executed when an item is tapped, even if already selected.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:63:31: error: 'EdgeInsets' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
:
61 |
62 | /// Resolves the active insets based on the current vertical size class.
63 | private var activeInsets: EdgeInsets {
| | `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
64 | verticalSizeClass == .compact ? floatingInsetsCompact ?? floatingInsets : floatingInsets
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:82:19: error: 'Binding' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
:
78 | /// - floatingInsetsCompact:Insets for compact height size class (e.g. landscape).
79 | /// - action: An optional closure executed when an item is tapped.
80 | public init(
| `- note: add '@available' attribute to enclosing initializer
81 | items: [Item],
82 | selected: Binding<Item>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
83 | configuration: BarConfiguration = .init(),
84 | badges: [AnyHashable: BadgeValue] = [:],
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:86:25: error: 'EdgeInsets' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
:
78 | /// - floatingInsetsCompact:Insets for compact height size class (e.g. landscape).
79 | /// - action: An optional closure executed when an item is tapped.
80 | public init(
| `- note: add '@available' attribute to enclosing initializer
81 | items: [Item],
82 | selected: Binding<Item>,
:
84 | badges: [AnyHashable: BadgeValue] = [:],
85 | id: String? = "tabBar",
86 | floatingInsets: EdgeInsets = .init(top: 0, leading: 16, bottom: 20, trailing: 16),
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
87 | floatingInsetsCompact: EdgeInsets? = nil,
88 | action: ((Item) -> Void)? = nil
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:87:32: error: 'EdgeInsets' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
:
78 | /// - floatingInsetsCompact:Insets for compact height size class (e.g. landscape).
79 | /// - action: An optional closure executed when an item is tapped.
80 | public init(
| `- note: add '@available' attribute to enclosing initializer
81 | items: [Item],
82 | selected: Binding<Item>,
:
85 | id: String? = "tabBar",
86 | floatingInsets: EdgeInsets = .init(top: 0, leading: 16, bottom: 20, trailing: 16),
87 | floatingInsetsCompact: EdgeInsets? = nil,
| `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
88 | action: ((Item) -> Void)? = nil
89 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:102:27: error: 'View' is only available in macOS 10.15 or newer
19 | /// .ignoresSafeArea(.all, edges: .bottom)
20 | /// ```
21 | public struct FloatingTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
22 |
23 | // MARK: - Environment
:
100 | // MARK: - Body
101 |
102 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
103 | BarView(
104 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:29:6: error: 'Binding' is only available in macOS 10.15 or newer
22 | /// }
23 | /// ```
24 | public struct PinnedTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
25 |
26 | // MARK: - Bindings
27 |
28 | /// The currently selected bar item.
29 | @Binding private var selected: Item
| `- error: 'Binding' is only available in macOS 10.15 or newer
30 |
31 | // MARK: - Properties
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:78:19: error: 'Binding' is only available in macOS 10.15 or newer
22 | /// }
23 | /// ```
24 | public struct PinnedTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
25 |
26 | // MARK: - Bindings
:
74 | /// - id: An optional identifier used as a key in the bar visibility dictionary.
75 | /// - action: An optional closure executed when an item is tapped.
76 | public init(
| `- note: add '@available' attribute to enclosing initializer
77 | items: [Item],
78 | selected: Binding<Item>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
79 | configuration: BarConfiguration = .init(),
80 | badges: [AnyHashable: BadgeValue] = [:],
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:94:27: error: 'View' is only available in macOS 10.15 or newer
22 | /// }
23 | /// ```
24 | public struct PinnedTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
25 |
26 | // MARK: - Bindings
:
92 | // MARK: - Body
93 |
94 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
95 | BarView(
96 | items: items,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:118:38: error: 'View' is only available in macOS 10.15 or newer
22 | /// }
23 | /// ```
24 | public struct PinnedTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
25 |
26 | // MARK: - Bindings
:
116 | /// The background view derived from the bar's `BarBackground` configuration.
117 | @ViewBuilder
118 | private var backgroundView: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:117:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
22 | /// }
23 | /// ```
24 | public struct PinnedTabBarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
25 |
26 | // MARK: - Bindings
:
115 |
116 | /// The background view derived from the bar's `BarBackground` configuration.
117 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
118 | private var backgroundView: some View {
119 | switch configuration.background {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/Font+UITextStyle.swift:12:22: error: cannot find type 'UIFont' in scope
10 | extension Font.TextStyle {
11 | /// UIKit text style for calculating tab title height.
12 | var uiTextStyle: UIFont.TextStyle {
| `- error: cannot find type 'UIFont' in scope
13 | switch self {
14 | case .largeTitle, .title: return .title1
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/Font+UITextStyle.swift:10:11: error: 'Font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font.TextStyle {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// UIKit text style for calculating tab title height.
12 | var uiTextStyle: UIFont.TextStyle {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/ShaderLibrary+indicatorLibrary.swift:14:34: error: 'ShaderLibrary' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 17.0, *)
11 | extension ShaderLibrary {
| `- note: add '@available' attribute to enclosing extension
12 | /// The precompiled Metal shader library for the indicator lens effect,
13 | /// selected based on the current runtime environment.
14 | static let indicatorLibrary: ShaderLibrary = {
| | `- error: 'ShaderLibrary' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing static property
15 | #if targetEnvironment(simulator)
16 | let name = "IndicatorEffects-iphonesimulator"
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/ShaderLibrary+indicatorLibrary.swift:27:16: error: 'ShaderLibrary' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 17.0, *)
11 | extension ShaderLibrary {
| `- note: add '@available' attribute to enclosing extension
12 | /// The precompiled Metal shader library for the indicator lens effect,
13 | /// selected based on the current runtime environment.
14 | static let indicatorLibrary: ShaderLibrary = {
| `- note: add '@available' attribute to enclosing static property
15 | #if targetEnvironment(simulator)
16 | let name = "IndicatorEffects-iphonesimulator"
:
25 | fatalError("BarKit: missing Metal library '\(name).metallib' in bundle.")
26 | }
27 | return ShaderLibrary(url: url)
| |- error: 'ShaderLibrary' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
28 | }()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/ShaderLibrary+indicatorLibrary.swift:11:11: error: 'ShaderLibrary' is only available in macOS 14.0 or newer
9 |
10 | @available(iOS 17.0, *)
11 | extension ShaderLibrary {
| | `- error: 'ShaderLibrary' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing extension
12 | /// The precompiled Metal shader library for the indicator lens effect,
13 | /// selected based on the current runtime environment.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Debug.swift:26:58: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | #if DEBUG
11 | public extension View {
| `- note: add '@available' attribute to enclosing extension
12 | /// Enables or disables visual layout debugging for the view hierarchy.
13 | /// Used to display frames, and borders interaction areas of the tab bar components.
:
24 | /// - Parameter enabled: The state of the debug mode. Defaults to `true`.
25 | /// - Returns: A view with the updated environment value for debugging.
26 | func debugLayout(_ enabled: Bool = true) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
27 | environment(\.bkDebugLayoutEnabled, enabled)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Debug.swift:11:22: error: 'View' is only available in macOS 10.15 or newer
9 |
10 | #if DEBUG
11 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
12 | /// Enables or disables visual layout debugging for the view hierarchy.
13 | /// Used to display frames, and borders interaction areas of the tab bar components.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Debug.swift:37:35: error: 'Color' is only available in macOS 10.15 or newer
30 | #endif
31 |
32 | extension View {
| `- note: add '@available' attribute to enclosing extension
33 | /// Applies a colored border overlay for layout debugging when in DEBUG builds.
34 | /// Has no effect in release builds.
35 | /// - Parameter color: The border color used to highlight the view's frame.
36 | @ViewBuilder
37 | func applyDebugVisuals(color: Color) -> some View {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
38 | #if DEBUG
39 | modifier(DebugVisualsModifier(color: color))
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Debug.swift:37:50: error: 'View' is only available in macOS 10.15 or newer
30 | #endif
31 |
32 | extension View {
| `- note: add '@available' attribute to enclosing extension
33 | /// Applies a colored border overlay for layout debugging when in DEBUG builds.
34 | /// Has no effect in release builds.
35 | /// - Parameter color: The border color used to highlight the view's frame.
36 | @ViewBuilder
37 | func applyDebugVisuals(color: Color) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
38 | #if DEBUG
39 | modifier(DebugVisualsModifier(color: color))
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Debug.swift:36:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
30 | #endif
31 |
32 | extension View {
| `- note: add '@available' attribute to enclosing extension
33 | /// Applies a colored border overlay for layout debugging when in DEBUG builds.
34 | /// Has no effect in release builds.
35 | /// - Parameter color: The border color used to highlight the view's frame.
36 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
37 | func applyDebugVisuals(color: Color) -> some View {
| `- note: add '@available' attribute to enclosing instance method
38 | #if DEBUG
39 | modifier(DebugVisualsModifier(color: color))
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Debug.swift:32:11: error: 'View' is only available in macOS 10.15 or newer
30 | #endif
31 |
32 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
33 | /// Applies a colored border overlay for layout debugging when in DEBUG builds.
34 | /// Has no effect in release builds.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Frame.swift:15:41: error: 'Alignment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Sets the view's frame to the given size.
12 | /// - Parameters:
13 | /// - size: The width and height to apply.
14 | /// - alignment: The alignment within the frame. Defaults to `.center`.
15 | func frame(size: CGSize, alignment: Alignment = .center) -> some View {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
16 | frame(width: size.width, height: size.height, alignment: alignment)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Frame.swift:15:70: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Sets the view's frame to the given size.
12 | /// - Parameters:
13 | /// - size: The width and height to apply.
14 | /// - alignment: The alignment within the frame. Defaults to `.center`.
15 | func frame(size: CGSize, alignment: Alignment = .center) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
16 | frame(width: size.width, height: size.height, alignment: alignment)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Frame.swift:15:54: error: 'center' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Sets the view's frame to the given size.
12 | /// - Parameters:
13 | /// - size: The width and height to apply.
14 | /// - alignment: The alignment within the frame. Defaults to `.center`.
15 | func frame(size: CGSize, alignment: Alignment = .center) -> some View {
| | `- error: 'center' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
16 | frame(width: size.width, height: size.height, alignment: alignment)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+Frame.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Sets the view's frame to the given size.
12 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+adaptiveCoordinateSpace.swift:13:56: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Applies a named coordinate space using the appropriate API for the current OS version.
12 | @ViewBuilder
13 | func adaptiveCoordinateSpace(name: String) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
14 | if #available(iOS 17.0, *) {
15 | self.coordinateSpace(.named(name))
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+adaptiveCoordinateSpace.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Applies a named coordinate space using the appropriate API for the current OS version.
12 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | func adaptiveCoordinateSpace(name: String) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | if #available(iOS 17.0, *) {
15 | self.coordinateSpace(.named(name))
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+adaptiveCoordinateSpace.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Applies a named coordinate space using the appropriate API for the current OS version.
12 | @ViewBuilder
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+barShadow.swift:12:60: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Applies a `ShadowConfiguration` as a drop shadow, or does nothing if `nil`.
12 | func barShadow(_ shadow: ShadowConfiguration?) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | self.shadow(
14 | color: shadow?.color ?? .clear,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+barShadow.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Applies a `ShadowConfiguration` as a drop shadow, or does nothing if `nil`.
12 | func barShadow(_ shadow: ShadowConfiguration?) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+capturePreference.swift:16:31: error: 'PreferenceKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Captures a frame-related value and sends it to a specified PreferenceKey.
12 | /// - Parameters:
:
14 | /// - space: The coordinate space for measurement.
15 | /// - transform: A closure that converts GeometryProxy into the desired value.
16 | func capturePreference<K: PreferenceKey>(
| | `- error: 'PreferenceKey' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
17 | key: K.Type,
18 | in space: CoordinateSpace,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+capturePreference.swift:18:19: error: 'CoordinateSpace' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Captures a frame-related value and sends it to a specified PreferenceKey.
12 | /// - Parameters:
:
14 | /// - space: The coordinate space for measurement.
15 | /// - transform: A closure that converts GeometryProxy into the desired value.
16 | func capturePreference<K: PreferenceKey>(
| `- note: add '@available' attribute to enclosing instance method
17 | key: K.Type,
18 | in space: CoordinateSpace,
| `- error: 'CoordinateSpace' is only available in macOS 10.15 or newer
19 | transform: @escaping (GeometryProxy) -> K.Value
20 | ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+capturePreference.swift:19:31: error: 'GeometryProxy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Captures a frame-related value and sends it to a specified PreferenceKey.
12 | /// - Parameters:
:
14 | /// - space: The coordinate space for measurement.
15 | /// - transform: A closure that converts GeometryProxy into the desired value.
16 | func capturePreference<K: PreferenceKey>(
| `- note: add '@available' attribute to enclosing instance method
17 | key: K.Type,
18 | in space: CoordinateSpace,
19 | transform: @escaping (GeometryProxy) -> K.Value
| `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
20 | ) -> some View {
21 | self.background {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+capturePreference.swift:20:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Captures a frame-related value and sends it to a specified PreferenceKey.
12 | /// - Parameters:
:
14 | /// - space: The coordinate space for measurement.
15 | /// - transform: A closure that converts GeometryProxy into the desired value.
16 | func capturePreference<K: PreferenceKey>(
| `- note: add '@available' attribute to enclosing instance method
17 | key: K.Type,
18 | in space: CoordinateSpace,
19 | transform: @escaping (GeometryProxy) -> K.Value
20 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
21 | self.background {
22 | GeometryReader { geometry in
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+capturePreference.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Captures a frame-related value and sends it to a specified PreferenceKey.
12 | /// - Parameters:
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+hapticFeedback.swift:21:15: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Applies sensory feedback on selection change if the platform supports it (iOS 17+).
:
16 | /// - trigger: The value whose change triggers the feedback.
17 | @ViewBuilder
18 | func hapticFeedback<T: Equatable>(
| `- note: add '@available' attribute to enclosing instance method
19 | _ feedback: HapticFeedbackConfiguration?,
20 | trigger: T
21 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
22 | if #available(iOS 17.0, *), let feedback {
23 | self.sensoryFeedback(feedback.sensoryFeedback, trigger: trigger)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+hapticFeedback.swift:17:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Applies sensory feedback on selection change if the platform supports it (iOS 17+).
:
15 | /// - feedback: The haptic feedback style to trigger. Pass `nil` to disable.
16 | /// - trigger: The value whose change triggers the feedback.
17 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
18 | func hapticFeedback<T: Equatable>(
| `- note: add '@available' attribute to enclosing instance method
19 | _ feedback: HapticFeedbackConfiguration?,
20 | trigger: T
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+hapticFeedback.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 |
12 | /// Applies sensory feedback on selection change if the platform supports it (iOS 17+).
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+hideBar.swift:14:38: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Writes `.hidden` for the given bar identifier into the shared visibility binding
12 | /// when this view appears, and restores `.visible` when it disappears.
13 | /// The actual rendering decision belongs to the container that owns the binding.
14 | func hideBar(id: String) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
15 | modifier(HideBarModifier(id: id))
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+hideBar.swift:10:18: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Writes `.hidden` for the given bar identifier into the shared visibility binding
12 | /// when this view appears, and restores `.visible` when it disappears.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+hideBar.swift:27:6: error: 'Environment' is only available in macOS 10.15 or newer
19 | /// A modifier that updates the shared bar visibility dictionary
20 | /// based on the appearance lifecycle of the modified view.
21 | private struct HideBarModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
22 |
23 | /// The bar identifier used as a key in the visibility dictionary.
:
25 |
26 | /// The shared visibility binding injected by the container via ``bkBarVisibility(_:)``.
27 | @Environment(\.bkBarVisibility) private var visibility
| `- error: 'Environment' is only available in macOS 10.15 or newer
28 |
29 | /// Writes `.hidden` on appear and `.visible` on disappear for ``id``.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+hideBar.swift:30:41: error: 'View' is only available in macOS 10.15 or newer
19 | /// A modifier that updates the shared bar visibility dictionary
20 | /// based on the appearance lifecycle of the modified view.
21 | private struct HideBarModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
22 |
23 | /// The bar identifier used as a key in the visibility dictionary.
:
28 |
29 | /// Writes `.hidden` on appear and `.visible` on disappear for ``id``.
30 | 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
31 | content
32 | .onAppear { visibility.wrappedValue[id] = .hidden }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+indicatorLens.swift:13:114: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Applies lens effect if indicator configuration is provided and the indicator is in motion.
12 | @ViewBuilder
13 | func indicatorLens(_ configuration: SelectionIndicatorConfiguration?, frame: CGRect, isActive: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
14 | if let configuration, isActive, !configuration.effects.isEmpty {
15 | indicatorLensEffect(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+indicatorLens.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Applies lens effect if indicator configuration is provided and the indicator is in motion.
12 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 | func indicatorLens(_ configuration: SelectionIndicatorConfiguration?, frame: CGRect, isActive: Bool) -> some View {
| `- note: add '@available' attribute to enclosing instance method
14 | if let configuration, isActive, !configuration.effects.isEmpty {
15 | indicatorLensEffect(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+indicatorLens.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Applies lens effect if indicator configuration is provided and the indicator is in motion.
12 | @ViewBuilder
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+indicatorLensEffect.swift:32:15: error: 'View' is only available in macOS 10.15 or newer
10 | /// Applies the Metal lens distortion and chromatic aberration shader
11 | /// to a view using the selection indicator's current frame as the effect bounds.
12 | extension View {
| `- note: add '@available' attribute to enclosing extension
13 |
14 | /// Applies the indicator lens effect to the view if the platform supports it (iOS 17+).
:
23 |
24 | @ViewBuilder
25 | func indicatorLensEffect(
| `- note: add '@available' attribute to enclosing instance method
26 | frame: CGRect,
27 | cornerRadius: CGFloat,
:
30 | aberrationStrength: CGFloat,
31 | refractionStrength: CGFloat
32 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
33 | if #available(iOS 17.0, *) {
34 | let library = ShaderLibrary.indicatorLibrary
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+indicatorLensEffect.swift:24:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
10 | /// Applies the Metal lens distortion and chromatic aberration shader
11 | /// to a view using the selection indicator's current frame as the effect bounds.
12 | extension View {
| `- note: add '@available' attribute to enclosing extension
13 |
14 | /// Applies the indicator lens effect to the view if the platform supports it (iOS 17+).
:
22 | /// - refractionStrength: Maximum pixel displacement at the indicator boundary. Typical range 1.5–5.0.
23 |
24 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
25 | func indicatorLensEffect(
| `- note: add '@available' attribute to enclosing instance method
26 | frame: CGRect,
27 | cornerRadius: CGFloat,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+indicatorLensEffect.swift:12:11: error: 'View' is only available in macOS 10.15 or newer
10 | /// Applies the Metal lens distortion and chromatic aberration shader
11 | /// to a view using the selection indicator's current frame as the effect bounds.
12 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
13 |
14 | /// Applies the indicator lens effect to the view if the platform supports it (iOS 17+).
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+registerBarVisibility.swift:14:43: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Injects a bar visibility binding into the environment.
12 | /// The binding maps bar identifiers to their ``Visibility`` state.
13 | /// Write `.hidden` for a given key to signal the parent to stop rendering that bar.
14 | func registerBarVisibility(_ binding: Binding<[String: Visibility]>) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
15 | environment(\.bkBarVisibility, binding)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+registerBarVisibility.swift:14:82: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| `- note: add '@available' attribute to enclosing extension
11 | /// Injects a bar visibility binding into the environment.
12 | /// The binding maps bar identifiers to their ``Visibility`` state.
13 | /// Write `.hidden` for a given key to signal the parent to stop rendering that bar.
14 | func registerBarVisibility(_ binding: Binding<[String: Visibility]>) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
15 | environment(\.bkBarVisibility, binding)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Extensions/View+registerBarVisibility.swift:10:18: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | /// Injects a bar visibility binding into the environment.
12 | /// The binding maps bar identifiers to their ``Visibility`` state.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Keys/EnvironmentKeys.swift:21:33: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension EnvironmentValues {
| `- note: add '@available' attribute to enclosing extension
11 | #if DEBUG
12 | /// Toggles supplementary visual guides and outlines to assist with layout debugging.
:
19 | /// A binding to a dictionary that controls bar visibility by string identifier.
20 | /// Write `.hidden` for a given key to signal the associated bar should not be rendered.
21 | @Entry var bkBarVisibility: Binding<[String: Visibility]> = .constant([:])
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
22 | }
23 |
macro expansion @Entry:3:30: error: 'Binding' is only available in macOS 10.15 or newer
`- /Users/admin/builder/spi-builder-workspace/Sources/BarKit/Keys/EnvironmentKeys.swift:21:79: note: expanded code originates here
19 | /// A binding to a dictionary that controls bar visibility by string identifier.
20 | /// Write `.hidden` for a given key to signal the associated bar should not be rendered.
21 | @Entry var bkBarVisibility: Binding<[String: Visibility]> = .constant([:])
| |- note: in expansion of macro 'Entry' on property 'bkBarVisibility' here
| |- note: in expansion of macro 'Entry' on property 'bkBarVisibility' here
| `- note: in expansion of macro 'Entry' on property 'bkBarVisibility' here
+--- macro expansion @Entry -----------------------------------------
|1 | private struct __Key_bkBarVisibility: SwiftUICore.EnvironmentKey {
| | `- note: add '@available' attribute to enclosing struct
|2 | @SwiftUICore.__EntryDefaultValue
|3 | static var defaultValue: Binding<[String: Visibility]> = .constant([:])
| | | `- error: 'Binding' is only available in macOS 10.15 or newer
| | `- note: add '@available' attribute to enclosing static property
|4 | }
+--------------------------------------------------------------------
22 | }
23 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/Keys/EnvironmentKeys.swift:10:18: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | #if DEBUG
12 | /// Toggles supplementary visual guides and outlines to assist with layout debugging.
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | 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
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | 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
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 | /// The color used for the border and background tint.
17 | let color: Color
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
16 | /// The color used for the border and background tint.
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:45: error: 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | 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
20 | if isDebugEnabled {
21 | content
[51/54] Compiling BarKit BarContainerAccessibilityModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | 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
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
20 |
21 | func body(content: Content) -> some View {
22 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:23:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:18: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:50: error: 'contain' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'contain' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:25:18: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:18: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:42: error: 'isTabBar' is only available in macOS 14.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'isTabBar' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:27:18: error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
| |- error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:28:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | content
30 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:46: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> 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
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | 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
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:22:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:46: error: 'ignore' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'ignore' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:24:14: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:25:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:46: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' 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
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 | /// The color used for the border and background tint.
17 | let color: Color
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
16 | /// The color used for the border and background tint.
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:45: error: 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | 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
20 | if isDebugEnabled {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:39: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:22: error: 'border(_:width:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:35: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:20:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:24:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | content
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:50: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> 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
20 | if isDebugEnabled {
21 | content
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[52/54] Compiling BarKit BarItemAccessibilityModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | 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
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
20 |
21 | func body(content: Content) -> some View {
22 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:23:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:18: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:50: error: 'contain' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'contain' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:25:18: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:18: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:42: error: 'isTabBar' is only available in macOS 14.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'isTabBar' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:27:18: error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
| |- error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:28:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | content
30 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:46: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> 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
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | 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
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:22:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:46: error: 'ignore' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'ignore' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:24:14: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:25:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:46: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' 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
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 | /// The color used for the border and background tint.
17 | let color: Color
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
16 | /// The color used for the border and background tint.
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:45: error: 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | 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
20 | if isDebugEnabled {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:39: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:22: error: 'border(_:width:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:35: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:20:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:24:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | content
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:50: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> 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
20 | if isDebugEnabled {
21 | content
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[53/54] Compiling BarKit DebugVisualsModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | 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
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
20 |
21 | func body(content: Content) -> some View {
22 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:23:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:18: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:50: error: 'contain' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'contain' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:25:18: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:18: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:42: error: 'isTabBar' is only available in macOS 14.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'isTabBar' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:27:18: error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
| |- error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:28:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | content
30 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:46: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> 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
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | 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
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:22:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:46: error: 'ignore' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'ignore' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:24:14: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:25:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:46: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' 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
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 | /// The color used for the border and background tint.
17 | let color: Color
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
16 | /// The color used for the border and background tint.
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:45: error: 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | 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
20 | if isDebugEnabled {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:39: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:22: error: 'border(_:width:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:35: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:20:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:24:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | content
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:50: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> 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
20 | if isDebugEnabled {
21 | content
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[54/54] Compiling BarKit resource_bundle_accessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | 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
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
20 |
21 | func body(content: Content) -> some View {
22 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:23:13: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:18: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:24:50: error: 'contain' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
| |- error: 'contain' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:25:18: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:18: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:26:42: error: 'isTabBar' is only available in macOS 14.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
24 | .accessibilityElement(children: .contain)
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
| |- error: 'isTabBar' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:27:18: error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
25 | .accessibilityLabel(label)
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
| |- error: 'accessibilitySortPriority' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
28 | } else {
29 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:22:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | content
24 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:28:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | if #available(iOS 17.0, *) {
23 | content
:
26 | .accessibilityAddTraits(.isTabBar)
27 | .accessibilitySortPriority(sortPriority)
28 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | content
30 | .accessibilityElement(children: .contain)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarContainerAccessibilityModifier.swift:21:46: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// On iOS 17+, adds the `.isTabBar` trait so VoiceOver announces
12 | /// items as tabs and automatically provides "X of Y" position hints.
13 | struct BarContainerAccessibilityModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 |
15 | /// Accessibility label for the entire bar container.
:
19 | let sortPriority: Double
20 |
21 | func body(content: Content) -> 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
22 | if #available(iOS 17.0, *) {
23 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:41: error: 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | 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
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:22:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:14: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:23:46: error: 'ignore' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
| |- error: 'ignore' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:24:14: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:25:14: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
22 | content
23 | .accessibilityElement(children: .ignore)
24 | .accessibilityLabel(item.accessibilityLabel ?? item.title)
25 | .accessibilityAddTraits(isSelected ? .isSelected : [])
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/BarItemAccessibilityModifier.swift:21:46: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// The item is presented as an atomic element — its icon and title
12 | /// are hidden from VoiceOver and replaced by a single label.
13 | struct BarItemAccessibilityModifier<Item: BarItemProtocol>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | /// The data model for this bar item.
:
19 | let isSelected: Bool
20 |
21 | func body(content: Content) -> some View {
| | |- error: conformance of 'ModifiedContent<Content, Modifier>' 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
22 | content
23 | .accessibilityElement(children: .ignore)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:15:6: error: 'Environment' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
| `- error: 'Environment' is only available in macOS 10.15 or newer
16 | /// The color used for the border and background tint.
17 | let color: Color
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
16 | /// The color used for the border and background tint.
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 |
19 | func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:45: error: 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | 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
20 | if isDebugEnabled {
21 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:22: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:22:39: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:22: error: 'border(_:width:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'border(_:width:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:23:35: error: 'opacity' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | } else {
25 | content
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:20:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:24:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
20 | if isDebugEnabled {
21 | content
22 | .background(color.opacity(0.2), ignoresSafeAreaEdges: [])
23 | .border(color.opacity(0.5), width: 1)
24 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | content
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/ViewModifiers/DebugVisualsModifier.swift:19:50: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
11 | /// Overlays a colored border and background tint to visualize the view's frame.
12 | /// Only active when `debugLayoutEnabled` is `true` in the environment.
13 | struct DebugVisualsModifier: ViewModifier {
| `- note: add '@available' attribute to enclosing struct
14 | /// Current debug layout state from the environment.
15 | @Environment(\.bkDebugLayoutEnabled) var isDebugEnabled
:
17 | let color: Color
18 |
19 | func body(content: Content) -> 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
20 | if isDebugEnabled {
21 | content
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
BUILD FAILURE 6.3 macosSpm