Build Information
Failed to build BarKit, reference main (620b89), with Swift 6.2 for macOS (SPM) on 28 Jun 2026 06:01:15 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
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/BarView.swift:69:27: error: conformance of 'UserInterfaceSizeClass' to 'Equatable' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
66 |
67 | /// Returns true if the layout is in a vertically constrained environment.
68 | private var isVerticalCompact: Bool {
| `- note: add '@available' attribute to enclosing property
69 | verticalSizeClass == .compact
| |- error: conformance of 'UserInterfaceSizeClass' to 'Equatable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | }
71 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:123:9: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | itemsStack
125 | .indicatorLens(configuration.indicator, frame: indicatorFrame, isActive: isIndicatorMoving)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:123:9: error: 'ZStack' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | itemsStack
125 | .indicatorLens(configuration.indicator, frame: indicatorFrame, isActive: isIndicatorMoving)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:123:64: error: 'leading' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | itemsStack
125 | .indicatorLens(configuration.indicator, frame: indicatorFrame, isActive: isIndicatorMoving)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:123:75: error: 'top' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | itemsStack
125 | .indicatorLens(configuration.indicator, frame: indicatorFrame, isActive: isIndicatorMoving)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:133:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
:
131 | .indicatorLens(configuration.indicator, frame: indicatorFrame, isActive: isIndicatorMoving)
132 | }
133 | .frame(
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | height: barHeight(),
135 | alignment: .bottom
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:135:25: error: 'bottom' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
:
133 | .frame(
134 | height: barHeight(),
135 | alignment: .bottom
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | )
137 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:137:10: error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
:
135 | alignment: .bottom
136 | )
137 | .background {
| |- error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
138 | backgroundCapsule
139 | .applyDebugVisuals(color: .green)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:139:44: error: 'green' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
:
137 | .background {
138 | backgroundCapsule
139 | .applyDebugVisuals(color: .green)
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | }
141 | .overlay(alignment: configuration.axis == .horizontal ? .leading : .top) {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:141:10: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
:
139 | .applyDebugVisuals(color: .green)
140 | }
141 | .overlay(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
142 | selectionIndicator(frame: indicatorFrame)
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:141:66: error: 'leading' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
:
139 | .applyDebugVisuals(color: .green)
140 | }
141 | .overlay(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | selectionIndicator(frame: indicatorFrame)
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:141:77: error: 'top' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
:
139 | .applyDebugVisuals(color: .green)
140 | }
141 | .overlay(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | selectionIndicator(frame: indicatorFrame)
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:145:10: error: 'modifier' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
:
143 | }
144 | .hapticFeedback(configuration.hapticFeedback, trigger: selected)
145 | .modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | BarContainerAccessibilityModifier(
147 | label: configuration.barAccessibilityLabel,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:121:32: error: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer
11 | /// and an overlay items stack. Does not position itself on screen — layout is the
12 | /// responsibility of the calling code.
13 | public struct BarView<Item: BarItemProtocol>: View {
| `- note: add '@available' attribute to enclosing generic struct
14 |
15 | // MARK: - Environment
:
119 | // MARK: - Body
120 |
121 | public var body: 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 property
122 | let indicatorFrame = indicatorFrame()
123 | ZStack(alignment: configuration.axis == .horizontal ? .leading : .top) {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:162:9: error: 'ForEach' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
159 | /// A layer rendering badge overlays positioned over item icons.
160 | @ViewBuilder
161 | var badgesStack: some View {
| `- note: add '@available' attribute to enclosing property
162 | ForEach(items) { item in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | if
164 | let badge = badges[item.id],
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:162:9: error: 'init(_:content:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
159 | /// A layer rendering badge overlays positioned over item icons.
160 | @ViewBuilder
161 | var badgesStack: some View {
| `- note: add '@available' attribute to enclosing property
162 | ForEach(items) { item in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | if
164 | let badge = badges[item.id],
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:167:22: error: 'position(x:y:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
159 | /// A layer rendering badge overlays positioned over item icons.
160 | @ViewBuilder
161 | var badgesStack: some View {
| `- note: add '@available' attribute to enclosing property
162 | ForEach(items) { item in
163 | if
:
165 | let frame = itemIconFrames[item.id] {
166 | BadgeView(value: badge, configuration: configuration.badge)
167 | .position(
| |- error: 'position(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
168 | x: frame.maxX + configuration.badge.offsetX,
169 | y: frame.minY + configuration.badge.offsetY
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:165:53: error: 'buildIf' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
159 | /// A layer rendering badge overlays positioned over item icons.
160 | @ViewBuilder
161 | var badgesStack: some View {
| `- note: add '@available' attribute to enclosing property
162 | ForEach(items) { item in
163 | if
164 | let badge = badges[item.id],
165 | let frame = itemIconFrames[item.id] {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | BadgeView(value: badge, configuration: configuration.badge)
167 | .position(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:171:13: error: 'buildIf' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
159 | /// A layer rendering badge overlays positioned over item icons.
160 | @ViewBuilder
161 | var badgesStack: some View {
| `- note: add '@available' attribute to enclosing property
162 | ForEach(items) { item in
163 | if
:
169 | y: frame.minY + configuration.badge.offsetY
170 | )
171 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
172 | }
173 | .frame(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:162:24: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
159 | /// A layer rendering badge overlays positioned over item icons.
160 | @ViewBuilder
161 | var badgesStack: some View {
| `- note: add '@available' attribute to enclosing property
162 | ForEach(items) { item in
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
163 | if
164 | let badge = badges[item.id],
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:173:10: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
159 | /// A layer rendering badge overlays positioned over item icons.
160 | @ViewBuilder
161 | var badgesStack: some View {
| `- note: add '@available' attribute to enclosing property
162 | ForEach(items) { item in
163 | if
:
171 | }
172 | }
173 | .frame(
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
174 | maxWidth: configuration.axis == .horizontal ? .infinity : maxItemWidth,
175 | maxHeight: configuration.axis == .vertical ? .infinity : maxItemHeight
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:192:10: error: 'environment' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
178 |
179 | /// A stack of interactive bar items.
180 | var itemsStack: some View {
| `- note: add '@available' attribute to enclosing property
181 | itemStack() { item in
182 | BarItemView(
:
190 | }
191 | .adaptiveCoordinateSpace(name: coordinateSpaceName)
192 | .environment(\.bkBarSpaceName, coordinateSpaceName)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
193 | .onPreferenceChange(BarItemFrameKey.self) { itemFrames = $0 }
194 | .onPreferenceChange(BarIconFrameKey.self) { itemIconFrames = $0 }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:193:10: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
178 |
179 | /// A stack of interactive bar items.
180 | var itemsStack: some View {
| `- note: add '@available' attribute to enclosing property
181 | itemStack() { item in
182 | BarItemView(
:
191 | .adaptiveCoordinateSpace(name: coordinateSpaceName)
192 | .environment(\.bkBarSpaceName, coordinateSpaceName)
193 | .onPreferenceChange(BarItemFrameKey.self) { itemFrames = $0 }
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | .onPreferenceChange(BarIconFrameKey.self) { itemIconFrames = $0 }
195 | .defersSystemGestures(on: .all)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:193:53: error: setter for 'itemFrames' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
178 |
179 | /// A stack of interactive bar items.
180 | var itemsStack: some View {
| `- note: add '@available' attribute to enclosing property
181 | itemStack() { item in
182 | BarItemView(
:
191 | .adaptiveCoordinateSpace(name: coordinateSpaceName)
192 | .environment(\.bkBarSpaceName, coordinateSpaceName)
193 | .onPreferenceChange(BarItemFrameKey.self) { itemFrames = $0 }
| |- error: setter for 'itemFrames' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | .onPreferenceChange(BarIconFrameKey.self) { itemIconFrames = $0 }
195 | .defersSystemGestures(on: .all)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:194:10: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
178 |
179 | /// A stack of interactive bar items.
180 | var itemsStack: some View {
| `- note: add '@available' attribute to enclosing property
181 | itemStack() { item in
182 | BarItemView(
:
192 | .environment(\.bkBarSpaceName, coordinateSpaceName)
193 | .onPreferenceChange(BarItemFrameKey.self) { itemFrames = $0 }
194 | .onPreferenceChange(BarIconFrameKey.self) { itemIconFrames = $0 }
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
195 | .defersSystemGestures(on: .all)
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:194:53: error: setter for 'itemIconFrames' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
178 |
179 | /// A stack of interactive bar items.
180 | var itemsStack: some View {
| `- note: add '@available' attribute to enclosing property
181 | itemStack() { item in
182 | BarItemView(
:
192 | .environment(\.bkBarSpaceName, coordinateSpaceName)
193 | .onPreferenceChange(BarItemFrameKey.self) { itemFrames = $0 }
194 | .onPreferenceChange(BarIconFrameKey.self) { itemIconFrames = $0 }
| |- error: setter for 'itemIconFrames' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
195 | .defersSystemGestures(on: .all)
196 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:195:10: error: 'defersSystemGestures(on:)' is unavailable in macOS
193 | .onPreferenceChange(BarItemFrameKey.self) { itemFrames = $0 }
194 | .onPreferenceChange(BarIconFrameKey.self) { itemIconFrames = $0 }
195 | .defersSystemGestures(on: .all)
| `- error: 'defersSystemGestures(on:)' is unavailable in macOS
196 | }
197 |
SwiftUI.View.defersSystemGestures:7:27: note: 'defersSystemGestures(on:)' has been explicitly marked unavailable here
5 | @available(watchOS, unavailable)
6 | @available(visionOS, unavailable)
7 | nonisolated public func defersSystemGestures(on edges: Edge.Set) -> some View
| `- note: 'defersSystemGestures(on:)' has been explicitly marked unavailable here
8 | }
9 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:203:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
203 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | .fill(color)
205 | .barShadow(configuration.shadow)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:204:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
203 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
204 | .fill(color)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
205 | .barShadow(configuration.shadow)
206 | case let .material(material, tint):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:205:18: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
203 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
204 | .fill(color)
205 | .barShadow(configuration.shadow)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 | case let .material(material, tint):
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:203:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
203 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | .fill(color)
205 | .barShadow(configuration.shadow)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:203:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
203 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | .fill(color)
205 | .barShadow(configuration.shadow)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:207:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
205 | .barShadow(configuration.shadow)
206 | case let .material(material, tint):
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:208:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
206 | case let .material(material, tint):
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
208 | .fill(material.resolved)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
210 | .barShadow(configuration.shadow)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:209:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
210 | .barShadow(configuration.shadow)
211 | case let .customBlur(_, tint):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:209:26: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | .barShadow(configuration.shadow)
211 | case let .customBlur(_, tint):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:209:26: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | .barShadow(configuration.shadow)
211 | case let .customBlur(_, tint):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:209:28: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | .barShadow(configuration.shadow)
211 | case let .customBlur(_, tint):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:209:28: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | .barShadow(configuration.shadow)
211 | case let .customBlur(_, tint):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:209:87: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
210 | .barShadow(configuration.shadow)
211 | case let .customBlur(_, tint):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:209:26: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
210 | .barShadow(configuration.shadow)
211 | case let .customBlur(_, tint):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:207:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
205 | .barShadow(configuration.shadow)
206 | case let .material(material, tint):
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:207:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
205 | .barShadow(configuration.shadow)
206 | case let .material(material, tint):
207 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | .fill(material.resolved)
209 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:212:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
210 | .barShadow(configuration.shadow)
211 | case let .customBlur(_, tint):
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
213 | .fill(.clear)
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:213:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
211 | case let .customBlur(_, tint):
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
213 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
215 | .barShadow(configuration.shadow)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:213:24: error: 'clear' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
211 | case let .customBlur(_, tint):
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
213 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
215 | .barShadow(configuration.shadow)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:214:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
213 | .fill(.clear)
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
215 | .barShadow(configuration.shadow)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:214:26: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
213 | .fill(.clear)
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | .barShadow(configuration.shadow)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:214:26: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
213 | .fill(.clear)
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | .barShadow(configuration.shadow)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:214:28: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
213 | .fill(.clear)
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | .barShadow(configuration.shadow)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:214:28: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
213 | .fill(.clear)
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | .barShadow(configuration.shadow)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:214:87: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
213 | .fill(.clear)
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
215 | .barShadow(configuration.shadow)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:214:26: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
213 | .fill(.clear)
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
215 | .barShadow(configuration.shadow)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:212:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
:
210 | .barShadow(configuration.shadow)
211 | case let .customBlur(_, tint):
212 | RoundedRectangle(cornerRadius: configuration.cornerRadius)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
213 | .fill(.clear)
214 | .overlay { RoundedRectangle(cornerRadius: configuration.cornerRadius).fill(tint) }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:200:38: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
198 | /// The bar background rendered behind the items stack.
199 | @ViewBuilder
200 | var backgroundCapsule: some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing property
201 | switch configuration.background {
202 | case let .color(color):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:234:14: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
224 | if let indicatorConfiguration = configuration.indicator {
225 | itemStack { item in
:
232 | }
233 | .adaptiveCoordinateSpace(name: coordinateSpaceName)
234 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
235 | .mask(alignment: configuration.axis == .horizontal ? .leading : .top) {
236 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:235:14: error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
224 | if let indicatorConfiguration = configuration.indicator {
225 | itemStack { item in
:
233 | .adaptiveCoordinateSpace(name: coordinateSpaceName)
234 | .accessibilityHidden(true)
235 | .mask(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: 'mask(alignment:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
236 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
237 | .frame(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:235:67: error: 'leading' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
224 | if let indicatorConfiguration = configuration.indicator {
225 | itemStack { item in
:
233 | .adaptiveCoordinateSpace(name: coordinateSpaceName)
234 | .accessibilityHidden(true)
235 | .mask(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
237 | .frame(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:235:78: error: 'top' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
224 | if let indicatorConfiguration = configuration.indicator {
225 | itemStack { item in
:
233 | .adaptiveCoordinateSpace(name: coordinateSpaceName)
234 | .accessibilityHidden(true)
235 | .mask(alignment: configuration.axis == .horizontal ? .leading : .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
237 | .frame(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:236:17: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
224 | if let indicatorConfiguration = configuration.indicator {
225 | itemStack { item in
:
234 | .accessibilityHidden(true)
235 | .mask(alignment: configuration.axis == .horizontal ? .leading : .top) {
236 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
237 | .frame(
238 | width: max(0, indicatorFrame.width),
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:237:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
224 | if let indicatorConfiguration = configuration.indicator {
225 | itemStack { item in
:
235 | .mask(alignment: configuration.axis == .horizontal ? .leading : .top) {
236 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
237 | .frame(
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
238 | width: max(0, indicatorFrame.width),
239 | height: max(0, indicatorFrame.height)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:241:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
224 | if let indicatorConfiguration = configuration.indicator {
225 | itemStack { item in
:
239 | height: max(0, indicatorFrame.height)
240 | )
241 | .offset(
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | x: configuration.axis == .horizontal ? indicatorFrame.minX : 0,
243 | y: configuration.axis == .vertical ? indicatorFrame.minY : 0
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:224:65: error: 'buildIf' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
224 | if let indicatorConfiguration = configuration.indicator {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
225 | itemStack { item in
226 | BarItemOverlayView(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:246:9: error: 'buildIf' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
224 | if let indicatorConfiguration = configuration.indicator {
225 | itemStack { item in
:
244 | )
245 | }
246 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
247 | }
248 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:223:65: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
221 | /// Rendered only when `indicatorConfig` is provided.
222 | @ViewBuilder
223 | func overlayItemsStack(indicatorFrame: CGRect) -> some View {
| | |- error: conformance of 'Optional<Wrapped>' 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
224 | if let indicatorConfiguration = configuration.indicator {
225 | itemStack { item in
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:254:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:255:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
256 | .overlay {
257 | if let border = indicatorConfiguration.border {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:256:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:256:26: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:256:26: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:256:26: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:256:26: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:256:26: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:256:26: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:258:25: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
:
256 | .overlay {
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | .strokeBorder(border.color, lineWidth: border.lineWidth)
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:258:25: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
:
256 | .overlay {
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | .strokeBorder(border.color, lineWidth: border.lineWidth)
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:258:25: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
:
256 | .overlay {
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | .strokeBorder(border.color, lineWidth: border.lineWidth)
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:259:30: error: 'strokeBorder(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
:
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
259 | .strokeBorder(border.color, lineWidth: border.lineWidth)
| |- error: 'strokeBorder(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
260 | }
261 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:257:67: error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
257 | if let border = indicatorConfiguration.border {
| |- error: conformance of 'RoundedRectangle' to 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
259 | .strokeBorder(border.color, lineWidth: border.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:257:67: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
257 | if let border = indicatorConfiguration.border {
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
259 | .strokeBorder(border.color, lineWidth: border.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:257:67: error: 'buildIf' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
257 | if let border = indicatorConfiguration.border {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
259 | .strokeBorder(border.color, lineWidth: border.lineWidth)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:260:21: error: 'buildIf' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
:
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
259 | .strokeBorder(border.color, lineWidth: border.lineWidth)
260 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | }
262 | .frame(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:256:26: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
256 | .overlay {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
257 | if let border = indicatorConfiguration.border {
258 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:262:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
:
260 | }
261 | }
262 | .frame(
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
263 | width: max(0, frame.width),
264 | height: max(0, frame.height)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:266:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
:
264 | height: max(0, frame.height)
265 | )
266 | .offset(
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
267 | x: configuration.axis == .horizontal ? frame.minX : 0,
268 | y: configuration.axis == .vertical ? frame.minY : 0
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:270:18: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
:
268 | y: configuration.axis == .vertical ? frame.minY : 0
269 | )
270 | .gesture(indicatorConfiguration.isDragGestureEnabled ? dragGesture : nil)
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
271 | }
272 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:253:65: error: 'buildIf' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
255 | .fill(indicatorConfiguration.color)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:271:9: error: 'buildIf' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| `- note: add '@available' attribute to enclosing instance method
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
:
269 | )
270 | .gesture(indicatorConfiguration.isDragGestureEnabled ? dragGesture : nil)
271 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 | }
273 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:252:57: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
250 | /// Rendered only when `indicatorConfig` is provided.
251 | @ViewBuilder
252 | func selectionIndicator(frame: CGRect) -> some View {
| | |- error: conformance of 'Optional<Wrapped>' 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
253 | if let indicatorConfiguration = configuration.indicator {
254 | RoundedRectangle(cornerRadius: indicatorConfiguration.cornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:281:13: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
279 | switch configuration.axis {
280 | case .horizontal:
281 | HStack(alignment: configuration.itemAlignment.vertical, spacing: configuration.itemSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
282 | ForEach(items) { content($0) }
283 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:281:13: error: 'HStack' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
279 | switch configuration.axis {
280 | case .horizontal:
281 | HStack(alignment: configuration.itemAlignment.vertical, spacing: configuration.itemSpacing) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
282 | ForEach(items) { content($0) }
283 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:281:13: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
279 | switch configuration.axis {
280 | case .horizontal:
281 | HStack(alignment: configuration.itemAlignment.vertical, spacing: configuration.itemSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
282 | ForEach(items) { content($0) }
283 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:282:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
280 | case .horizontal:
281 | HStack(alignment: configuration.itemAlignment.vertical, spacing: configuration.itemSpacing) {
282 | ForEach(items) { content($0) }
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
283 | }
284 | case .vertical:
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:282:17: error: 'ForEach' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
280 | case .horizontal:
281 | HStack(alignment: configuration.itemAlignment.vertical, spacing: configuration.itemSpacing) {
282 | ForEach(items) { content($0) }
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
283 | }
284 | case .vertical:
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:282:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
280 | case .horizontal:
281 | HStack(alignment: configuration.itemAlignment.vertical, spacing: configuration.itemSpacing) {
282 | ForEach(items) { content($0) }
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
283 | }
284 | case .vertical:
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:281:105: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
279 | switch configuration.axis {
280 | case .horizontal:
281 | HStack(alignment: configuration.itemAlignment.vertical, spacing: configuration.itemSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
282 | ForEach(items) { content($0) }
283 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:281:13: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
279 | switch configuration.axis {
280 | case .horizontal:
281 | HStack(alignment: configuration.itemAlignment.vertical, spacing: configuration.itemSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
282 | ForEach(items) { content($0) }
283 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:281:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
279 | switch configuration.axis {
280 | case .horizontal:
281 | HStack(alignment: configuration.itemAlignment.vertical, spacing: configuration.itemSpacing) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
282 | ForEach(items) { content($0) }
283 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:285:13: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
283 | }
284 | case .vertical:
285 | VStack(alignment: configuration.itemAlignment.horizontal, spacing: configuration.itemSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
286 | ForEach(items) { content($0) }
287 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:285:13: error: 'VStack' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
283 | }
284 | case .vertical:
285 | VStack(alignment: configuration.itemAlignment.horizontal, spacing: configuration.itemSpacing) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
286 | ForEach(items) { content($0) }
287 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:285:13: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
283 | }
284 | case .vertical:
285 | VStack(alignment: configuration.itemAlignment.horizontal, spacing: configuration.itemSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
286 | ForEach(items) { content($0) }
287 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:286:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
284 | case .vertical:
285 | VStack(alignment: configuration.itemAlignment.horizontal, spacing: configuration.itemSpacing) {
286 | ForEach(items) { content($0) }
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
287 | }
288 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:286:17: error: 'ForEach' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
284 | case .vertical:
285 | VStack(alignment: configuration.itemAlignment.horizontal, spacing: configuration.itemSpacing) {
286 | ForEach(items) { content($0) }
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
287 | }
288 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:286:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
284 | case .vertical:
285 | VStack(alignment: configuration.itemAlignment.horizontal, spacing: configuration.itemSpacing) {
286 | ForEach(items) { content($0) }
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
287 | }
288 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:285:107: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
283 | }
284 | case .vertical:
285 | VStack(alignment: configuration.itemAlignment.horizontal, spacing: configuration.itemSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
286 | ForEach(items) { content($0) }
287 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:285:13: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
283 | }
284 | case .vertical:
285 | VStack(alignment: configuration.itemAlignment.horizontal, spacing: configuration.itemSpacing) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
286 | ForEach(items) { content($0) }
287 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:285:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> some View {
:
283 | }
284 | case .vertical:
285 | VStack(alignment: configuration.itemAlignment.horizontal, spacing: configuration.itemSpacing) {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
286 | ForEach(items) { content($0) }
287 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:278:20: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
154 | // MARK: - Subviews
155 |
156 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
157 |
158 |
:
274 | /// Builds a horizontal or vertical stack of items based on the bar axis.
275 | @ViewBuilder
276 | func itemStack<Content: View>(
| `- note: add '@available' attribute to enclosing instance method
277 | @ViewBuilder content: @escaping (Item) -> Content
278 | ) -> 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
279 | switch configuration.axis {
280 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:305:14: error: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
299 | .onChanged { value in
:
303 | gestureLocation = value.location
304 | }
305 | .onEnded { _ in
| |- error: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
306 | handleSelection(nearestItem(to: indicatorFrame()))
307 | isDragging = false
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:298:9: error: 'DragGesture' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
299 | .onChanged { value in
300 | isSelectionIndicatorScaling = true
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:298:9: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
299 | .onChanged { value in
300 | isSelectionIndicatorScaling = true
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:299:14: error: 'onChanged' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
299 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
300 | isSelectionIndicatorScaling = true
301 | isIndicatorMoving = true
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:300:17: error: setter for 'isSelectionIndicatorScaling' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
299 | .onChanged { value in
300 | isSelectionIndicatorScaling = true
| |- error: setter for 'isSelectionIndicatorScaling' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
301 | isIndicatorMoving = true
302 | isDragging = true
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:301:17: error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
299 | .onChanged { value in
300 | isSelectionIndicatorScaling = true
301 | isIndicatorMoving = true
| |- error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
302 | isDragging = true
303 | gestureLocation = value.location
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:302:17: error: setter for 'isDragging' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
299 | .onChanged { value in
300 | isSelectionIndicatorScaling = true
301 | isIndicatorMoving = true
302 | isDragging = true
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
303 | gestureLocation = value.location
304 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:303:17: error: setter for 'gestureLocation' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
299 | .onChanged { value in
:
301 | isIndicatorMoving = true
302 | isDragging = true
303 | gestureLocation = value.location
| |- error: setter for 'gestureLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
304 | }
305 | .onEnded { _ in
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:305:14: error: 'onEnded' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
299 | .onChanged { value in
:
303 | gestureLocation = value.location
304 | }
305 | .onEnded { _ in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
306 | handleSelection(nearestItem(to: indicatorFrame()))
307 | isDragging = false
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:307:17: error: setter for 'isDragging' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
299 | .onChanged { value in
:
305 | .onEnded { _ in
306 | handleSelection(nearestItem(to: indicatorFrame()))
307 | isDragging = false
| |- error: setter for 'isDragging' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
308 | gestureLocation = nil
309 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:308:17: error: setter for 'gestureLocation' is only available in macOS 10.15 or newer
292 | // MARK: - Gesture
293 |
294 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
295 |
296 | /// A gesture that tracks finger movement to reposition the selection indicator.
297 | var dragGesture: some Gesture {
| `- note: add '@available' attribute to enclosing property
298 | DragGesture(minimumDistance: 0, coordinateSpace: .named(coordinateSpaceName))
299 | .onChanged { value in
:
306 | handleSelection(nearestItem(to: indicatorFrame()))
307 | isDragging = false
308 | gestureLocation = nil
| |- error: setter for 'gestureLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
309 | }
310 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:320:13: error: setter for 'selected' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
| |- error: setter for 'selected' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
321 | action?(item)
322 | return
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:329:13: error: setter for 'selected' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
327 |
328 | let performSelection = {
329 | selected = item
| |- error: setter for 'selected' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
330 | action?(item)
331 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:334:13: error: 'withAnimation' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
332 |
333 | let stopMoving = {
334 | withAnimation(nil) { isIndicatorMoving = false }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
335 | }
336 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:334:34: error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
332 |
333 | let stopMoving = {
334 | withAnimation(nil) { isIndicatorMoving = false }
| |- error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
335 | }
336 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:339:13: error: setter for 'isSelectionIndicatorScaling' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
337 | switch (transitionAnimation, scaleEffect) {
338 | case let (transition?, scaleEffect?):
339 | isSelectionIndicatorScaling = true
| |- error: setter for 'isSelectionIndicatorScaling' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
340 | isIndicatorMoving = true
341 | withAnimation(transition) { performSelection() }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:340:13: error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
338 | case let (transition?, scaleEffect?):
339 | isSelectionIndicatorScaling = true
340 | isIndicatorMoving = true
| |- error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
341 | withAnimation(transition) { performSelection() }
342 | scheduleIndicatorReset(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:341:13: error: 'withAnimation' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
339 | isSelectionIndicatorScaling = true
340 | isIndicatorMoving = true
341 | withAnimation(transition) { performSelection() }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
342 | scheduleIndicatorReset(
343 | after: scaleEffect.duration,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:348:13: error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
346 |
347 | case (let transition?, nil):
348 | isIndicatorMoving = true
| |- error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
349 | withAnimation(transition) { performSelection() }
350 | let duration: Double
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:349:13: error: 'withAnimation' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
347 | case (let transition?, nil):
348 | isIndicatorMoving = true
349 | withAnimation(transition) { performSelection() }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
350 | let duration: Double
351 | if case .parameters(let params) = indicatorConfiguration.transitionAnimation {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:359:13: error: setter for 'isSelectionIndicatorScaling' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
357 |
358 | case (nil, let scaleEffect?):
359 | isSelectionIndicatorScaling = true
| |- error: setter for 'isSelectionIndicatorScaling' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 | isIndicatorMoving = true
361 | performSelection()
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:360:13: error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
313 | // MARK: - Actions
314 |
315 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
316 |
317 | /// Updates the selected item and triggers indicator transition and scale animations.
318 | func handleSelection(_ item: Item) {
| `- note: add '@available' attribute to enclosing instance method
319 | guard let indicatorConfiguration = configuration.indicator else {
320 | selected = item
:
358 | case (nil, let scaleEffect?):
359 | isSelectionIndicatorScaling = true
360 | isIndicatorMoving = true
| |- error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | performSelection()
362 | scheduleIndicatorReset(
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:333:13: warning: initialization of immutable value 'stopMoving' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
331 | }
332 |
333 | let stopMoving = {
| `- warning: initialization of immutable value 'stopMoving' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
334 | withAnimation(nil) { isIndicatorMoving = false }
335 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:475:9: error: 'Task' is only available in macOS 10.15 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
474 | ) {
475 | Task {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
476 | try? await Task.sleep(for: .seconds(duration))
477 | await MainActor.run {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:475:9: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
474 | ) {
475 | Task {
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
476 | try? await Task.sleep(for: .seconds(duration))
477 | await MainActor.run {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:476:24: error: 'Task' is only available in macOS 10.15 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
474 | ) {
475 | Task {
476 | try? await Task.sleep(for: .seconds(duration))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
477 | await MainActor.run {
478 | if let scaleEffect {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:476:29: error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
474 | ) {
475 | Task {
476 | try? await Task.sleep(for: .seconds(duration))
| |- error: 'sleep(for:tolerance:clock:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
477 | await MainActor.run {
478 | if let scaleEffect {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:476:41: error: 'seconds' is only available in macOS 13.0 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
474 | ) {
475 | Task {
476 | try? await Task.sleep(for: .seconds(duration))
| |- error: 'seconds' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
477 | await MainActor.run {
478 | if let scaleEffect {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:477:19: error: 'MainActor' is only available in macOS 10.15 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
:
475 | Task {
476 | try? await Task.sleep(for: .seconds(duration))
477 | await MainActor.run {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
478 | if let scaleEffect {
479 | withAnimation(scaleEffect.resolvedAnimation) { isSelectionIndicatorScaling = false }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:477:29: error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
:
475 | Task {
476 | try? await Task.sleep(for: .seconds(duration))
477 | await MainActor.run {
| |- error: 'run(resultType:body:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
478 | if let scaleEffect {
479 | withAnimation(scaleEffect.resolvedAnimation) { isSelectionIndicatorScaling = false }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:479:21: error: 'withAnimation' is only available in macOS 10.15 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
:
477 | await MainActor.run {
478 | if let scaleEffect {
479 | withAnimation(scaleEffect.resolvedAnimation) { isSelectionIndicatorScaling = false }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
480 | }
481 | withAnimation(nil) { isIndicatorMoving = false }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:479:68: error: setter for 'isSelectionIndicatorScaling' is only available in macOS 10.15 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
:
477 | await MainActor.run {
478 | if let scaleEffect {
479 | withAnimation(scaleEffect.resolvedAnimation) { isSelectionIndicatorScaling = false }
| |- error: setter for 'isSelectionIndicatorScaling' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
480 | }
481 | withAnimation(nil) { isIndicatorMoving = false }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:481:17: error: 'withAnimation' is only available in macOS 10.15 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
:
479 | withAnimation(scaleEffect.resolvedAnimation) { isSelectionIndicatorScaling = false }
480 | }
481 | withAnimation(nil) { isIndicatorMoving = false }
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
482 | }
483 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/BarView.swift:481:38: error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
373 | // MARK: - Helpers
374 |
375 | private extension BarView {
| `- note: add '@available' attribute to enclosing extension
376 |
377 | /// Computes the current offset of the selection indicator, accounting for drag position and layout axis.
:
469 |
470 | /// Schedules a reset of indicator animation states after a given duration.
471 | private func scheduleIndicatorReset(
| `- note: add '@available' attribute to enclosing instance method
472 | after duration: Double,
473 | scaleEffect: SelectionScaleEffect?
:
479 | withAnimation(scaleEffect.resolvedAnimation) { isSelectionIndicatorScaling = false }
480 | }
481 | withAnimation(nil) { isIndicatorMoving = false }
| |- error: setter for 'isIndicatorMoving' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
482 | }
483 | }
/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/FloatingTabBarView.swift:64:27: error: conformance of 'UserInterfaceSizeClass' to 'Equatable' 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 {
| `- note: add '@available' attribute to enclosing property
64 | verticalSizeClass == .compact ? floatingInsetsCompact ?? floatingInsets : floatingInsets
| |- error: conformance of 'UserInterfaceSizeClass' to 'Equatable' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | }
66 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:111:10: error: 'padding' 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 {
| `- note: add '@available' attribute to enclosing property
103 | BarView(
104 | items: items,
:
109 | action: action
110 | )
111 | .padding(.leading, activeInsets.leading)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | .padding(.trailing, activeInsets.trailing)
113 | .padding(.bottom, activeInsets.bottom)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:112:10: error: 'padding' 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 {
| `- note: add '@available' attribute to enclosing property
103 | BarView(
104 | items: items,
:
110 | )
111 | .padding(.leading, activeInsets.leading)
112 | .padding(.trailing, activeInsets.trailing)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | .padding(.bottom, activeInsets.bottom)
114 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/FloatingTabBarView.swift:113:10: error: 'padding' 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 {
| `- note: add '@available' attribute to enclosing property
103 | BarView(
104 | items: items,
:
111 | .padding(.leading, activeInsets.leading)
112 | .padding(.trailing, activeInsets.trailing)
113 | .padding(.bottom, activeInsets.bottom)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | }
115 | }
/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/BarViews/PinnedTabBarView.swift:57:33: error: 'clear' 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
:
50 |
51 | /// A derived configuration with pinned-specific overrides applied.
52 | private var pinnedconfiguration: BarConfiguration {
| `- note: add '@available' attribute to enclosing property
53 | BarConfiguration(
54 | axis: .horizontal,
55 | cornerRadius: 0,
56 | shadow: nil,
57 | background: .color(.clear),
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | itemStyles: configuration.itemStyles,
59 | itemAlignment: .end,
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:103:10: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' 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 {
| `- note: add '@available' attribute to enclosing property
95 | BarView(
96 | items: items,
:
101 | action: action
102 | )
103 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | .background {
105 | backgroundView
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:104:10: error: 'background(alignment:content:)' is only available in macOS 12.0 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 {
| `- note: add '@available' attribute to enclosing property
95 | BarView(
96 | items: items,
:
102 | )
103 | .frame(maxWidth: .infinity)
104 | .background {
| |- error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
105 | backgroundView
106 | .ignoresSafeArea(.all, edges: .bottom)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:106:18: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 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 {
| `- note: add '@available' attribute to enclosing property
95 | BarView(
96 | items: items,
:
104 | .background {
105 | backgroundView
106 | .ignoresSafeArea(.all, edges: .bottom)
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
107 | }
108 | .overlay(alignment: .top) {
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:108:10: error: 'overlay(alignment:content:)' is only available in macOS 12.0 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 {
| `- note: add '@available' attribute to enclosing property
95 | BarView(
96 | items: items,
:
106 | .ignoresSafeArea(.all, edges: .bottom)
107 | }
108 | .overlay(alignment: .top) {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
109 | Divider()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:108:30: error: 'top' 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 {
| `- note: add '@available' attribute to enclosing property
95 | BarView(
96 | items: items,
:
106 | .ignoresSafeArea(.all, edges: .bottom)
107 | }
108 | .overlay(alignment: .top) {
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | Divider()
110 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:109:13: error: 'Divider' 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 {
| `- note: add '@available' attribute to enclosing property
95 | BarView(
96 | items: items,
:
107 | }
108 | .overlay(alignment: .top) {
109 | Divider()
| |- error: 'Divider' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | }
111 | .ignoresSafeArea(.all, edges: .bottom)
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:111:10: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 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 {
| `- note: add '@available' attribute to enclosing property
95 | BarView(
96 | items: items,
:
109 | Divider()
110 | }
111 | .ignoresSafeArea(.all, edges: .bottom)
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
112 | }
113 |
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:121:13: error: conformance of 'Color' to '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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
121 | color
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | case let .material(material, tint):
123 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:121:13: error: conformance of 'Color' to '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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
121 | color
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | case let .material(material, tint):
123 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:121:13: error: 'buildEither(first:)' 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
121 | color
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | case let .material(material, tint):
123 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:121:13: error: 'buildEither(first:)' 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
121 | color
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | case let .material(material, tint):
123 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:123:13: error: 'Rectangle' 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
121 | color
122 | case let .material(material, tint):
123 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | .fill(material.resolved)
125 | .overlay { tint }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:124:18: error: 'fill(_:style:)' is only available in macOS 14.0 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
122 | case let .material(material, tint):
123 | Rectangle()
124 | .fill(material.resolved)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
125 | .overlay { tint }
126 | case let .customBlur(_, tint):
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:125:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
123 | Rectangle()
124 | .fill(material.resolved)
125 | .overlay { tint }
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
126 | case let .customBlur(_, tint):
127 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:125:28: error: conformance of 'Color' to '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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
123 | Rectangle()
124 | .fill(material.resolved)
125 | .overlay { tint }
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | case let .customBlur(_, tint):
127 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:125:26: error: conformance of 'Color' to '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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
123 | Rectangle()
124 | .fill(material.resolved)
125 | .overlay { tint }
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | case let .customBlur(_, tint):
127 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:123:13: error: 'buildEither(first:)' 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
121 | color
122 | case let .material(material, tint):
123 | Rectangle()
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | .fill(material.resolved)
125 | .overlay { tint }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:123:13: error: 'buildEither(second:)' 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
121 | color
122 | case let .material(material, tint):
123 | Rectangle()
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | .fill(material.resolved)
125 | .overlay { tint }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:127:13: error: 'Rectangle' 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
125 | .overlay { tint }
126 | case let .customBlur(_, tint):
127 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 | .fill(.clear)
129 | .overlay { tint }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:128:18: error: 'fill(_:style:)' is only available in macOS 14.0 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
126 | case let .customBlur(_, tint):
127 | Rectangle()
128 | .fill(.clear)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
129 | .overlay { tint }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:128:24: error: 'clear' 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
126 | case let .customBlur(_, tint):
127 | Rectangle()
128 | .fill(.clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
129 | .overlay { tint }
130 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:129:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
127 | Rectangle()
128 | .fill(.clear)
129 | .overlay { tint }
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:129:28: error: conformance of 'Color' to '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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
127 | Rectangle()
128 | .fill(.clear)
129 | .overlay { tint }
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:129:26: error: conformance of 'Color' to '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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
127 | Rectangle()
128 | .fill(.clear)
129 | .overlay { tint }
| |- error: conformance of 'Color' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:127:13: error: 'buildEither(second:)' 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 {
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
:
125 | .overlay { tint }
126 | case let .customBlur(_, tint):
127 | Rectangle()
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 | .fill(.clear)
129 | .overlay { tint }
/Users/admin/builder/spi-builder-workspace/Sources/BarKit/BarViews/PinnedTabBarView.swift:118:43: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to '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: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing property
119 | switch configuration.background {
120 | case let .color(color):
BUILD FAILURE 6.2 macosSpm