This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build CardStack with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/notsobigcompany/CardStack.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/notsobigcompany/CardStack
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at cc0d8cf Adds deprecation warning. Updates README.
Cloned https://github.com/notsobigcompany/CardStack.git
Revision (git rev-parse @):
cc0d8cf4f6caf4cfaf71593c84c9d21eaf9460f0
SUCCESS checkout https://github.com/notsobigcompany/CardStack.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/notsobigcompany/CardStack.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.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:8:6: error: 'State' is only available in macOS 10.15 or newer
  6 | @available(*, deprecated, message: "Use CardDeckPageViewStyle in the new BigUIPaging package https://github.com/notsobigcompany/BigUIPaging")
  7 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
  8 |     @State private var currentIndex: Double = 0.0
    |      `- error: 'State' is only available in macOS 10.15 or newer
  9 |     @State private var previousIndex: Double = 0.0
 10 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
  7 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
  8 |     @State private var currentIndex: Double = 0.0
  9 |     @State private var previousIndex: Double = 0.0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 10 |
 11 |     private let data: Data
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 10 |
 11 |     private let data: Data
 12 |     @ViewBuilder private let content: (Data.Element) -> Content
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 13 |     @Binding var finalCurrentIndex: Int
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
 11 |     private let data: Data
 12 |     @ViewBuilder private let content: (Data.Element) -> Content
 13 |     @Binding var finalCurrentIndex: Int
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 14 |
 15 |     /// Creates a stack with the given content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:20:45: error: 'Binding' is only available in macOS 10.15 or newer
 18 |     ///   - currentIndex: The index of the topmost card in the stack
 19 |     ///   - content: A view builder that creates the view for a single card
 20 |     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
 21 |         self.data = data
 22 |         self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:20:75: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 18 |     ///   - currentIndex: The index of the topmost card in the stack
 19 |     ///   - content: A view builder that creates the view for a single card
 20 |     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
 21 |         self.data = data
 22 |         self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:26:27: error: 'View' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:39:35: error: 'Gesture' is only available in macOS 10.15 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 |                 `- error: 'Gesture' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
 41 |             .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:7:96: error: 'Identifiable' is only available in macOS 10.15 or newer
  5 |  */
  6 | @available(*, deprecated, message: "Use CardDeckPageViewStyle in the new BigUIPaging package https://github.com/notsobigcompany/BigUIPaging")
  7 | 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
  8 |     @State private var currentIndex: Double = 0.0
  9 |     @State private var previousIndex: Double = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:7:119: error: 'View' is only available in macOS 10.15 or newer
  5 |  */
  6 | @available(*, deprecated, message: "Use CardDeckPageViewStyle in the new BigUIPaging package https://github.com/notsobigcompany/BigUIPaging")
  7 | 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
  8 |     @State private var currentIndex: Double = 0.0
  9 |     @State private var previousIndex: Double = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:119:20: error: 'Color' is only available in macOS 10.15 or newer
115 | struct CardStackView_Previews: PreviewProvider {
116 |
117 |     struct DemoItem: Identifiable {
    |            `- note: add @available attribute to enclosing struct
118 |         let name: String
119 |         let color: Color
    |                    `- error: 'Color' is only available in macOS 10.15 or newer
120 |
121 |         var id: String {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:127:10: error: 'State' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            |- note: add @available attribute to enclosing struct
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
    |          `- error: 'State' is only available in macOS 10.15 or newer
128 |         @State private var tappedIndex: Int? = nil
129 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:128:10: error: 'State' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            |- note: add @available attribute to enclosing struct
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
    |          `- error: 'State' is only available in macOS 10.15 or newer
129 |
130 |         var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:130:24: error: 'View' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             |          `- error: 'View' is only available in macOS 10.15 or newer
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:168:31: error: 'View' is only available in macOS 10.15 or newer
113 | }
114 |
115 | struct CardStackView_Previews: PreviewProvider {
    |        `- note: add @available attribute to enclosing struct
116 |
117 |     struct DemoItem: Identifiable {
    :
166 |     }
167 |
168 |     static var previews: some View {
    |                |              `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing static property
169 |         DemoView()
170 |     }
[4/4] Compiling CardStack CardStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
  6 | @available(*, deprecated, message: "Use CardDeckPageViewStyle in the new BigUIPaging package https://github.com/notsobigcompany/BigUIPaging")
  7 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
  8 |     @State private var currentIndex: Double = 0.0
    |      `- error: 'State' is only available in macOS 10.15 or newer
  9 |     @State private var previousIndex: Double = 0.0
 10 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:9:6: error: 'State' is only available in macOS 10.15 or newer
  7 | public struct CardStack<Data, Content>: View where Data: RandomAccessCollection, Data.Element: Identifiable, Content: View {
  8 |     @State private var currentIndex: Double = 0.0
  9 |     @State private var previousIndex: Double = 0.0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 10 |
 11 |     private let data: Data
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:12:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 10 |
 11 |     private let data: Data
 12 |     @ViewBuilder private let content: (Data.Element) -> Content
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 13 |     @Binding var finalCurrentIndex: Int
 14 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:13:6: error: 'Binding' is only available in macOS 10.15 or newer
 11 |     private let data: Data
 12 |     @ViewBuilder private let content: (Data.Element) -> Content
 13 |     @Binding var finalCurrentIndex: Int
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 14 |
 15 |     /// Creates a stack with the given content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:20:45: error: 'Binding' is only available in macOS 10.15 or newer
 18 |     ///   - currentIndex: The index of the topmost card in the stack
 19 |     ///   - content: A view builder that creates the view for a single card
 20 |     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
 21 |         self.data = data
 22 |         self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:20:75: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 18 |     ///   - currentIndex: The index of the topmost card in the stack
 19 |     ///   - content: A view builder that creates the view for a single card
 20 |     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
 21 |         self.data = data
 22 |         self.content = content
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:26:27: error: 'View' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:39:35: error: 'Gesture' is only available in macOS 10.15 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 |                 `- error: 'Gesture' is only available in macOS 10.15 or newer
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
 41 |             .onChanged { value in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:7:96: error: 'Identifiable' is only available in macOS 10.15 or newer
  5 |  */
  6 | @available(*, deprecated, message: "Use CardDeckPageViewStyle in the new BigUIPaging package https://github.com/notsobigcompany/BigUIPaging")
  7 | 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
  8 |     @State private var currentIndex: Double = 0.0
  9 |     @State private var previousIndex: Double = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:7:119: error: 'View' is only available in macOS 10.15 or newer
  5 |  */
  6 | @available(*, deprecated, message: "Use CardDeckPageViewStyle in the new BigUIPaging package https://github.com/notsobigcompany/BigUIPaging")
  7 | 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
  8 |     @State private var currentIndex: Double = 0.0
  9 |     @State private var previousIndex: Double = 0.0
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:119:20: error: 'Color' is only available in macOS 10.15 or newer
115 | struct CardStackView_Previews: PreviewProvider {
116 |
117 |     struct DemoItem: Identifiable {
    |            `- note: add @available attribute to enclosing struct
118 |         let name: String
119 |         let color: Color
    |                    `- error: 'Color' is only available in macOS 10.15 or newer
120 |
121 |         var id: String {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:127:10: error: 'State' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            |- note: add @available attribute to enclosing struct
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
    |          `- error: 'State' is only available in macOS 10.15 or newer
128 |         @State private var tappedIndex: Int? = nil
129 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:128:10: error: 'State' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            |- note: add @available attribute to enclosing struct
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
    |          `- error: 'State' is only available in macOS 10.15 or newer
129 |
130 |         var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:130:24: error: 'View' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             |          `- error: 'View' is only available in macOS 10.15 or newer
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:168:31: error: 'View' is only available in macOS 10.15 or newer
113 | }
114 |
115 | struct CardStackView_Previews: PreviewProvider {
    |        `- note: add @available attribute to enclosing struct
116 |
117 |     struct DemoItem: Identifiable {
    :
166 |     }
167 |
168 |     static var previews: some View {
    |                |              `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing static property
169 |         DemoView()
170 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:27:9: error: 'ZStack' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
    |         |- error: 'ZStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
 29 |                 content(element)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:27: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
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         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
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
 29 |                 content(element)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:28: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
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             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
 29 |                 content(element)
 30 |                     .zIndex(zIndex(for: index))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:28:13: error: 'ForEach' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             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
 29 |                 content(element)
 30 |                     .zIndex(zIndex(for: index))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:28:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             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
 29 |                 content(element)
 30 |                     .zIndex(zIndex(for: index))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:30:22: error: 'zIndex' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
 29 |                 content(element)
 30 |                     .zIndex(zIndex(for: index))
    |                      |- error: 'zIndex' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 31 |                     .offset(x: xOffset(for: index), y: 0)
 32 |                     .scaleEffect(scale(for: index), anchor: .center)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:31:22: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
 29 |                 content(element)
 30 |                     .zIndex(zIndex(for: index))
 31 |                     .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
 32 |                     .scaleEffect(scale(for: index), anchor: .center)
 33 |                     .rotationEffect(.degrees(rotationDegrees(for: index)))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:32:22: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
    :
 30 |                     .zIndex(zIndex(for: index))
 31 |                     .offset(x: xOffset(for: index), y: 0)
 32 |                     .scaleEffect(scale(for: index), anchor: .center)
    |                      |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 33 |                     .rotationEffect(.degrees(rotationDegrees(for: index)))
 34 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:33:22: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
    :
 31 |                     .offset(x: xOffset(for: index), y: 0)
 32 |                     .scaleEffect(scale(for: index), anchor: .center)
 33 |                     .rotationEffect(.degrees(rotationDegrees(for: index)))
    |                      |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 34 |             }
 35 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:27: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
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         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
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
 29 |                 content(element)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:36:10: error: 'highPriorityGesture(_:including:)' is only available in macOS 10.15 or newer
 24 |     }
 25 |
 26 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 27 |         ZStack {
 28 |             ForEach(Array(data.enumerated()), id: \.element.id) { (index, element) in
    :
 34 |             }
 35 |         }
 36 |         .highPriorityGesture(dragGesture)
    |          |- error: 'highPriorityGesture(_:including:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 37 |     }
 38 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:47: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
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
 41 |             .onChanged { value in
    :
 45 |                 }
 46 |             }
 47 |             .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
 48 |                 self.snapToNearestAbsoluteIndex(value.predictedEndTranslation)
 49 |                 self.previousIndex = self.currentIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:40:9: error: 'DragGesture' is only available in macOS 10.15 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
    |         |- error: 'DragGesture' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 41 |             .onChanged { value in
 42 |                 withAnimation(.interactiveSpring()) {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:40:9: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
    |         |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
    |         `- note: add 'if #available' version check
 41 |             .onChanged { value in
 42 |                 withAnimation(.interactiveSpring()) {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:41:14: error: 'onChanged' is only available in macOS 10.15 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
 41 |             .onChanged { value in
    |              |- error: 'onChanged' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 42 |                 withAnimation(.interactiveSpring()) {
 43 |                     let x = (value.translation.width / 300) - previousIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:42:17: error: 'withAnimation' is only available in macOS 10.15 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
 41 |             .onChanged { value in
 42 |                 withAnimation(.interactiveSpring()) {
    |                 |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 43 |                     let x = (value.translation.width / 300) - previousIndex
 44 |                     self.currentIndex = -x
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:42:32: error: 'interactiveSpring(duration:extraBounce:blendDuration:)' is only available in macOS 10.15 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
 41 |             .onChanged { value in
 42 |                 withAnimation(.interactiveSpring()) {
    |                                |- error: 'interactiveSpring(duration:extraBounce:blendDuration:)' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 43 |                     let x = (value.translation.width / 300) - previousIndex
 44 |                     self.currentIndex = -x
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:44:21: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
 41 |             .onChanged { value in
 42 |                 withAnimation(.interactiveSpring()) {
 43 |                     let x = (value.translation.width / 300) - previousIndex
 44 |                     self.currentIndex = -x
    |                     |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 45 |                 }
 46 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:47:14: error: 'onEnded' is only available in macOS 10.15 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
 41 |             .onChanged { value in
    :
 45 |                 }
 46 |             }
 47 |             .onEnded { value in
    |              |- error: 'onEnded' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 48 |                 self.snapToNearestAbsoluteIndex(value.predictedEndTranslation)
 49 |                 self.previousIndex = self.currentIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:49:17: error: setter for 'previousIndex' is only available in macOS 10.15 or newer
 37 |     }
 38 |
 39 |     private var dragGesture: some Gesture {
    |                 `- note: add @available attribute to enclosing property
 40 |         DragGesture()
 41 |             .onChanged { value in
    :
 47 |             .onEnded { value in
 48 |                 self.snapToNearestAbsoluteIndex(value.predictedEndTranslation)
 49 |                 self.previousIndex = self.currentIndex
    |                 |- error: setter for 'previousIndex' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 50 |             }
 51 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:54:9: error: 'withAnimation' is only available in macOS 10.15 or newer
 51 |     }
 52 |
 53 |     private func snapToNearestAbsoluteIndex(_ predictedEndTranslation: CGSize) {
    |                  `- note: add @available attribute to enclosing instance method
 54 |         withAnimation(.interpolatingSpring(stiffness: 300, damping: 40)) {
    |         |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 55 |             let translation = predictedEndTranslation.width
 56 |             if abs(translation) > 200 {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:54:24: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
 51 |     }
 52 |
 53 |     private func snapToNearestAbsoluteIndex(_ predictedEndTranslation: CGSize) {
    |                  `- note: add @available attribute to enclosing instance method
 54 |         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
 55 |             let translation = predictedEndTranslation.width
 56 |             if abs(translation) > 200 {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:63:17: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
 51 |     }
 52 |
 53 |     private func snapToNearestAbsoluteIndex(_ predictedEndTranslation: CGSize) {
    |                  `- note: add @available attribute to enclosing instance method
 54 |         withAnimation(.interpolatingSpring(stiffness: 300, damping: 40)) {
 55 |             let translation = predictedEndTranslation.width
    :
 61 |                 }
 62 |             } else {
 63 |                 self.currentIndex = round(currentIndex)
    |                 |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 64 |             }
 65 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:71:13: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
 66 |     }
 67 |
 68 |     private func goTo(_ index: Double) {
    |                  `- note: add @available attribute to enclosing instance method
 69 |         let maxIndex = Double(data.count - 1)
 70 |         if index < 0 {
 71 |             self.currentIndex = 0
    |             |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 72 |         } else if index > maxIndex {
 73 |             self.currentIndex = maxIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:73:13: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
 66 |     }
 67 |
 68 |     private func goTo(_ index: Double) {
    |                  `- note: add @available attribute to enclosing instance method
 69 |         let maxIndex = Double(data.count - 1)
 70 |         if index < 0 {
 71 |             self.currentIndex = 0
 72 |         } else if index > maxIndex {
 73 |             self.currentIndex = maxIndex
    |             |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 74 |         } else {
 75 |             self.currentIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:75:13: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
 66 |     }
 67 |
 68 |     private func goTo(_ index: Double) {
    |                  `- note: add @available attribute to enclosing instance method
 69 |         let maxIndex = Double(data.count - 1)
 70 |         if index < 0 {
    :
 73 |             self.currentIndex = maxIndex
 74 |         } else {
 75 |             self.currentIndex = index
    |             |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 76 |         }
 77 |         self.finalCurrentIndex = Int(self.currentIndex)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:77:9: error: setter for 'finalCurrentIndex' is only available in macOS 10.15 or newer
 66 |     }
 67 |
 68 |     private func goTo(_ index: Double) {
    |                  `- note: add @available attribute to enclosing instance method
 69 |         let maxIndex = Double(data.count - 1)
 70 |         if index < 0 {
    :
 75 |             self.currentIndex = index
 76 |         }
 77 |         self.finalCurrentIndex = Int(self.currentIndex)
    |         |- error: setter for 'finalCurrentIndex' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 78 |     }
 79 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:132:47: error: 'red' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    |                                               |- error: 'red' is only available in macOS 10.15 or newer
    |                                               `- note: add 'if #available' version check
133 |                 DemoItem(name: "Orange", color: .orange),
134 |                 DemoItem(name: "Yellow", color: .yellow),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:133:50: error: 'orange' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
133 |                 DemoItem(name: "Orange", color: .orange),
    |                                                  |- error: 'orange' is only available in macOS 10.15 or newer
    |                                                  `- note: add 'if #available' version check
134 |                 DemoItem(name: "Yellow", color: .yellow),
135 |                 DemoItem(name: "Green", color: .green),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:134:50: error: 'yellow' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
133 |                 DemoItem(name: "Orange", color: .orange),
134 |                 DemoItem(name: "Yellow", color: .yellow),
    |                                                  |- error: 'yellow' is only available in macOS 10.15 or newer
    |                                                  `- note: add 'if #available' version check
135 |                 DemoItem(name: "Green", color: .green),
136 |                 DemoItem(name: "Blue", color: .blue),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:135:49: error: 'green' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
133 |                 DemoItem(name: "Orange", color: .orange),
134 |                 DemoItem(name: "Yellow", color: .yellow),
135 |                 DemoItem(name: "Green", color: .green),
    |                                                 |- error: 'green' is only available in macOS 10.15 or newer
    |                                                 `- note: add 'if #available' version check
136 |                 DemoItem(name: "Blue", color: .blue),
137 |                 DemoItem(name: "Purple", color: .purple),
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:136:48: error: 'blue' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
134 |                 DemoItem(name: "Yellow", color: .yellow),
135 |                 DemoItem(name: "Green", color: .green),
136 |                 DemoItem(name: "Blue", color: .blue),
    |                                                |- error: 'blue' is only available in macOS 10.15 or newer
    |                                                `- note: add 'if #available' version check
137 |                 DemoItem(name: "Purple", color: .purple),
138 |             ]
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:137:50: error: 'purple' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
135 |                 DemoItem(name: "Green", color: .green),
136 |                 DemoItem(name: "Blue", color: .blue),
137 |                 DemoItem(name: "Purple", color: .purple),
    |                                                  |- error: 'purple' is only available in macOS 10.15 or newer
    |                                                  `- note: add 'if #available' version check
138 |             ]
139 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:140:13: error: 'VStack' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
138 |             ]
139 |
140 |             VStack {
    |             |- error: 'VStack' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
141 |                 CardStack(colors, currentIndex: $currentIndex) { namedColor in
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:140: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
138 |             ]
139 |
140 |             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
141 |                 CardStack(colors, currentIndex: $currentIndex) { namedColor in
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:141:17: warning: 'CardStack' is deprecated: Use CardDeckPageViewStyle in the new BigUIPaging package https://github.com/notsobigcompany/BigUIPaging
139 |
140 |             VStack {
141 |                 CardStack(colors, currentIndex: $currentIndex) { namedColor in
    |                 `- warning: 'CardStack' is deprecated: Use CardDeckPageViewStyle in the new BigUIPaging package https://github.com/notsobigcompany/BigUIPaging
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
143 |                         .fill(namedColor.color)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:141: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
139 |
140 |             VStack {
141 |                 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
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
143 |                         .fill(namedColor.color)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:141: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
139 |
140 |             VStack {
141 |                 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
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
143 |                         .fill(namedColor.color)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:142:21: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
140 |             VStack {
141 |                 CardStack(colors, currentIndex: $currentIndex) { namedColor in
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
    |                     |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
143 |                         .fill(namedColor.color)
144 |                         .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:143:26: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
141 |                 CardStack(colors, currentIndex: $currentIndex) { namedColor in
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
143 |                         .fill(namedColor.color)
    |                          |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
    |                          `- note: add 'if #available' version check
144 |                         .overlay(
145 |                             Text(namedColor.name)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:144:26: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
143 |                         .fill(namedColor.color)
144 |                         .overlay(
    |                          |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
145 |                             Text(namedColor.name)
146 |                                 .font(.largeTitle)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:145:29: error: 'Text' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
143 |                         .fill(namedColor.color)
144 |                         .overlay(
145 |                             Text(namedColor.name)
    |                             |- error: 'Text' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
146 |                                 .font(.largeTitle)
147 |                                 .fontWeight(.bold)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:146:34: error: 'font' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
144 |                         .overlay(
145 |                             Text(namedColor.name)
146 |                                 .font(.largeTitle)
    |                                  |- error: 'font' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
147 |                                 .fontWeight(.bold)
148 |                                 .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:146:40: error: 'largeTitle' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
144 |                         .overlay(
145 |                             Text(namedColor.name)
146 |                                 .font(.largeTitle)
    |                                        |- error: 'largeTitle' is only available in macOS 10.15 or newer
    |                                        `- note: add 'if #available' version check
147 |                                 .fontWeight(.bold)
148 |                                 .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:147:34: error: 'fontWeight' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
145 |                             Text(namedColor.name)
146 |                                 .font(.largeTitle)
147 |                                 .fontWeight(.bold)
    |                                  |- error: 'fontWeight' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
148 |                                 .foregroundColor(.white)
149 |                         )
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:148:34: error: 'foregroundColor' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
146 |                                 .font(.largeTitle)
147 |                                 .fontWeight(.bold)
148 |                                 .foregroundColor(.white)
    |                                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
    |                                  `- note: add 'if #available' version check
149 |                         )
150 |                         .frame(height: 400)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:148:51: error: 'white' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
146 |                                 .font(.largeTitle)
147 |                                 .fontWeight(.bold)
148 |                                 .foregroundColor(.white)
    |                                                   |- error: 'white' is only available in macOS 10.15 or newer
    |                                                   `- note: add 'if #available' version check
149 |                         )
150 |                         .frame(height: 400)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:150:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
148 |                                 .foregroundColor(.white)
149 |                         )
150 |                         .frame(height: 400)
    |                          |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
151 |                         .onTapGesture {
152 |                             tappedIndex = currentIndex
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:151:26: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
149 |                         )
150 |                         .frame(height: 400)
151 |                         .onTapGesture {
    |                          |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
152 |                             tappedIndex = currentIndex
153 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:152:29: error: setter for 'tappedIndex' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
150 |                         .frame(height: 400)
151 |                         .onTapGesture {
152 |                             tappedIndex = currentIndex
    |                             |- error: setter for 'tappedIndex' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
153 |                         }
154 |                         .padding(50)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:154:26: error: 'padding' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
152 |                             tappedIndex = currentIndex
153 |                         }
154 |                         .padding(50)
    |                          |- error: 'padding' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
155 |
156 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:158: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
156 |                 }
157 |
158 |                 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
159 |                 if let tappedIndex = tappedIndex {
160 |                     Text("Card \(tappedIndex) was tapped")
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:158:17: error: 'Text' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
156 |                 }
157 |
158 |                 Text("Current card is \(currentIndex)")
    |                 |- error: 'Text' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
159 |                 if let tappedIndex = tappedIndex {
160 |                     Text("Card \(tappedIndex) was tapped")
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:160: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
158 |                 Text("Current card is \(currentIndex)")
159 |                 if let tappedIndex = tappedIndex {
160 |                     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
161 |                 } else {
162 |                     Text("No card has been tapped")
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:160:21: error: 'Text' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
158 |                 Text("Current card is \(currentIndex)")
159 |                 if let tappedIndex = tappedIndex {
160 |                     Text("Card \(tappedIndex) was tapped")
    |                     |- error: 'Text' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
161 |                 } else {
162 |                     Text("No card has been tapped")
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:159:50: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
157 |
158 |                 Text("Current card is \(currentIndex)")
159 |                 if let tappedIndex = tappedIndex {
    |                                                  |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                                                  `- note: add 'if #available' version check
160 |                     Text("Card \(tappedIndex) was tapped")
161 |                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:159: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
157 |
158 |                 Text("Current card is \(currentIndex)")
159 |                 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
160 |                     Text("Card \(tappedIndex) was tapped")
161 |                 } else {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:162: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
160 |                     Text("Card \(tappedIndex) was tapped")
161 |                 } else {
162 |                     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
163 |                 }
164 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:162:21: error: 'Text' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
160 |                     Text("Card \(tappedIndex) was tapped")
161 |                 } else {
162 |                     Text("No card has been tapped")
    |                     |- error: 'Text' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
163 |                 }
164 |             }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:161:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
159 |                 if let tappedIndex = tappedIndex {
160 |                     Text("Card \(tappedIndex) was tapped")
161 |                 } else {
    |                        |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
162 |                     Text("No card has been tapped")
163 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:161: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
159 |                 if let tappedIndex = tappedIndex {
160 |                     Text("Card \(tappedIndex) was tapped")
161 |                 } 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
162 |                     Text("No card has been tapped")
163 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:140: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
138 |             ]
139 |
140 |             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
141 |                 CardStack(colors, currentIndex: $currentIndex) { namedColor in
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStack.swift:140: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
124 |     }
125 |
126 |     struct DemoView: View {
    |            `- note: add @available attribute to enclosing struct
127 |         @State private var currentIndex = 0
128 |         @State private var tappedIndex: Int? = nil
129 |
130 |         var body: some View {
    |             `- note: add @available attribute to enclosing property
131 |             let colors = [
132 |                 DemoItem(name: "Red", color: .red),
    :
138 |             ]
139 |
140 |             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
141 |                 CardStack(colors, currentIndex: $currentIndex) { namedColor in
142 |                     RoundedRectangle(cornerRadius: 20, style: .continuous)
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.