Build Information
Failed to build ETCarouSwift, reference 2.0.0 (98bdb6), with Swift 6.3 for macOS (SPM) on 18 Apr 2026 10:32:51 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
251 | items[idx].image
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:249:13: error: 'ForEach' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
247 | ) -> some View {
248 | HStack(spacing: 0) {
249 | ForEach(0..<totalPages, id: \.self) { p in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
250 | let idx = configuration.rideDirection.logicalIndex(page: p, count: count)
251 | items[idx].image
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:249:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
247 | ) -> some View {
248 | HStack(spacing: 0) {
249 | ForEach(0..<totalPages, id: \.self) { p in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
250 | let idx = configuration.rideDirection.logicalIndex(page: p, count: count)
251 | items[idx].image
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:252:22: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
250 | let idx = configuration.rideDirection.logicalIndex(page: p, count: count)
251 | items[idx].image
252 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
253 | .carouImageScale(configuration.imageScale)
254 | .frame(width: innerWidth, height: imageHeight)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:253:22: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
251 | items[idx].image
252 | .resizable()
253 | .carouImageScale(configuration.imageScale)
| |- warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
254 | .frame(width: innerWidth, height: imageHeight)
255 | .applyImageBorder(appearance: viewAppearance)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:254:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
252 | .resizable()
253 | .carouImageScale(configuration.imageScale)
254 | .frame(width: innerWidth, height: imageHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
255 | .applyImageBorder(appearance: viewAppearance)
256 | .clipped()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:256:22: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
254 | .frame(width: innerWidth, height: imageHeight)
255 | .applyImageBorder(appearance: viewAppearance)
256 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
257 | .contentShape(Rectangle())
258 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:257:22: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
255 | .applyImageBorder(appearance: viewAppearance)
256 | .clipped()
257 | .contentShape(Rectangle())
| |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
258 | .onTapGesture {
259 | handleTap(index: configuration.rideDirection.logicalIndex(page: p, count: count))
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:257:35: error: 'Rectangle' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
255 | .applyImageBorder(appearance: viewAppearance)
256 | .clipped()
257 | .contentShape(Rectangle())
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
258 | .onTapGesture {
259 | handleTap(index: configuration.rideDirection.logicalIndex(page: p, count: count))
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:258:22: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
256 | .clipped()
257 | .contentShape(Rectangle())
258 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
259 | handleTap(index: configuration.rideDirection.logicalIndex(page: p, count: count))
260 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:248:28: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
246 | imageHeight: CGFloat
247 | ) -> some View {
248 | HStack(spacing: 0) {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
249 | ForEach(0..<totalPages, id: \.self) { p in
250 | let idx = configuration.rideDirection.logicalIndex(page: p, count: count)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:263:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
261 | }
262 | }
263 | .frame(width: CGFloat(totalPages) * innerWidth, height: imageHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
264 | .fixedSize(horizontal: true, vertical: false)
265 | .offset(x: -scrollOffset * innerWidth + dragOffset)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:264:10: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
262 | }
263 | .frame(width: CGFloat(totalPages) * innerWidth, height: imageHeight)
264 | .fixedSize(horizontal: true, vertical: false)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
265 | .offset(x: -scrollOffset * innerWidth + dragOffset)
266 | .frame(width: innerWidth, height: imageHeight, alignment: .leading)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:265:10: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
263 | .frame(width: CGFloat(totalPages) * innerWidth, height: imageHeight)
264 | .fixedSize(horizontal: true, vertical: false)
265 | .offset(x: -scrollOffset * innerWidth + dragOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
266 | .frame(width: innerWidth, height: imageHeight, alignment: .leading)
267 | .clipped()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:266:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
264 | .fixedSize(horizontal: true, vertical: false)
265 | .offset(x: -scrollOffset * innerWidth + dragOffset)
266 | .frame(width: innerWidth, height: imageHeight, alignment: .leading)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
267 | .clipped()
268 | .transaction { t in
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:266:68: error: 'leading' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
264 | .fixedSize(horizontal: true, vertical: false)
265 | .offset(x: -scrollOffset * innerWidth + dragOffset)
266 | .frame(width: innerWidth, height: imageHeight, alignment: .leading)
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
267 | .clipped()
268 | .transaction { t in
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:267:10: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
265 | .offset(x: -scrollOffset * innerWidth + dragOffset)
266 | .frame(width: innerWidth, height: imageHeight, alignment: .leading)
267 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
268 | .transaction { t in
269 | if isUserInteracting { t.animation = nil; t.disablesAnimations = true }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:268:10: error: 'transaction' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
266 | .frame(width: innerWidth, height: imageHeight, alignment: .leading)
267 | .clipped()
268 | .transaction { t in
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
269 | if isUserInteracting { t.animation = nil; t.disablesAnimations = true }
270 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:269:38: error: 'animation' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
267 | .clipped()
268 | .transaction { t in
269 | if isUserInteracting { t.animation = nil; t.disablesAnimations = true }
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
270 | }
271 | .animation(.easeInOut(duration: CarouConstants.snapAnimationDuration), value: scrollOffset)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:269:57: error: 'disablesAnimations' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
267 | .clipped()
268 | .transaction { t in
269 | if isUserInteracting { t.animation = nil; t.disablesAnimations = true }
| |- error: 'disablesAnimations' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
270 | }
271 | .animation(.easeInOut(duration: CarouConstants.snapAnimationDuration), value: scrollOffset)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:271:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
269 | if isUserInteracting { t.animation = nil; t.disablesAnimations = true }
270 | }
271 | .animation(.easeInOut(duration: CarouConstants.snapAnimationDuration), value: scrollOffset)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 | .gesture(dragGesture(count: count, totalPages: totalPages, pageWidth: innerWidth))
273 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:271:21: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
269 | if isUserInteracting { t.animation = nil; t.disablesAnimations = true }
270 | }
271 | .animation(.easeInOut(duration: CarouConstants.snapAnimationDuration), value: scrollOffset)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 | .gesture(dragGesture(count: count, totalPages: totalPages, pageWidth: innerWidth))
273 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:272:10: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
240 | // MARK: - Image Strip
241 |
242 | private func imageStrip(
| `- note: add '@available' attribute to enclosing instance method
243 | count: Int,
244 | totalPages: Int,
:
270 | }
271 | .animation(.easeInOut(duration: CarouConstants.snapAnimationDuration), value: scrollOffset)
272 | .gesture(dragGesture(count: count, totalPages: totalPages, pageWidth: innerWidth))
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
273 | }
274 |
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:290:13: error: 'ZStack' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
288 |
289 | if isTextOverlay && isPageControlOverlay {
290 | ZStack(alignment: .bottom) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
291 | imageContent()
292 | .frame(height: imageHeight)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:290:32: error: 'bottom' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
288 |
289 | if isTextOverlay && isPageControlOverlay {
290 | ZStack(alignment: .bottom) {
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
291 | imageContent()
292 | .frame(height: imageHeight)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:292:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
290 | ZStack(alignment: .bottom) {
291 | imageContent()
292 | .frame(height: imageHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
293 |
294 | VStack(spacing: 8) {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:294:17: error: 'VStack' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
292 | .frame(height: imageHeight)
293 |
294 | VStack(spacing: 8) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
295 | textBlock()
296 | .background(overlayTextBackground)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:296:26: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
294 | VStack(spacing: 8) {
295 | textBlock()
296 | .background(overlayTextBackground)
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | pageControl()
298 | .frame(height: Self.pageControlRowHeight)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:298:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
296 | .background(overlayTextBackground)
297 | pageControl()
298 | .frame(height: Self.pageControlRowHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
299 | }
300 | .padding(.bottom, 12)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:300:18: error: 'padding' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
298 | .frame(height: Self.pageControlRowHeight)
299 | }
300 | .padding(.bottom, 12)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
301 | }
302 |
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:289:50: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
287 | let isPageControlOverlay = layout.pageControlPosition == .overlay
288 |
289 | if isTextOverlay && isPageControlOverlay {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | ZStack(alignment: .bottom) {
291 | imageContent()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:289:50: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
287 | let isPageControlOverlay = layout.pageControlPosition == .overlay
288 |
289 | if isTextOverlay && isPageControlOverlay {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
290 | ZStack(alignment: .bottom) {
291 | imageContent()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:304:13: error: 'VStack' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
302 |
303 | } else if isTextOverlay {
304 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | ZStack(alignment: .bottom) {
306 | imageContent()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:305:17: error: 'ZStack' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
303 | } else if isTextOverlay {
304 | VStack(spacing: 0) {
305 | ZStack(alignment: .bottom) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
306 | imageContent()
307 | .frame(height: imageHeight)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:305:36: error: 'bottom' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
303 | } else if isTextOverlay {
304 | VStack(spacing: 0) {
305 | ZStack(alignment: .bottom) {
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
306 | imageContent()
307 | .frame(height: imageHeight)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:307:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
305 | ZStack(alignment: .bottom) {
306 | imageContent()
307 | .frame(height: imageHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
308 |
309 | textBlock()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:310:26: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
308 |
309 | textBlock()
310 | .background(overlayTextBackground)
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
311 | .padding(.bottom, 8)
312 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:311:26: error: 'padding' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
309 | textBlock()
310 | .background(overlayTextBackground)
311 | .padding(.bottom, 8)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
312 | }
313 |
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:315:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
313 |
314 | pageControl()
315 | .frame(height: Self.pageControlRowHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
316 | .padding(.top, 4)
317 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:316:22: error: 'padding' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
314 | pageControl()
315 | .frame(height: Self.pageControlRowHeight)
316 | .padding(.top, 4)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
317 | }
318 |
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:303:33: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
301 | }
302 |
303 | } else if isTextOverlay {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
304 | VStack(spacing: 0) {
305 | ZStack(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:303:33: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
301 | }
302 |
303 | } else if isTextOverlay {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
304 | VStack(spacing: 0) {
305 | ZStack(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:320:13: error: 'VStack' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
318 |
319 | } else if isPageControlOverlay {
320 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
321 | ZStack(alignment: .bottom) {
322 | imageContent()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:321:17: error: 'ZStack' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
319 | } else if isPageControlOverlay {
320 | VStack(spacing: 0) {
321 | ZStack(alignment: .bottom) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
322 | imageContent()
323 | .frame(height: imageHeight)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:321:36: error: 'bottom' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
319 | } else if isPageControlOverlay {
320 | VStack(spacing: 0) {
321 | ZStack(alignment: .bottom) {
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
322 | imageContent()
323 | .frame(height: imageHeight)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:323:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
321 | ZStack(alignment: .bottom) {
322 | imageContent()
323 | .frame(height: imageHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
324 |
325 | pageControl()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:326:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
324 |
325 | pageControl()
326 | .frame(height: Self.pageControlRowHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
327 | .padding(.bottom, 8)
328 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:327:26: error: 'padding' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
325 | pageControl()
326 | .frame(height: Self.pageControlRowHeight)
327 | .padding(.bottom, 8)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
328 | }
329 |
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:319:40: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
317 | }
318 |
319 | } else if isPageControlOverlay {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
320 | VStack(spacing: 0) {
321 | ZStack(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:319:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
317 | }
318 |
319 | } else if isPageControlOverlay {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
320 | VStack(spacing: 0) {
321 | ZStack(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:334:13: error: 'VStack' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
332 |
333 | } else {
334 | VStack(spacing: 0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
335 | imageContent()
336 | .frame(height: imageHeight)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:336:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
334 | VStack(spacing: 0) {
335 | imageContent()
336 | .frame(height: imageHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
337 |
338 | pageControl()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:339:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
337 |
338 | pageControl()
339 | .frame(height: Self.pageControlRowHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
340 | .padding(.top, 4)
341 |
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:340:22: error: 'padding' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
338 | pageControl()
339 | .frame(height: Self.pageControlRowHeight)
340 | .padding(.top, 4)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
341 |
342 | textBlock()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:343:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
341 |
342 | textBlock()
343 | .frame(height: Self.textBlockHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
344 | }
345 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:333:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
331 | }
332 |
333 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
334 | VStack(spacing: 0) {
335 | imageContent()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:333:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
331 | }
332 |
333 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
334 | VStack(spacing: 0) {
335 | imageContent()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:285:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
276 |
277 | @ViewBuilder
278 | private func contentLayout<ImageContent: View, PageControlContent: View, TextContent: View>(
| `- note: add '@available' attribute to enclosing instance method
279 | imageContent: () -> ImageContent,
280 | pageControl: () -> PageControlContent,
:
283 | innerWidth: CGFloat,
284 | innerHeight: CGFloat
285 | ) -> some View {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
286 | let isTextOverlay = layout.textPosition == .overlay
287 | let isPageControlOverlay = layout.pageControlPosition == .overlay
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:360:13: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
358 | let shape = RoundedRectangle(cornerRadius: max(0, cornerRadius))
359 |
360 | let base = ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
361 | shape.fill(viewAppearance.backgroundColor)
362 | content()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:360:13: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
358 | let shape = RoundedRectangle(cornerRadius: max(0, cornerRadius))
359 |
360 | let base = ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
361 | shape.fill(viewAppearance.backgroundColor)
362 | content()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:358:21: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
356 | let borderColor = viewAppearance.backgroundBorderColor
357 | let shadow = viewAppearance.backgroundShadow
358 | let shape = RoundedRectangle(cornerRadius: max(0, cornerRadius))
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
359 |
360 | let base = ZStack {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:360:20: error: 'ZStack' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
358 | let shape = RoundedRectangle(cornerRadius: max(0, cornerRadius))
359 |
360 | let base = ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
361 | shape.fill(viewAppearance.backgroundColor)
362 | content()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:360:27: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
358 | let shape = RoundedRectangle(cornerRadius: max(0, cornerRadius))
359 |
360 | let base = ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
361 | shape.fill(viewAppearance.backgroundColor)
362 | content()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:360:27: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
358 | let shape = RoundedRectangle(cornerRadius: max(0, cornerRadius))
359 |
360 | let base = ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
361 | shape.fill(viewAppearance.backgroundColor)
362 | content()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:361:13: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
359 |
360 | let base = ZStack {
361 | shape.fill(viewAppearance.backgroundColor)
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
362 | content()
363 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:361:19: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
359 |
360 | let base = ZStack {
361 | shape.fill(viewAppearance.backgroundColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
362 | content()
363 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:360:27: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
358 | let shape = RoundedRectangle(cornerRadius: max(0, cornerRadius))
359 |
360 | let base = ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
361 | shape.fill(viewAppearance.backgroundColor)
362 | content()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:364:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
362 | content()
363 | }
364 | .frame(width: pageWidth, height: height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
365 |
366 | if isFullOverlay {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:366:26: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
364 | .frame(width: pageWidth, height: height)
365 |
366 | if isFullOverlay {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
367 | base
368 | } else if cornerRadius > 0 {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:366:26: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
364 | .frame(width: pageWidth, height: height)
365 |
366 | if isFullOverlay {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
367 | base
368 | } else if cornerRadius > 0 {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:370:18: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
368 | } else if cornerRadius > 0 {
369 | base
370 | .clipShape(shape)
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
371 | .overlay(shape.stroke(borderColor, lineWidth: borderWidth))
372 | .applyCardShadow(shadow)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:371:18: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
369 | base
370 | .clipShape(shape)
371 | .overlay(shape.stroke(borderColor, lineWidth: borderWidth))
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
372 | .applyCardShadow(shadow)
373 | } else {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:371:32: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
369 | base
370 | .clipShape(shape)
371 | .overlay(shape.stroke(borderColor, lineWidth: borderWidth))
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
372 | .applyCardShadow(shadow)
373 | } else {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:368:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
366 | if isFullOverlay {
367 | base
368 | } else if cornerRadius > 0 {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | base
370 | .clipShape(shape)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:368:36: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
366 | if isFullOverlay {
367 | base
368 | } else if cornerRadius > 0 {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | base
370 | .clipShape(shape)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:375:18: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
373 | } else {
374 | base
375 | .overlay(Rectangle().stroke(borderColor, lineWidth: borderWidth))
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
376 | .applyCardShadow(shadow)
377 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:375:26: error: 'Rectangle' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
373 | } else {
374 | base
375 | .overlay(Rectangle().stroke(borderColor, lineWidth: borderWidth))
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
376 | .applyCardShadow(shadow)
377 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:375:38: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
373 | } else {
374 | base
375 | .overlay(Rectangle().stroke(borderColor, lineWidth: borderWidth))
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
376 | .applyCardShadow(shadow)
377 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:373:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
:
371 | .overlay(shape.stroke(borderColor, lineWidth: borderWidth))
372 | .applyCardShadow(shadow)
373 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
374 | base
375 | .overlay(Rectangle().stroke(borderColor, lineWidth: borderWidth))
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:353:132: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
351 | /// When in full overlay layout, card styling is skipped; background only.
352 | @ViewBuilder
353 | private func cardWrapper<Content: View>(pageWidth: CGFloat, height: CGFloat, @ViewBuilder content: () -> Content) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
354 | let cornerRadius = viewAppearance.backgroundCornerRadius
355 | let borderWidth = viewAppearance.backgroundBorderWidth
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:383:9: error: 'LinearGradient' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
380 | // MARK: - Overlay Text Background
381 |
382 | private var overlayTextBackground: some View {
| `- note: add '@available' attribute to enclosing property
383 | LinearGradient(
| |- error: 'LinearGradient' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
384 | colors: [Color.black.opacity(0.0), Color.black.opacity(0.6)],
385 | startPoint: .top,
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:384:22: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
380 | // MARK: - Overlay Text Background
381 |
382 | private var overlayTextBackground: some View {
| `- note: add '@available' attribute to enclosing property
383 | LinearGradient(
384 | colors: [Color.black.opacity(0.0), Color.black.opacity(0.6)],
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | startPoint: .top,
386 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:384:28: error: 'black' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
380 | // MARK: - Overlay Text Background
381 |
382 | private var overlayTextBackground: some View {
| `- note: add '@available' attribute to enclosing property
383 | LinearGradient(
384 | colors: [Color.black.opacity(0.0), Color.black.opacity(0.6)],
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | startPoint: .top,
386 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:384:34: error: 'opacity' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
380 | // MARK: - Overlay Text Background
381 |
382 | private var overlayTextBackground: some View {
| `- note: add '@available' attribute to enclosing property
383 | LinearGradient(
384 | colors: [Color.black.opacity(0.0), Color.black.opacity(0.6)],
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | startPoint: .top,
386 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:384:48: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
380 | // MARK: - Overlay Text Background
381 |
382 | private var overlayTextBackground: some View {
| `- note: add '@available' attribute to enclosing property
383 | LinearGradient(
384 | colors: [Color.black.opacity(0.0), Color.black.opacity(0.6)],
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | startPoint: .top,
386 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:384:54: error: 'black' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
380 | // MARK: - Overlay Text Background
381 |
382 | private var overlayTextBackground: some View {
| `- note: add '@available' attribute to enclosing property
383 | LinearGradient(
384 | colors: [Color.black.opacity(0.0), Color.black.opacity(0.6)],
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | startPoint: .top,
386 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:384:60: error: 'opacity' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
380 | // MARK: - Overlay Text Background
381 |
382 | private var overlayTextBackground: some View {
| `- note: add '@available' attribute to enclosing property
383 | LinearGradient(
384 | colors: [Color.black.opacity(0.0), Color.black.opacity(0.6)],
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
385 | startPoint: .top,
386 | endPoint: .bottom
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:405:14: warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
403 | }
404 | }
405 | .onEnded { value in
| |- warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
406 | isUserInteracting = false
407 | let effective = scrollOffset - dragOffset / pageWidth
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:393:9: error: 'DragGesture' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
394 | .onChanged { value in
395 | isUserInteracting = true
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:393:9: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
394 | .onChanged { value in
395 | isUserInteracting = true
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:394:14: error: 'onChanged' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
395 | isUserInteracting = true
396 | stopAutoRide()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:395:17: error: setter for 'isUserInteracting' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
395 | isUserInteracting = true
| |- error: setter for 'isUserInteracting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
396 | stopAutoRide()
397 | var t = Transaction()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:397:25: error: 'Transaction' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
395 | isUserInteracting = true
396 | stopAutoRide()
397 | var t = Transaction()
| |- error: 'Transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
398 | t.disablesAnimations = true
399 | withTransaction(t) {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:398:19: error: 'disablesAnimations' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
396 | stopAutoRide()
397 | var t = Transaction()
398 | t.disablesAnimations = true
| |- error: 'disablesAnimations' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
399 | withTransaction(t) {
400 | dragOffset = value.translation.width
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:399:17: error: 'withTransaction' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
397 | var t = Transaction()
398 | t.disablesAnimations = true
399 | withTransaction(t) {
| |- error: 'withTransaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
400 | dragOffset = value.translation.width
401 | lastDragTranslation = value.translation.width
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:400:21: error: setter for 'dragOffset' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
398 | t.disablesAnimations = true
399 | withTransaction(t) {
400 | dragOffset = value.translation.width
| |- error: setter for 'dragOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | lastDragTranslation = value.translation.width
402 | lastDragTime = Date().timeIntervalSince1970
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:401:21: error: setter for 'lastDragTranslation' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
399 | withTransaction(t) {
400 | dragOffset = value.translation.width
401 | lastDragTranslation = value.translation.width
| |- error: setter for 'lastDragTranslation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
402 | lastDragTime = Date().timeIntervalSince1970
403 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:402:21: error: setter for 'lastDragTime' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
400 | dragOffset = value.translation.width
401 | lastDragTranslation = value.translation.width
402 | lastDragTime = Date().timeIntervalSince1970
| |- error: setter for 'lastDragTime' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
403 | }
404 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:405:14: error: 'onEnded' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
403 | }
404 | }
405 | .onEnded { value in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
406 | isUserInteracting = false
407 | let effective = scrollOffset - dragOffset / pageWidth
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:406:17: error: setter for 'isUserInteracting' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
404 | }
405 | .onEnded { value in
406 | isUserInteracting = false
| |- error: setter for 'isUserInteracting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | let effective = scrollOffset - dragOffset / pageWidth
408 | let dt = max(0.001, Date().timeIntervalSince1970 - lastDragTime)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:417:29: error: 'Transaction' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
415 | let scrollPage = CarouScrollLogic.scrollPage(fromSnap: snapPage, totalPages: totalPages, contentCount: count)
416 | if isWraparound {
417 | var t = Transaction()
| |- error: 'Transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | t.disablesAnimations = true
419 | withTransaction(t) {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:418:23: error: 'disablesAnimations' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
416 | if isWraparound {
417 | var t = Transaction()
418 | t.disablesAnimations = true
| |- error: 'disablesAnimations' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
419 | withTransaction(t) {
420 | scrollOffset = CGFloat(scrollPage)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:419:21: error: 'withTransaction' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
417 | var t = Transaction()
418 | t.disablesAnimations = true
419 | withTransaction(t) {
| |- error: 'withTransaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
420 | scrollOffset = CGFloat(scrollPage)
421 | dragOffset = 0
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:420:25: error: setter for 'scrollOffset' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
418 | t.disablesAnimations = true
419 | withTransaction(t) {
420 | scrollOffset = CGFloat(scrollPage)
| |- error: setter for 'scrollOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
421 | dragOffset = 0
422 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:421:25: error: setter for 'dragOffset' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
419 | withTransaction(t) {
420 | scrollOffset = CGFloat(scrollPage)
421 | dragOffset = 0
| |- error: setter for 'dragOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
422 | }
423 | } else {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:424:21: error: 'withAnimation' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
422 | }
423 | } else {
424 | withAnimation(.easeInOut(duration: CarouConstants.snapAnimationDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
425 | scrollOffset = CGFloat(scrollPage)
426 | dragOffset = 0
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:424:36: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
422 | }
423 | } else {
424 | withAnimation(.easeInOut(duration: CarouConstants.snapAnimationDuration)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
425 | scrollOffset = CGFloat(scrollPage)
426 | dragOffset = 0
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:425:25: error: setter for 'scrollOffset' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
423 | } else {
424 | withAnimation(.easeInOut(duration: CarouConstants.snapAnimationDuration)) {
425 | scrollOffset = CGFloat(scrollPage)
| |- error: setter for 'scrollOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
426 | dragOffset = 0
427 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:426:25: error: setter for 'dragOffset' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
390 | // MARK: - Drag Gesture
391 |
392 | private func dragGesture(count: Int, totalPages: Int, pageWidth: CGFloat) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
393 | DragGesture(minimumDistance: 0)
394 | .onChanged { value in
:
424 | withAnimation(.easeInOut(duration: CarouConstants.snapAnimationDuration)) {
425 | scrollOffset = CGFloat(scrollPage)
426 | dragOffset = 0
| |- error: setter for 'dragOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
427 | }
428 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:436:13: error: cannot pass as inout because setter for 'autoRidePausedByTap' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
432 | }
433 |
434 | private func handleTap(index: Int) {
| `- note: add '@available' attribute to enclosing instance method
435 | if configuration.autoRideEnabled && configuration.tapPausesAutoRide && items.count > 1 {
436 | autoRidePausedByTap.toggle()
| |- error: cannot pass as inout because setter for 'autoRidePausedByTap' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
437 | if autoRidePausedByTap {
438 | stopAutoRide()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:470:32: error: 'leading' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
466 | }
467 |
468 | private var textHorizontalAlignment: HorizontalAlignment {
| `- note: add '@available' attribute to enclosing property
469 | switch configuration.enrichedAppearance.view.textAlignment {
470 | case .leading: return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
471 | case .center: return .center
472 | case .trailing: return .trailing
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:471:31: error: 'center' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
466 | }
467 |
468 | private var textHorizontalAlignment: HorizontalAlignment {
| `- note: add '@available' attribute to enclosing property
469 | switch configuration.enrichedAppearance.view.textAlignment {
470 | case .leading: return .leading
471 | case .center: return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
472 | case .trailing: return .trailing
473 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:472:33: error: 'trailing' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
466 | }
467 |
468 | private var textHorizontalAlignment: HorizontalAlignment {
| `- note: add '@available' attribute to enclosing property
469 | switch configuration.enrichedAppearance.view.textAlignment {
470 | case .leading: return .leading
471 | case .center: return .center
472 | case .trailing: return .trailing
| |- error: 'trailing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
473 | }
474 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:478:32: error: 'leading' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
474 | }
475 |
476 | private var textFrameAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
477 | switch configuration.enrichedAppearance.view.textAlignment {
478 | case .leading: return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
479 | case .center: return .center
480 | case .trailing: return .trailing
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:479:31: error: 'center' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
474 | }
475 |
476 | private var textFrameAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
477 | switch configuration.enrichedAppearance.view.textAlignment {
478 | case .leading: return .leading
479 | case .center: return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
480 | case .trailing: return .trailing
481 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:480:33: error: 'trailing' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
474 | }
475 |
476 | private var textFrameAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
477 | switch configuration.enrichedAppearance.view.textAlignment {
478 | case .leading: return .leading
479 | case .center: return .center
480 | case .trailing: return .trailing
| |- error: 'trailing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
481 | }
482 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:487:16: error: 'VStack' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
487 | return VStack(alignment: textHorizontalAlignment, spacing: 4) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
488 | if let title = item.title, !title.isEmpty {
489 | Text(title)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:489:17: error: 'Text' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
487 | return VStack(alignment: textHorizontalAlignment, spacing: 4) {
488 | if let title = item.title, !title.isEmpty {
489 | Text(title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
490 | .font(titleFont)
491 | .foregroundColor(viewAppearance.titleColor)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:490:22: error: 'font' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
488 | if let title = item.title, !title.isEmpty {
489 | Text(title)
490 | .font(titleFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
491 | .foregroundColor(viewAppearance.titleColor)
492 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:491:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
489 | Text(title)
490 | .font(titleFont)
491 | .foregroundColor(viewAppearance.titleColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
492 | .lineLimit(1)
493 | .truncationMode(.tail)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:492:22: error: 'lineLimit' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
490 | .font(titleFont)
491 | .foregroundColor(viewAppearance.titleColor)
492 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
493 | .truncationMode(.tail)
494 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:493:22: error: 'truncationMode' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
491 | .foregroundColor(viewAppearance.titleColor)
492 | .lineLimit(1)
493 | .truncationMode(.tail)
| |- error: 'truncationMode' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
494 | }
495 | if let desc = item.description, !desc.isEmpty {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:488:55: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
487 | return VStack(alignment: textHorizontalAlignment, spacing: 4) {
488 | if let title = item.title, !title.isEmpty {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
489 | Text(title)
490 | .font(titleFont)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:494:13: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
492 | .lineLimit(1)
493 | .truncationMode(.tail)
494 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
495 | if let desc = item.description, !desc.isEmpty {
496 | Text(desc)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:496:17: error: 'Text' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
494 | }
495 | if let desc = item.description, !desc.isEmpty {
496 | Text(desc)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
497 | .font(descriptionFont)
498 | .foregroundColor(viewAppearance.descriptionColor)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:497:22: error: 'font' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
495 | if let desc = item.description, !desc.isEmpty {
496 | Text(desc)
497 | .font(descriptionFont)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
498 | .foregroundColor(viewAppearance.descriptionColor)
499 | .lineLimit(2)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:498:22: error: 'foregroundColor' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
496 | Text(desc)
497 | .font(descriptionFont)
498 | .foregroundColor(viewAppearance.descriptionColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
499 | .lineLimit(2)
500 | .truncationMode(.tail)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:499:22: error: 'lineLimit' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
497 | .font(descriptionFont)
498 | .foregroundColor(viewAppearance.descriptionColor)
499 | .lineLimit(2)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
500 | .truncationMode(.tail)
501 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:500:22: error: 'truncationMode' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
498 | .foregroundColor(viewAppearance.descriptionColor)
499 | .lineLimit(2)
500 | .truncationMode(.tail)
| |- error: 'truncationMode' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
501 | }
502 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:495:59: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
493 | .truncationMode(.tail)
494 | }
495 | if let desc = item.description, !desc.isEmpty {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
496 | Text(desc)
497 | .font(descriptionFont)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:501:13: error: 'buildIf' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
499 | .lineLimit(2)
500 | .truncationMode(.tail)
501 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
502 | }
503 | .frame(maxWidth: .infinity, alignment: textFrameAlignment)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:487:71: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
487 | return VStack(alignment: textHorizontalAlignment, spacing: 4) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
488 | if let title = item.title, !title.isEmpty {
489 | Text(title)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:487:71: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
487 | return VStack(alignment: textHorizontalAlignment, spacing: 4) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
488 | if let title = item.title, !title.isEmpty {
489 | Text(title)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:503:10: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
501 | }
502 | }
503 | .frame(maxWidth: .infinity, alignment: textFrameAlignment)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
504 | .padding(.horizontal, 12)
505 | .padding(.vertical, 8)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:504:10: error: 'padding' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
502 | }
503 | .frame(maxWidth: .infinity, alignment: textFrameAlignment)
504 | .padding(.horizontal, 12)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
505 | .padding(.vertical, 8)
506 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:505:10: error: 'padding' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
482 | }
483 |
484 | private func titleDescriptionBlock(item: CarouItem, pageWidth: CGFloat) -> some View {
| `- note: add '@available' attribute to enclosing instance method
485 | let viewAppearance = configuration.enrichedAppearance.view
486 |
:
503 | .frame(maxWidth: .infinity, alignment: textFrameAlignment)
504 | .padding(.horizontal, 12)
505 | .padding(.vertical, 8)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
506 | }
507 |
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:515:9: error: setter for 'autoRideTask' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
513 | let showTime = configuration.showTime
514 | let isRTL = direction == .rightToLeft
515 | autoRideTask = Task { @MainActor in
| |- error: setter for 'autoRideTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
516 | while !Task.isCancelled {
517 | try? await Task.sleep(nanoseconds: UInt64(showTime * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:515:24: error: 'Task' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
513 | let showTime = configuration.showTime
514 | let isRTL = direction == .rightToLeft
515 | autoRideTask = Task { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
516 | while !Task.isCancelled {
517 | try? await Task.sleep(nanoseconds: UInt64(showTime * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:515:24: error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
513 | let showTime = configuration.showTime
514 | let isRTL = direction == .rightToLeft
515 | autoRideTask = Task { @MainActor in
| |- error: 'init(name:priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
516 | while !Task.isCancelled {
517 | try? await Task.sleep(nanoseconds: UInt64(showTime * 1_000_000_000))
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:516:20: error: 'Task' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
514 | let isRTL = direction == .rightToLeft
515 | autoRideTask = Task { @MainActor in
516 | while !Task.isCancelled {
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
517 | try? await Task.sleep(nanoseconds: UInt64(showTime * 1_000_000_000))
518 | guard !Task.isCancelled, !isUserInteracting else { return }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:516:25: error: 'isCancelled' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
514 | let isRTL = direction == .rightToLeft
515 | autoRideTask = Task { @MainActor in
516 | while !Task.isCancelled {
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
517 | try? await Task.sleep(nanoseconds: UInt64(showTime * 1_000_000_000))
518 | guard !Task.isCancelled, !isUserInteracting else { return }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:517:28: error: 'Task' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
515 | autoRideTask = Task { @MainActor in
516 | while !Task.isCancelled {
517 | try? await Task.sleep(nanoseconds: UInt64(showTime * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
518 | guard !Task.isCancelled, !isUserInteracting else { return }
519 | let currentPage = Int(round(scrollOffset))
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:517:33: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
515 | autoRideTask = Task { @MainActor in
516 | while !Task.isCancelled {
517 | try? await Task.sleep(nanoseconds: UInt64(showTime * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
518 | guard !Task.isCancelled, !isUserInteracting else { return }
519 | let currentPage = Int(round(scrollOffset))
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:518:24: error: 'Task' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
516 | while !Task.isCancelled {
517 | try? await Task.sleep(nanoseconds: UInt64(showTime * 1_000_000_000))
518 | guard !Task.isCancelled, !isUserInteracting else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
519 | let currentPage = Int(round(scrollOffset))
520 | let nextPage: Int
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:518:29: error: 'isCancelled' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
516 | while !Task.isCancelled {
517 | try? await Task.sleep(nanoseconds: UInt64(showTime * 1_000_000_000))
518 | guard !Task.isCancelled, !isUserInteracting else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
519 | let currentPage = Int(round(scrollOffset))
520 | let nextPage: Int
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:526:17: error: 'withAnimation' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
524 | nextPage = (currentPage + 1) % totalPages
525 | }
526 | withAnimation(.easeInOut(duration: CarouConstants.autoRideStepDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
527 | scrollOffset = CGFloat(nextPage)
528 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:526:32: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
524 | nextPage = (currentPage + 1) % totalPages
525 | }
526 | withAnimation(.easeInOut(duration: CarouConstants.autoRideStepDuration)) {
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
527 | scrollOffset = CGFloat(nextPage)
528 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:527:21: error: setter for 'scrollOffset' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
525 | }
526 | withAnimation(.easeInOut(duration: CarouConstants.autoRideStepDuration)) {
527 | scrollOffset = CGFloat(nextPage)
| |- error: setter for 'scrollOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
528 | }
529 | if nextPage >= 1 && nextPage <= count {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:532:32: error: 'Task' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
530 | onItemChanged?(direction.logicalIndex(page: nextPage, count: count))
531 | } else {
532 | try? await Task.sleep(nanoseconds: UInt64(CarouConstants.autoRideStepDuration * 1_000_000_000))
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
533 | guard !Task.isCancelled else { return }
534 | let targetPage = (nextPage == 0 ? count : 1)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:532:37: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
530 | onItemChanged?(direction.logicalIndex(page: nextPage, count: count))
531 | } else {
532 | try? await Task.sleep(nanoseconds: UInt64(CarouConstants.autoRideStepDuration * 1_000_000_000))
| |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
533 | guard !Task.isCancelled else { return }
534 | let targetPage = (nextPage == 0 ? count : 1)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:533:28: error: 'Task' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
531 | } else {
532 | try? await Task.sleep(nanoseconds: UInt64(CarouConstants.autoRideStepDuration * 1_000_000_000))
533 | guard !Task.isCancelled else { return }
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
534 | let targetPage = (nextPage == 0 ? count : 1)
535 | var t = Transaction()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:533:33: error: 'isCancelled' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
531 | } else {
532 | try? await Task.sleep(nanoseconds: UInt64(CarouConstants.autoRideStepDuration * 1_000_000_000))
533 | guard !Task.isCancelled else { return }
| |- error: 'isCancelled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
534 | let targetPage = (nextPage == 0 ? count : 1)
535 | var t = Transaction()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:535:29: error: 'Transaction' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
533 | guard !Task.isCancelled else { return }
534 | let targetPage = (nextPage == 0 ? count : 1)
535 | var t = Transaction()
| |- error: 'Transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
536 | t.disablesAnimations = true
537 | withTransaction(t) { scrollOffset = CGFloat(targetPage) }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:536:23: error: 'disablesAnimations' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
534 | let targetPage = (nextPage == 0 ? count : 1)
535 | var t = Transaction()
536 | t.disablesAnimations = true
| |- error: 'disablesAnimations' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
537 | withTransaction(t) { scrollOffset = CGFloat(targetPage) }
538 | onItemChanged?(direction.logicalIndex(page: targetPage, count: count))
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:537:21: error: 'withTransaction' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
535 | var t = Transaction()
536 | t.disablesAnimations = true
537 | withTransaction(t) { scrollOffset = CGFloat(targetPage) }
| |- error: 'withTransaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
538 | onItemChanged?(direction.logicalIndex(page: targetPage, count: count))
539 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:537:42: error: setter for 'scrollOffset' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
506 | }
507 |
508 | private func startAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
509 | stopAutoRide()
510 | let count = items.count
:
535 | var t = Transaction()
536 | t.disablesAnimations = true
537 | withTransaction(t) { scrollOffset = CGFloat(targetPage) }
| |- error: setter for 'scrollOffset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
538 | onItemChanged?(direction.logicalIndex(page: targetPage, count: count))
539 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:545:23: error: 'cancel()' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
542 | }
543 |
544 | private func stopAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
545 | autoRideTask?.cancel()
| |- error: 'cancel()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
546 | autoRideTask = nil
547 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:546:9: error: setter for 'autoRideTask' is only available in macOS 10.15 or newer
10 |
11 | /// Internal: carousel of CarouItems with configurable layout (overlay/stacked) and card-like appearance.
12 | struct EnrichedCarouView: View {
| `- note: add '@available' attribute to enclosing struct
13 | @State private var scrollOffset: CGFloat = 1
14 | @State private var dragOffset: CGFloat = 0
:
542 | }
543 |
544 | private func stopAutoRide() {
| `- note: add '@available' attribute to enclosing instance method
545 | autoRideTask?.cancel()
546 | autoRideTask = nil
| |- error: setter for 'autoRideTask' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
547 | }
548 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:557:18: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
555 | func applyImageBorder(appearance: EnrichedCarouViewAppearance) -> some View {
| `- note: add '@available' attribute to enclosing instance method
556 | if appearance.imageBorderWidth > 0 {
557 | self.overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
558 | Rectangle()
559 | .stroke(appearance.imageBorderColor, lineWidth: appearance.imageBorderWidth)
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:558:17: error: 'Rectangle' is only available in macOS 10.15 or newer
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
555 | func applyImageBorder(appearance: EnrichedCarouViewAppearance) -> some View {
| `- note: add '@available' attribute to enclosing instance method
556 | if appearance.imageBorderWidth > 0 {
557 | self.overlay(
558 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
559 | .stroke(appearance.imageBorderColor, lineWidth: appearance.imageBorderWidth)
560 | )
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:559:22: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
555 | func applyImageBorder(appearance: EnrichedCarouViewAppearance) -> some View {
| `- note: add '@available' attribute to enclosing instance method
556 | if appearance.imageBorderWidth > 0 {
557 | self.overlay(
558 | Rectangle()
559 | .stroke(appearance.imageBorderColor, lineWidth: appearance.imageBorderWidth)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
560 | )
561 | } else {
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:556:44: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
555 | func applyImageBorder(appearance: EnrichedCarouViewAppearance) -> some View {
| `- note: add '@available' attribute to enclosing instance method
556 | if appearance.imageBorderWidth > 0 {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
557 | self.overlay(
558 | Rectangle()
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:561:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
555 | func applyImageBorder(appearance: EnrichedCarouViewAppearance) -> some View {
| `- note: add '@available' attribute to enclosing instance method
556 | if appearance.imageBorderWidth > 0 {
557 | self.overlay(
:
559 | .stroke(appearance.imageBorderColor, lineWidth: appearance.imageBorderWidth)
560 | )
561 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
562 | self
563 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:555:81: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
555 | func applyImageBorder(appearance: EnrichedCarouViewAppearance) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
556 | if appearance.imageBorderWidth > 0 {
557 | self.overlay(
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:570:18: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
:
566 | /// Applies card shadow based on shadow settings.
567 | @ViewBuilder
568 | func applyCardShadow(_ shadow: CarouShadow?) -> some View {
| `- note: add '@available' attribute to enclosing instance method
569 | if let shadow = shadow {
570 | self.shadow(
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
571 | color: shadow.color,
572 | radius: shadow.radius,
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:569:32: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
:
566 | /// Applies card shadow based on shadow settings.
567 | @ViewBuilder
568 | func applyCardShadow(_ shadow: CarouShadow?) -> some View {
| `- note: add '@available' attribute to enclosing instance method
569 | if let shadow = shadow {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
570 | self.shadow(
571 | color: shadow.color,
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:576:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
:
566 | /// Applies card shadow based on shadow settings.
567 | @ViewBuilder
568 | func applyCardShadow(_ shadow: CarouShadow?) -> some View {
| `- note: add '@available' attribute to enclosing instance method
569 | if let shadow = shadow {
570 | self.shadow(
:
574 | y: shadow.y
575 | )
576 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
577 | self
578 | }
/Users/admin/builder/spi-builder-workspace/ETCarouSwift/EnrichedCarouView.swift:568:63: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
550 | // MARK: - View Extensions for Card Appearance
551 |
552 | private extension View {
| `- note: add '@available' attribute to enclosing extension
553 | /// Applies image border based on appearance settings.
554 | @ViewBuilder
:
566 | /// Applies card shadow based on shadow settings.
567 | @ViewBuilder
568 | func applyCardShadow(_ shadow: CarouShadow?) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add '@available' attribute to enclosing instance method
569 | if let shadow = shadow {
570 | self.shadow(
BUILD FAILURE 6.3 macosSpm