Build Information
Failed to build CarouselView, reference 1.0.0 (070631
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 00:06:16 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AnbalaganD/CarouselView.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/AnbalaganD/CarouselView
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 070631b Remove unused modifier
Cloned https://github.com/AnbalaganD/CarouselView.git
Revision (git rev-parse @):
070631bfccc19f8fcc5fa9428053893030fdb85b
SUCCESS checkout https://github.com/AnbalaganD/CarouselView.git at 1.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/AnbalaganD/CarouselView.git
https://github.com/AnbalaganD/CarouselView.git
{
"dependencies" : [
],
"manifest_display_name" : "CarouselView",
"name" : "CarouselView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "CarouselView",
"targets" : [
"CarouselView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CarouselView",
"module_type" : "SwiftTarget",
"name" : "CarouselView",
"path" : "Sources/CarouselView",
"product_memberships" : [
"CarouselView"
],
"sources" : [
"CarouselView.swift",
"HeightPreferenceKey.swift",
"ViewExtension.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/6] Compiling CarouselView HeightPreferenceKey.swift
[4/6] Emitting module CarouselView
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | @Binding var selectedIndex: Int
15 | @ViewBuilder let content: (T) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
14 | @Binding var selectedIndex: Int
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @ViewBuilder let content: (T) -> Content
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:15:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
14 | @Binding var selectedIndex: Int
15 | @ViewBuilder let content: (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
16 |
17 | @State private var height: CGFloat = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
15 | @ViewBuilder let content: (T) -> Content
16 |
17 | @State private var height: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
16 |
17 | @State private var height: CGFloat = 0.0
18 | @State private var dragOffsetX: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
19 | @State private var previousOffsetX: CGFloat = 0.0
20 | @State private var tabItem: [T] = []
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
17 | @State private var height: CGFloat = 0.0
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var tabItem: [T] = []
21 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
20 | @State private var tabItem: [T] = []
| `- error: 'State' is only available in macOS 10.15 or newer
21 |
22 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:25:19: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
25 | selected: Binding<T?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 | @ViewBuilder content: @escaping (T) -> Content
27 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:26:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
25 | selected: Binding<T?>,
26 | @ViewBuilder content: @escaping (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
27 | ) {
28 | self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:38:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
38 | selectedIndex: Binding<Int>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
39 | @ViewBuilder content: @escaping (T) -> Content
40 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:39:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
38 | selectedIndex: Binding<Int>,
39 | @ViewBuilder content: @escaping (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
40 | ) {
41 | self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:10:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:11:78: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
12 | self
[5/6] Compiling CarouselView ViewExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:11:78: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
12 | self
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:13:10: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | GeometryReader { geometry in
15 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:14:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
14 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | Color.clear
16 | .preference(key: HeightPreferenceKey.self, value: geometry.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:15:17: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
14 | GeometryReader { geometry in
15 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .preference(key: HeightPreferenceKey.self, value: geometry.size.height)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:15:23: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
14 | GeometryReader { geometry in
15 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .preference(key: HeightPreferenceKey.self, value: geometry.size.height)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:16:22: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
14 | GeometryReader { geometry in
15 | Color.clear
16 | .preference(key: HeightPreferenceKey.self, value: geometry.size.height)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | }
18 | )
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:19:10: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
:
17 | }
18 | )
19 | .onPreferenceChange(HeightPreferenceKey.self) { value in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | action(value)
21 | }
[6/6] Compiling CarouselView CarouselView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | @Binding var selectedIndex: Int
15 | @ViewBuilder let content: (T) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
14 | @Binding var selectedIndex: Int
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @ViewBuilder let content: (T) -> Content
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:15:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
14 | @Binding var selectedIndex: Int
15 | @ViewBuilder let content: (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
16 |
17 | @State private var height: CGFloat = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
15 | @ViewBuilder let content: (T) -> Content
16 |
17 | @State private var height: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
16 |
17 | @State private var height: CGFloat = 0.0
18 | @State private var dragOffsetX: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
19 | @State private var previousOffsetX: CGFloat = 0.0
20 | @State private var tabItem: [T] = []
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
17 | @State private var height: CGFloat = 0.0
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var tabItem: [T] = []
21 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
20 | @State private var tabItem: [T] = []
| `- error: 'State' is only available in macOS 10.15 or newer
21 |
22 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:25:19: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
25 | selected: Binding<T?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 | @ViewBuilder content: @escaping (T) -> Content
27 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:26:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
25 | selected: Binding<T?>,
26 | @ViewBuilder content: @escaping (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
27 | ) {
28 | self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:38:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
38 | selectedIndex: Binding<Int>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
39 | @ViewBuilder content: @escaping (T) -> Content
40 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:39:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
38 | selectedIndex: Binding<Int>,
39 | @ViewBuilder content: @escaping (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
40 | ) {
41 | self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:10:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:30:31: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
:
28 | self.items = items
29 | self.spacing = spacing
30 | self._selectedIndex = Binding.constant(0)
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | self._selected = selected
32 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:44:26: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
:
42 | self.spacing = spacing
43 | self._selectedIndex = selectedIndex
44 | self._selected = Binding.constant(nil)
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | self.content = content
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:73:29: error: setter for 'previousOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
71 | }.onEnded { value in
72 | defer {
73 | previousOffsetX = 0
| |- error: setter for 'previousOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:49:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:49:9: 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
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
| |- 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
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:49:24: warning: conformance of '_ChangedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
| |- warning: conformance of '_ChangedGesture<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
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:51:17: error: 'HStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | content(tabItem[0])
53 | .frame(width: geometry.size.width)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:53:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
52 | content(tabItem[0])
53 | .frame(width: geometry.size.width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .onHeightChange { self.height = max(self.height, $0) }
55 | content(tabItem[1])
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:54:43: error: setter for 'height' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
52 | content(tabItem[0])
53 | .frame(width: geometry.size.width)
54 | .onHeightChange { self.height = max(self.height, $0) }
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | content(tabItem[1])
56 | .frame(width: geometry.size.width)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:56:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
54 | .onHeightChange { self.height = max(self.height, $0) }
55 | content(tabItem[1])
56 | .frame(width: geometry.size.width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .onHeightChange { self.height = max(self.height, $0) }
58 | content(tabItem[2])
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:57:43: error: setter for 'height' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
55 | content(tabItem[1])
56 | .frame(width: geometry.size.width)
57 | .onHeightChange { self.height = max(self.height, $0) }
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | content(tabItem[2])
59 | .frame(width: geometry.size.width)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:59:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
57 | .onHeightChange { self.height = max(self.height, $0) }
58 | content(tabItem[2])
59 | .frame(width: geometry.size.width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .onHeightChange { self.height = max(self.height, $0) }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:60:43: error: setter for 'height' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
58 | content(tabItem[2])
59 | .frame(width: geometry.size.width)
60 | .onHeightChange { self.height = max(self.height, $0) }
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | .offset(x: dragOffsetX)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:62:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
60 | .onHeightChange { self.height = max(self.height, $0) }
61 | }
62 | .offset(x: dragOffsetX)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .onAppear {
64 | dragOffsetX = -(geometry.size.width + spacing)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:63:18: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
61 | }
62 | .offset(x: dragOffsetX)
63 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | dragOffsetX = -(geometry.size.width + spacing)
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:64:21: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
62 | .offset(x: dragOffsetX)
63 | .onAppear {
64 | dragOffsetX = -(geometry.size.width + spacing)
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | }
66 | .contentShape(.interaction, Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:66:18: error: 'contentShape(_:_:eoFill:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
64 | dragOffsetX = -(geometry.size.width + spacing)
65 | }
66 | .contentShape(.interaction, Rectangle())
| |- error: 'contentShape(_:_:eoFill:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
67 | .gesture(
68 | DragGesture().onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:66:45: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
64 | dragOffsetX = -(geometry.size.width + spacing)
65 | }
66 | .contentShape(.interaction, Rectangle())
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .gesture(
68 | DragGesture().onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:67:18: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
65 | }
66 | .contentShape(.interaction, Rectangle())
67 | .gesture(
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | DragGesture().onChanged { value in
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:68:21: error: 'DragGesture' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
66 | .contentShape(.interaction, Rectangle())
67 | .gesture(
68 | DragGesture().onChanged { value in
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:68:21: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
66 | .contentShape(.interaction, Rectangle())
67 | .gesture(
68 | DragGesture().onChanged { value in
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:68:35: error: 'onChanged' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
66 | .contentShape(.interaction, Rectangle())
67 | .gesture(
68 | DragGesture().onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:69:25: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
67 | .gesture(
68 | DragGesture().onChanged { value in
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | previousOffsetX = value.translation.width
71 | }.onEnded { value in
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:70:25: error: setter for 'previousOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
68 | DragGesture().onChanged { value in
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
| |- error: setter for 'previousOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | }.onEnded { value in
72 | defer {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:71:23: error: 'onEnded' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
71 | }.onEnded { value in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | defer {
73 | previousOffsetX = 0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:79:29: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
77 |
78 | if !isReachedThreashold {
79 | withAnimation(.linear) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | dragOffsetX = -(geometry.size.width + spacing)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:79:44: error: 'linear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
77 |
78 | if !isReachedThreashold {
79 | withAnimation(.linear) {
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | dragOffsetX = -(geometry.size.width + spacing)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:80:33: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
78 | if !isReachedThreashold {
79 | withAnimation(.linear) {
80 | dragOffsetX = -(geometry.size.width + spacing)
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | return
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:87:29: error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
85 | let isForward: Bool
86 | if value.startLocation.x > value.location.x {
87 | selectedIndex = nextIndex()
| |- error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | isForward = true
89 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:90:29: error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
88 | isForward = true
89 | } else {
90 | selectedIndex = previousIndex()
| |- error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | isForward = false
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:94:25: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
92 | }
93 |
94 | withAnimation(.linear) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | dragOffsetX = isForward ? -geometry.size.width * 2 : 0
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:94:40: error: 'linear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
92 | }
93 |
94 | withAnimation(.linear) {
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | dragOffsetX = isForward ? -geometry.size.width * 2 : 0
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:95:29: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
93 |
94 | withAnimation(.linear) {
95 | dragOffsetX = isForward ? -geometry.size.width * 2 : 0
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:98:25: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
96 | }
97 |
98 | dragOffsetX = -(geometry.size.width + spacing)
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | constructTabItem()
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:50:33: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | HStack(spacing: spacing) {
52 | content(tabItem[0])
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:102:13: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
100 | }
101 | )
102 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | }
104 | .frame(height: height)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:49:24: 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
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
| |- 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
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:104:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
102 | }
103 | }
104 | .frame(height: height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | .clipped()
106 | .onAppear { constructTabItem() }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:105:10: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
103 | }
104 | .frame(height: height)
105 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | .onAppear { constructTabItem() }
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:106:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
104 | .frame(height: height)
105 | .clipped()
106 | .onAppear { constructTabItem() }
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:111:13: error: setter for 'tabItem' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
107 | }
108 |
109 | private func constructTabItem() {
| `- note: add @available attribute to enclosing instance method
110 | if items.isEmpty {
111 | tabItem = []
| |- error: setter for 'tabItem' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | return
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:115:9: error: setter for 'tabItem' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
107 | }
108 |
109 | private func constructTabItem() {
| `- note: add @available attribute to enclosing instance method
110 | if items.isEmpty {
111 | tabItem = []
:
113 | }
114 |
115 | tabItem = [
| |- error: setter for 'tabItem' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | items[previousIndex()],
117 | items[selectedIndex],
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/5] Compiling CarouselView ViewExtension.swift
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:11:78: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
12 | self
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:13:10: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | GeometryReader { geometry in
15 | Color.clear
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:14:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
14 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | Color.clear
16 | .preference(key: HeightPreferenceKey.self, value: geometry.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:15:17: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
14 | GeometryReader { geometry in
15 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .preference(key: HeightPreferenceKey.self, value: geometry.size.height)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:15:23: error: 'clear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
14 | GeometryReader { geometry in
15 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .preference(key: HeightPreferenceKey.self, value: geometry.size.height)
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:16:22: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
14 | GeometryReader { geometry in
15 | Color.clear
16 | .preference(key: HeightPreferenceKey.self, value: geometry.size.height)
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | }
18 | )
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:19:10: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
:
17 | }
18 | )
19 | .onPreferenceChange(HeightPreferenceKey.self) { value in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | action(value)
21 | }
[3/5] Compiling CarouselView HeightPreferenceKey.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module CarouselView
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | @Binding var selectedIndex: Int
15 | @ViewBuilder let content: (T) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
14 | @Binding var selectedIndex: Int
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @ViewBuilder let content: (T) -> Content
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:15:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
14 | @Binding var selectedIndex: Int
15 | @ViewBuilder let content: (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
16 |
17 | @State private var height: CGFloat = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
15 | @ViewBuilder let content: (T) -> Content
16 |
17 | @State private var height: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
16 |
17 | @State private var height: CGFloat = 0.0
18 | @State private var dragOffsetX: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
19 | @State private var previousOffsetX: CGFloat = 0.0
20 | @State private var tabItem: [T] = []
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
17 | @State private var height: CGFloat = 0.0
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var tabItem: [T] = []
21 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
20 | @State private var tabItem: [T] = []
| `- error: 'State' is only available in macOS 10.15 or newer
21 |
22 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:25:19: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
25 | selected: Binding<T?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 | @ViewBuilder content: @escaping (T) -> Content
27 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:26:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
25 | selected: Binding<T?>,
26 | @ViewBuilder content: @escaping (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
27 | ) {
28 | self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:38:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
38 | selectedIndex: Binding<Int>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
39 | @ViewBuilder content: @escaping (T) -> Content
40 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:39:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
38 | selectedIndex: Binding<Int>,
39 | @ViewBuilder content: @escaping (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
40 | ) {
41 | self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:10:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:11:78: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | self
13 | .background(
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/ViewExtension.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | func onHeightChange(perform action: @escaping (CGFloat) -> Void) -> some View {
12 | self
[5/5] Compiling CarouselView CarouselView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
| `- error: 'Binding' is only available in macOS 10.15 or newer
14 | @Binding var selectedIndex: Int
15 | @ViewBuilder let content: (T) -> Content
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:14:6: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
14 | @Binding var selectedIndex: Int
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 | @ViewBuilder let content: (T) -> Content
16 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:15:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
13 | @Binding var selected: T?
14 | @Binding var selectedIndex: Int
15 | @ViewBuilder let content: (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
16 |
17 | @State private var height: CGFloat = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
15 | @ViewBuilder let content: (T) -> Content
16 |
17 | @State private var height: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
16 |
17 | @State private var height: CGFloat = 0.0
18 | @State private var dragOffsetX: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
19 | @State private var previousOffsetX: CGFloat = 0.0
20 | @State private var tabItem: [T] = []
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
17 | @State private var height: CGFloat = 0.0
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var tabItem: [T] = []
21 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
18 | @State private var dragOffsetX: CGFloat = 0.0
19 | @State private var previousOffsetX: CGFloat = 0.0
20 | @State private var tabItem: [T] = []
| `- error: 'State' is only available in macOS 10.15 or newer
21 |
22 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:25:19: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
25 | selected: Binding<T?>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
26 | @ViewBuilder content: @escaping (T) -> Content
27 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:26:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
25 | selected: Binding<T?>,
26 | @ViewBuilder content: @escaping (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
27 | ) {
28 | self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:38:24: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
38 | selectedIndex: Binding<Int>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
39 | @ViewBuilder content: @escaping (T) -> Content
40 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:39:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
38 | selectedIndex: Binding<Int>,
39 | @ViewBuilder content: @escaping (T) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
40 | ) {
41 | self.items = items
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:48:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:10:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:30:31: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
20 | @State private var tabItem: [T] = []
21 |
22 | public init(
| `- note: add @available attribute to enclosing initializer
23 | _ items: [T],
24 | spacing: CGFloat = 0.0,
:
28 | self.items = items
29 | self.spacing = spacing
30 | self._selectedIndex = Binding.constant(0)
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | self._selected = selected
32 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:44:26: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
33 | }
34 |
35 | public init(
| `- note: add @available attribute to enclosing initializer
36 | _ items: [T],
37 | spacing: CGFloat = 0.0,
:
42 | self.spacing = spacing
43 | self._selectedIndex = selectedIndex
44 | self._selected = Binding.constant(nil)
| |- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | self.content = content
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:73:29: error: setter for 'previousOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
71 | }.onEnded { value in
72 | defer {
73 | previousOffsetX = 0
| |- error: setter for 'previousOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | }
75 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:49:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:49:9: 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
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
| |- 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
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:49:24: warning: conformance of '_ChangedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
| |- warning: conformance of '_ChangedGesture<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
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:51:17: error: 'HStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | content(tabItem[0])
53 | .frame(width: geometry.size.width)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:53:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
52 | content(tabItem[0])
53 | .frame(width: geometry.size.width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .onHeightChange { self.height = max(self.height, $0) }
55 | content(tabItem[1])
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:54:43: error: setter for 'height' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
52 | content(tabItem[0])
53 | .frame(width: geometry.size.width)
54 | .onHeightChange { self.height = max(self.height, $0) }
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | content(tabItem[1])
56 | .frame(width: geometry.size.width)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:56:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
54 | .onHeightChange { self.height = max(self.height, $0) }
55 | content(tabItem[1])
56 | .frame(width: geometry.size.width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .onHeightChange { self.height = max(self.height, $0) }
58 | content(tabItem[2])
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:57:43: error: setter for 'height' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
55 | content(tabItem[1])
56 | .frame(width: geometry.size.width)
57 | .onHeightChange { self.height = max(self.height, $0) }
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | content(tabItem[2])
59 | .frame(width: geometry.size.width)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:59:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
57 | .onHeightChange { self.height = max(self.height, $0) }
58 | content(tabItem[2])
59 | .frame(width: geometry.size.width)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .onHeightChange { self.height = max(self.height, $0) }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:60:43: error: setter for 'height' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
58 | content(tabItem[2])
59 | .frame(width: geometry.size.width)
60 | .onHeightChange { self.height = max(self.height, $0) }
| |- error: setter for 'height' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | .offset(x: dragOffsetX)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:62:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
60 | .onHeightChange { self.height = max(self.height, $0) }
61 | }
62 | .offset(x: dragOffsetX)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .onAppear {
64 | dragOffsetX = -(geometry.size.width + spacing)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:63:18: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
61 | }
62 | .offset(x: dragOffsetX)
63 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | dragOffsetX = -(geometry.size.width + spacing)
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:64:21: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
62 | .offset(x: dragOffsetX)
63 | .onAppear {
64 | dragOffsetX = -(geometry.size.width + spacing)
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | }
66 | .contentShape(.interaction, Rectangle())
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:66:18: error: 'contentShape(_:_:eoFill:)' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
64 | dragOffsetX = -(geometry.size.width + spacing)
65 | }
66 | .contentShape(.interaction, Rectangle())
| |- error: 'contentShape(_:_:eoFill:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
67 | .gesture(
68 | DragGesture().onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:66:45: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
64 | dragOffsetX = -(geometry.size.width + spacing)
65 | }
66 | .contentShape(.interaction, Rectangle())
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .gesture(
68 | DragGesture().onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:67:18: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
65 | }
66 | .contentShape(.interaction, Rectangle())
67 | .gesture(
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | DragGesture().onChanged { value in
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:68:21: error: 'DragGesture' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
66 | .contentShape(.interaction, Rectangle())
67 | .gesture(
68 | DragGesture().onChanged { value in
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:68:21: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
66 | .contentShape(.interaction, Rectangle())
67 | .gesture(
68 | DragGesture().onChanged { value in
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:68:35: error: 'onChanged' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
66 | .contentShape(.interaction, Rectangle())
67 | .gesture(
68 | DragGesture().onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:69:25: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
67 | .gesture(
68 | DragGesture().onChanged { value in
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | previousOffsetX = value.translation.width
71 | }.onEnded { value in
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:70:25: error: setter for 'previousOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
68 | DragGesture().onChanged { value in
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
| |- error: setter for 'previousOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | }.onEnded { value in
72 | defer {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:71:23: error: 'onEnded' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
69 | dragOffsetX = dragOffsetX + (value.translation.width - previousOffsetX)
70 | previousOffsetX = value.translation.width
71 | }.onEnded { value in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | defer {
73 | previousOffsetX = 0
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:79:29: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
77 |
78 | if !isReachedThreashold {
79 | withAnimation(.linear) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | dragOffsetX = -(geometry.size.width + spacing)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:79:44: error: 'linear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
77 |
78 | if !isReachedThreashold {
79 | withAnimation(.linear) {
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | dragOffsetX = -(geometry.size.width + spacing)
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:80:33: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
78 | if !isReachedThreashold {
79 | withAnimation(.linear) {
80 | dragOffsetX = -(geometry.size.width + spacing)
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | return
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:87:29: error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
85 | let isForward: Bool
86 | if value.startLocation.x > value.location.x {
87 | selectedIndex = nextIndex()
| |- error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | isForward = true
89 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:90:29: error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
88 | isForward = true
89 | } else {
90 | selectedIndex = previousIndex()
| |- error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | isForward = false
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:94:25: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
92 | }
93 |
94 | withAnimation(.linear) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | dragOffsetX = isForward ? -geometry.size.width * 2 : 0
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:94:40: error: 'linear' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
92 | }
93 |
94 | withAnimation(.linear) {
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | dragOffsetX = isForward ? -geometry.size.width * 2 : 0
96 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:95:29: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
93 |
94 | withAnimation(.linear) {
95 | dragOffsetX = isForward ? -geometry.size.width * 2 : 0
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:98:25: error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
96 | }
97 |
98 | dragOffsetX = -(geometry.size.width + spacing)
| |- error: setter for 'dragOffsetX' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | constructTabItem()
100 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:50:33: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | HStack(spacing: spacing) {
52 | content(tabItem[0])
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:102:13: error: 'buildIf' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
100 | }
101 | )
102 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | }
104 | .frame(height: height)
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:49:24: 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
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
| |- 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
50 | if !tabItem.isEmpty {
51 | HStack(spacing: spacing) {
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:104:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
102 | }
103 | }
104 | .frame(height: height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 | .clipped()
106 | .onAppear { constructTabItem() }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:105:10: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
103 | }
104 | .frame(height: height)
105 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | .onAppear { constructTabItem() }
107 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:106:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
46 | }
47 |
48 | public var body: some View {
| `- note: add @available attribute to enclosing property
49 | GeometryReader { geometry in
50 | if !tabItem.isEmpty {
:
104 | .frame(height: height)
105 | .clipped()
106 | .onAppear { constructTabItem() }
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | }
108 |
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:111:13: error: setter for 'tabItem' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
107 | }
108 |
109 | private func constructTabItem() {
| `- note: add @available attribute to enclosing instance method
110 | if items.isEmpty {
111 | tabItem = []
| |- error: setter for 'tabItem' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | return
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/CarouselView/CarouselView.swift:115:9: error: setter for 'tabItem' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct CarouselView<T, Content: View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let items: [T]
12 | let spacing: CGFloat
:
107 | }
108 |
109 | private func constructTabItem() {
| `- note: add @available attribute to enclosing instance method
110 | if items.isEmpty {
111 | tabItem = []
:
113 | }
114 |
115 | tabItem = [
| |- error: setter for 'tabItem' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | items[previousIndex()],
117 | items[selectedIndex],
BUILD FAILURE 6.1 macosSpm