Build Information
Failed to build CardStack, reference 1.0.0 (33417e
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 15:31:55 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/notsobigcompany/CardStack.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/notsobigcompany/CardStack
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 33417ef Updates demo
Cloned https://github.com/notsobigcompany/CardStack.git
Revision (git rev-parse @):
33417ef29fdc4169712cb3b8bf0ddbd7b6ef52c5
SUCCESS checkout https://github.com/notsobigcompany/CardStack.git at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "cardstack",
"name": "CardStack",
"url": "https://github.com/notsobigcompany/CardStack.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CardStack",
"dependencies": [
]
}
]
}
Fetching https://github.com/notsobigcompany/CardStack.git
[1/46] Fetching cardstack
Fetched https://github.com/notsobigcompany/CardStack.git from cache (1.07s)
Creating working copy for https://github.com/notsobigcompany/CardStack.git
Working copy of https://github.com/notsobigcompany/CardStack.git resolved at 1.0.0 (33417ef)
warning: '.resolve-product-dependencies': dependency 'cardstack' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/notsobigcompany/CardStack.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module CardStack
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
8 | @State private var previousIndex: Double = 0.0
9 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
9 |
10 | private let data: Data
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:11:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
9 |
10 | private let data: Data
11 | @ViewBuilder private let content: (Data.Element) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 | @Binding var finalCurrentIndex: Int
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
10 | private let data: Data
11 | @ViewBuilder private let content: (Data.Element) -> Content
12 | @Binding var finalCurrentIndex: Int
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | /// Creates a stack with the given content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:19:45: error: 'Binding' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
17 | /// - currentIndex: The index of the topmost card in the stack
18 | /// - content: A view builder that creates the view for a single card
19 | public init(_ data: Data, currentIndex: Binding<Int> = .constant(0), @ViewBuilder content: @escaping (Data.Element) -> Content) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
20 | self.data = data
21 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:19:75: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
17 | /// - currentIndex: The index of the topmost card in the stack
18 | /// - content: A view builder that creates the view for a single card
19 | public init(_ data: Data, currentIndex: Binding<Int> = .constant(0), @ViewBuilder content: @escaping (Data.Element) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
20 | self.data = data
21 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:25:27: error: 'View' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:38:35: error: 'Gesture' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
39 | DragGesture()
40 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:6:96: error: 'Identifiable' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:6:119: error: 'View' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:118:20: error: 'Color' is only available in macOS 10.15 or newer
114 | struct CardStackView_Previews: PreviewProvider {
115 |
116 | struct DemoItem: Identifiable {
| `- note: add @available attribute to enclosing struct
117 | let name: String
118 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
119 |
120 | var id: String {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:126:10: error: 'State' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
| `- error: 'State' is only available in macOS 10.15 or newer
127 | @State private var tappedIndex: Int? = nil
128 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:127:10: error: 'State' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
128 |
129 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:129:24: error: 'View' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:167:31: error: 'View' is only available in macOS 10.15 or newer
112 | }
113 |
114 | struct CardStackView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
115 |
116 | struct DemoItem: Identifiable {
:
165 | }
166 |
167 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
168 | DemoView()
169 | }
[4/4] Compiling CardStack CardStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:7:6: error: 'State' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
8 | @State private var previousIndex: Double = 0.0
9 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
9 |
10 | private let data: Data
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:11:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
9 |
10 | private let data: Data
11 | @ViewBuilder private let content: (Data.Element) -> Content
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 | @Binding var finalCurrentIndex: Int
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:12:6: error: 'Binding' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
10 | private let data: Data
11 | @ViewBuilder private let content: (Data.Element) -> Content
12 | @Binding var finalCurrentIndex: Int
| `- error: 'Binding' is only available in macOS 10.15 or newer
13 |
14 | /// Creates a stack with the given content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:19:45: error: 'Binding' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
17 | /// - currentIndex: The index of the topmost card in the stack
18 | /// - content: A view builder that creates the view for a single card
19 | public init(_ data: Data, currentIndex: Binding<Int> = .constant(0), @ViewBuilder content: @escaping (Data.Element) -> Content) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
20 | self.data = data
21 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:19:75: error: 'ViewBuilder' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
17 | /// - currentIndex: The index of the topmost card in the stack
18 | /// - content: A view builder that creates the view for a single card
19 | public init(_ data: Data, currentIndex: Binding<Int> = .constant(0), @ViewBuilder content: @escaping (Data.Element) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
20 | self.data = data
21 | self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:25:27: error: 'View' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:38:35: error: 'Gesture' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
39 | DragGesture()
40 | .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:6:96: error: 'Identifiable' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:6:119: error: 'View' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:118:20: error: 'Color' is only available in macOS 10.15 or newer
114 | struct CardStackView_Previews: PreviewProvider {
115 |
116 | struct DemoItem: Identifiable {
| `- note: add @available attribute to enclosing struct
117 | let name: String
118 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
119 |
120 | var id: String {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:126:10: error: 'State' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
| `- error: 'State' is only available in macOS 10.15 or newer
127 | @State private var tappedIndex: Int? = nil
128 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:127:10: error: 'State' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| |- note: add @available attribute to enclosing struct
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
128 |
129 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:129:24: error: 'View' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:167:31: error: 'View' is only available in macOS 10.15 or newer
112 | }
113 |
114 | struct CardStackView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
115 |
116 | struct DemoItem: Identifiable {
:
165 | }
166 |
167 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
168 | DemoView()
169 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:26:9: error: 'ZStack' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
28 | content(element)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:26:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
28 | content(element)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:27:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
28 | content(element)
29 | .zIndex(zIndex(for: index))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:27:13: error: 'ForEach' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | content(element)
29 | .zIndex(zIndex(for: index))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:27:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | content(element)
29 | .zIndex(zIndex(for: index))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:29:22: error: 'zIndex' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
28 | content(element)
29 | .zIndex(zIndex(for: index))
| |- error: 'zIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .offset(x: xOffset(for: index), y: 0)
31 | .scaleEffect(scale(for: index), anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:30:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
28 | content(element)
29 | .zIndex(zIndex(for: index))
30 | .offset(x: xOffset(for: index), y: 0)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .scaleEffect(scale(for: index), anchor: .center)
32 | .rotationEffect(.degrees(rotationDegrees(for: index)))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:31:22: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
:
29 | .zIndex(zIndex(for: index))
30 | .offset(x: xOffset(for: index), y: 0)
31 | .scaleEffect(scale(for: index), anchor: .center)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .rotationEffect(.degrees(rotationDegrees(for: index)))
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:32:22: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
:
30 | .offset(x: xOffset(for: index), y: 0)
31 | .scaleEffect(scale(for: index), anchor: .center)
32 | .rotationEffect(.degrees(rotationDegrees(for: index)))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:26:16: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
28 | content(element)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:35:10: error: 'highPriorityGesture(_:including:)' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack {
27 | ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
:
33 | }
34 | }
35 | .highPriorityGesture(dragGesture)
| |- error: 'highPriorityGesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | }
37 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:46:14: warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| `- note: add @available attribute to enclosing property
39 | DragGesture()
40 | .onChanged { value in
:
44 | }
45 | }
46 | .onEnded { value in
| |- warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
47 | self.snapToNearestAbsoluteIndex(value.predictedEndTranslation)
48 | self.previousIndex = self.currentIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:39:9: error: 'DragGesture' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| `- note: add @available attribute to enclosing property
39 | DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | .onChanged { value in
41 | withAnimation(.interactiveSpring()) {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:39:9: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| `- note: add @available attribute to enclosing property
39 | DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
40 | .onChanged { value in
41 | withAnimation(.interactiveSpring()) {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:40:14: error: 'onChanged' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| `- note: add @available attribute to enclosing property
39 | DragGesture()
40 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | withAnimation(.interactiveSpring()) {
42 | let x = (value.translation.width / 300) - previousIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:41:17: error: 'withAnimation' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| `- note: add @available attribute to enclosing property
39 | DragGesture()
40 | .onChanged { value in
41 | withAnimation(.interactiveSpring()) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | let x = (value.translation.width / 300) - previousIndex
43 | self.currentIndex = -x
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:41:32: error: 'interactiveSpring(duration:extraBounce:blendDuration:)' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| `- note: add @available attribute to enclosing property
39 | DragGesture()
40 | .onChanged { value in
41 | withAnimation(.interactiveSpring()) {
| |- error: 'interactiveSpring(duration:extraBounce:blendDuration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | let x = (value.translation.width / 300) - previousIndex
43 | self.currentIndex = -x
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:43:21: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| `- note: add @available attribute to enclosing property
39 | DragGesture()
40 | .onChanged { value in
41 | withAnimation(.interactiveSpring()) {
42 | let x = (value.translation.width / 300) - previousIndex
43 | self.currentIndex = -x
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:46:14: error: 'onEnded' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| `- note: add @available attribute to enclosing property
39 | DragGesture()
40 | .onChanged { value in
:
44 | }
45 | }
46 | .onEnded { value in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | self.snapToNearestAbsoluteIndex(value.predictedEndTranslation)
48 | self.previousIndex = self.currentIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:48:17: error: setter for 'previousIndex' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
36 | }
37 |
38 | private var dragGesture: some Gesture {
| `- note: add @available attribute to enclosing property
39 | DragGesture()
40 | .onChanged { value in
:
46 | .onEnded { value in
47 | self.snapToNearestAbsoluteIndex(value.predictedEndTranslation)
48 | self.previousIndex = self.currentIndex
| |- error: setter for 'previousIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:53:9: error: 'withAnimation' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
50 | }
51 |
52 | private func snapToNearestAbsoluteIndex(_ predictedEndTranslation: CGSize) {
| `- note: add @available attribute to enclosing instance method
53 | withAnimation(.interpolatingSpring(stiffness: 300, damping: 40)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | let translation = predictedEndTranslation.width
55 | if abs(translation) > 200 {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:53:24: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
50 | }
51 |
52 | private func snapToNearestAbsoluteIndex(_ predictedEndTranslation: CGSize) {
| `- note: add @available attribute to enclosing instance method
53 | withAnimation(.interpolatingSpring(stiffness: 300, damping: 40)) {
| |- error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | let translation = predictedEndTranslation.width
55 | if abs(translation) > 200 {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:62:17: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
50 | }
51 |
52 | private func snapToNearestAbsoluteIndex(_ predictedEndTranslation: CGSize) {
| `- note: add @available attribute to enclosing instance method
53 | withAnimation(.interpolatingSpring(stiffness: 300, damping: 40)) {
54 | let translation = predictedEndTranslation.width
:
60 | }
61 | } else {
62 | self.currentIndex = round(currentIndex)
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:70:13: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
65 | }
66 |
67 | private func goTo(_ index: Double) {
| `- note: add @available attribute to enclosing instance method
68 | let maxIndex = Double(data.count - 1)
69 | if index < 0 {
70 | self.currentIndex = 0
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | } else if index > maxIndex {
72 | self.currentIndex = maxIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:72:13: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
65 | }
66 |
67 | private func goTo(_ index: Double) {
| `- note: add @available attribute to enclosing instance method
68 | let maxIndex = Double(data.count - 1)
69 | if index < 0 {
70 | self.currentIndex = 0
71 | } else if index > maxIndex {
72 | self.currentIndex = maxIndex
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | } else {
74 | self.currentIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:74:13: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
65 | }
66 |
67 | private func goTo(_ index: Double) {
| `- note: add @available attribute to enclosing instance method
68 | let maxIndex = Double(data.count - 1)
69 | if index < 0 {
:
72 | self.currentIndex = maxIndex
73 | } else {
74 | self.currentIndex = index
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | }
76 | self.finalCurrentIndex = Int(index)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:76:9: error: setter for 'finalCurrentIndex' is only available in macOS 10.15 or newer
4 | A SwiftUI view that arranges its children in an interactive deck of cards.
5 | */
6 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
| `- note: add @available attribute to enclosing generic struct
7 | @State private var currentIndex: Double = 0.0
8 | @State private var previousIndex: Double = 0.0
:
65 | }
66 |
67 | private func goTo(_ index: Double) {
| `- note: add @available attribute to enclosing instance method
68 | let maxIndex = Double(data.count - 1)
69 | if index < 0 {
:
74 | self.currentIndex = index
75 | }
76 | self.finalCurrentIndex = Int(index)
| |- error: setter for 'finalCurrentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:131:47: error: 'red' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
132 | DemoItem(name: "Orange", color: .orange),
133 | DemoItem(name: "Yellow", color: .yellow),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:132:50: error: 'orange' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
132 | DemoItem(name: "Orange", color: .orange),
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
133 | DemoItem(name: "Yellow", color: .yellow),
134 | DemoItem(name: "Green", color: .green),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:133:50: error: 'yellow' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
132 | DemoItem(name: "Orange", color: .orange),
133 | DemoItem(name: "Yellow", color: .yellow),
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
134 | DemoItem(name: "Green", color: .green),
135 | DemoItem(name: "Blue", color: .blue),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:134:49: error: 'green' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
132 | DemoItem(name: "Orange", color: .orange),
133 | DemoItem(name: "Yellow", color: .yellow),
134 | DemoItem(name: "Green", color: .green),
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
135 | DemoItem(name: "Blue", color: .blue),
136 | DemoItem(name: "Purple", color: .purple),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:135:48: error: 'blue' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
133 | DemoItem(name: "Yellow", color: .yellow),
134 | DemoItem(name: "Green", color: .green),
135 | DemoItem(name: "Blue", color: .blue),
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
136 | DemoItem(name: "Purple", color: .purple),
137 | ]
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:136:50: error: 'purple' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
134 | DemoItem(name: "Green", color: .green),
135 | DemoItem(name: "Blue", color: .blue),
136 | DemoItem(name: "Purple", color: .purple),
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
137 | ]
138 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:139:13: error: 'VStack' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
137 | ]
138 |
139 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | CardStack(colors, currentIndex: $currentIndex) { namedColor in
141 | RoundedRectangle(cornerRadius: 20, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:139:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
137 | ]
138 |
139 | VStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
140 | CardStack(colors, currentIndex: $currentIndex) { namedColor in
141 | RoundedRectangle(cornerRadius: 20, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:140:17: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
138 |
139 | VStack {
140 | CardStack(colors, currentIndex: $currentIndex) { namedColor in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
141 | RoundedRectangle(cornerRadius: 20, style: .continuous)
142 | .fill(namedColor.color)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:140:64: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
138 |
139 | VStack {
140 | CardStack(colors, currentIndex: $currentIndex) { namedColor in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
141 | RoundedRectangle(cornerRadius: 20, style: .continuous)
142 | .fill(namedColor.color)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:141:21: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
139 | VStack {
140 | CardStack(colors, currentIndex: $currentIndex) { namedColor in
141 | RoundedRectangle(cornerRadius: 20, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | .fill(namedColor.color)
143 | .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:142:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
140 | CardStack(colors, currentIndex: $currentIndex) { namedColor in
141 | RoundedRectangle(cornerRadius: 20, style: .continuous)
142 | .fill(namedColor.color)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
143 | .overlay(
144 | Text(namedColor.name)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:143:26: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
141 | RoundedRectangle(cornerRadius: 20, style: .continuous)
142 | .fill(namedColor.color)
143 | .overlay(
| |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | Text(namedColor.name)
145 | .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:144:29: error: 'Text' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
142 | .fill(namedColor.color)
143 | .overlay(
144 | Text(namedColor.name)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | .font(.largeTitle)
146 | .fontWeight(.bold)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:145:34: error: 'font' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
143 | .overlay(
144 | Text(namedColor.name)
145 | .font(.largeTitle)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | .fontWeight(.bold)
147 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:145:40: error: 'largeTitle' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
143 | .overlay(
144 | Text(namedColor.name)
145 | .font(.largeTitle)
| |- error: 'largeTitle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | .fontWeight(.bold)
147 | .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:146:34: error: 'fontWeight' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
144 | Text(namedColor.name)
145 | .font(.largeTitle)
146 | .fontWeight(.bold)
| |- error: 'fontWeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | .foregroundColor(.white)
148 | )
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:147:34: error: 'foregroundColor' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
145 | .font(.largeTitle)
146 | .fontWeight(.bold)
147 | .foregroundColor(.white)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | )
149 | .frame(height: 400)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:147:51: error: 'white' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
145 | .font(.largeTitle)
146 | .fontWeight(.bold)
147 | .foregroundColor(.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | )
149 | .frame(height: 400)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:149:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
147 | .foregroundColor(.white)
148 | )
149 | .frame(height: 400)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
150 | .onTapGesture {
151 | tappedIndex = currentIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:150:26: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
148 | )
149 | .frame(height: 400)
150 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | tappedIndex = currentIndex
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:151:29: error: setter for 'tappedIndex' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
149 | .frame(height: 400)
150 | .onTapGesture {
151 | tappedIndex = currentIndex
| |- error: setter for 'tappedIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | }
153 | .padding(50)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:153:26: error: 'padding' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
151 | tappedIndex = currentIndex
152 | }
153 | .padding(50)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
154 |
155 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:157:17: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
155 | }
156 |
157 | Text("Current card is \(currentIndex)")
| |- warning: conformance of 'Text' 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
158 | if let tappedIndex = tappedIndex {
159 | Text("Card \(tappedIndex) was tapped")
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:157:17: error: 'Text' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
155 | }
156 |
157 | Text("Current card is \(currentIndex)")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | if let tappedIndex = tappedIndex {
159 | Text("Card \(tappedIndex) was tapped")
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:159:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
157 | Text("Current card is \(currentIndex)")
158 | if let tappedIndex = tappedIndex {
159 | Text("Card \(tappedIndex) was tapped")
| |- warning: conformance of 'Text' 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
160 | } else {
161 | Text("No card has been tapped")
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:159:21: error: 'Text' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
157 | Text("Current card is \(currentIndex)")
158 | if let tappedIndex = tappedIndex {
159 | Text("Card \(tappedIndex) was tapped")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | } else {
161 | Text("No card has been tapped")
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:158:50: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
156 |
157 | Text("Current card is \(currentIndex)")
158 | if let tappedIndex = tappedIndex {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
159 | Text("Card \(tappedIndex) was tapped")
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:158:50: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
156 |
157 | Text("Current card is \(currentIndex)")
158 | if let tappedIndex = tappedIndex {
| |- warning: conformance of 'Text' 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
159 | Text("Card \(tappedIndex) was tapped")
160 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:161:21: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
159 | Text("Card \(tappedIndex) was tapped")
160 | } else {
161 | Text("No card has been tapped")
| |- warning: conformance of 'Text' 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
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:161:21: error: 'Text' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
159 | Text("Card \(tappedIndex) was tapped")
160 | } else {
161 | Text("No card has been tapped")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:160:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
158 | if let tappedIndex = tappedIndex {
159 | Text("Card \(tappedIndex) was tapped")
160 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | Text("No card has been tapped")
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:160:24: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
158 | if let tappedIndex = tappedIndex {
159 | Text("Card \(tappedIndex) was tapped")
160 | } else {
| |- warning: conformance of 'Text' 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
161 | Text("No card has been tapped")
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:139:20: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
137 | ]
138 |
139 | VStack {
| |- warning: conformance of 'Text' 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
140 | CardStack(colors, currentIndex: $currentIndex) { namedColor in
141 | RoundedRectangle(cornerRadius: 20, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:139:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
123 | }
124 |
125 | struct DemoView: View {
| `- note: add @available attribute to enclosing struct
126 | @State private var currentIndex = 0
127 | @State private var tappedIndex: Int? = nil
128 |
129 | var body: some View {
| `- note: add @available attribute to enclosing property
130 | let colors = [
131 | DemoItem(name: "Red", color: .red),
:
137 | ]
138 |
139 | VStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
140 | CardStack(colors, currentIndex: $currentIndex) { namedColor in
141 | RoundedRectangle(cornerRadius: 20, style: .continuous)
BUILD FAILURE 6.0 macosSpm