Build Information
Failed to build CardStack, reference v0.1.3 (15055e), with Swift 6.2 for macOS (SPM) on 19 Jun 2025 02:20:43 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nhoogendoorn/CardStack.git
Reference: v0.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nhoogendoorn/CardStack
* tag v0.1.3 -> FETCH_HEAD
HEAD is now at 15055eb chore: updated the minimum iOS version to 13.0
Cloned https://github.com/nhoogendoorn/CardStack.git
Revision (git rev-parse @):
15055eb52796546111e89c8acf7c6e7a4fcf22a4
SUCCESS checkout https://github.com/nhoogendoorn/CardStack.git at v0.1.3
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/nhoogendoorn/CardStack.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/16] Compiling CardStack CardContentView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:12:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
13 | let info: Data
14 | let configuration: StackConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
14 | let configuration: StackConfiguration
15 |
16 | @State var didAppear: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
17 | @State var isActive: Bool = false
18 | @State var originalItemSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
15 |
16 | @State var didAppear: Bool = false
17 | @State var isActive: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
18 | @State var originalItemSize: CGSize = .zero
19 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
16 | @State var didAppear: Bool = false
17 | @State var isActive: Bool = false
18 | @State var originalItemSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
19 |
20 | var itemSize: CGSize {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:23:6: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
21 | getItemSize(geoSize: originalItemSize)
22 | }
23 | @Binding var dragValue: CGPoint
| `- error: 'Binding' is only available in macOS 10.15 or newer
24 |
25 | init(info: Data, configuration: StackConfiguration, dragValue: Binding<CGPoint>) {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:25:68: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
23 | @Binding var dragValue: CGPoint
24 |
25 | init(info: Data, configuration: StackConfiguration, dragValue: Binding<CGPoint>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.info = info
27 | self.configuration = configuration
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:31:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:32:9: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | Content(data: info)
34 | .background(GeometryReader { geo in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:34:18: error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
34 | .background(GeometryReader { geo in
| |- error: 'background(_:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | Color.clear
36 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:34:29: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
34 | .background(GeometryReader { geo in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | Color.clear
36 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:35:21: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
34 | .background(GeometryReader { geo in
35 | Color.clear
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .onAppear {
37 | self.originalItemSize = geo.size
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:35:27: error: 'clear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
34 | .background(GeometryReader { geo in
35 | Color.clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .onAppear {
37 | self.originalItemSize = geo.size
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:36:26: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
34 | .background(GeometryReader { geo in
35 | Color.clear
36 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | self.originalItemSize = geo.size
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:37:29: error: setter for 'originalItemSize' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
35 | Color.clear
36 | .onAppear {
37 | self.originalItemSize = geo.size
| |- error: setter for 'originalItemSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | }.frame(maxWidth: .infinity, maxHeight: .infinity))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:39:19: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
37 | self.originalItemSize = geo.size
38 | }
39 | }.frame(maxWidth: .infinity, maxHeight: .infinity))
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 |
41 | // Add animation to show correct scrolling speed.
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:42:18: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
40 |
41 | // Add animation to show correct scrolling speed.
42 | .scaleEffect(getScaleSize())
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | .animation(.easeInOut(duration: didAppear ? 0.3 : .zero))
44 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:43:18: error: 'animation' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
41 | // Add animation to show correct scrolling speed.
42 | .scaleEffect(getScaleSize())
43 | .animation(.easeInOut(duration: didAppear ? 0.3 : .zero))
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 |
45 | // Base offset should always be set first, otherwise the
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:43:29: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
41 | // Add animation to show correct scrolling speed.
42 | .scaleEffect(getScaleSize())
43 | .animation(.easeInOut(duration: didAppear ? 0.3 : .zero))
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 |
45 | // Base offset should always be set first, otherwise the
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:47:18: error: 'offset' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
45 | // Base offset should always be set first, otherwise the
46 | // dragging offset will give an incorrect value.
47 | .offset(getCardBaseOffset())
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | .offset(getCardDraggingOffset())
49 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:48:18: error: 'offset' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
46 | // dragging offset will give an incorrect value.
47 | .offset(getCardBaseOffset())
48 | .offset(getCardDraggingOffset())
| |- error: 'offset' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .onAppear {
50 | self.didAppear = true
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:49:18: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
47 | .offset(getCardBaseOffset())
48 | .offset(getCardDraggingOffset())
49 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | self.didAppear = true
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:50:21: error: setter for 'didAppear' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
48 | .offset(getCardDraggingOffset())
49 | .onAppear {
50 | self.didAppear = true
| |- error: setter for 'didAppear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | }
52 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:52:14: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
50 | self.didAppear = true
51 | }
52 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | self.isActive.toggle()
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:53:17: error: cannot pass as inout because setter for 'isActive' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
51 | }
52 | .onTapGesture {
53 | self.isActive.toggle()
| |- error: cannot pass as inout because setter for 'isActive' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:56:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
:
54 | }
55 | }
56 | .frame(width: itemSize.width, height: itemSize.height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 |
[4/16] Compiling CardStack DragGesture.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Extensions/DragGesture.swift:11:11: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension DragGesture.Value {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 | func getSwipeDirection(minimumDistance: CGFloat = .zero) -> HorizontalDirection {
13 | if isSwipingForward(minimumDistance: minimumDistance) {
[5/16] Compiling CardStack CardViewHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Extensions/DragGesture.swift:11:11: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension DragGesture.Value {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 | func getSwipeDirection(minimumDistance: CGFloat = .zero) -> HorizontalDirection {
13 | if isSwipingForward(minimumDistance: minimumDistance) {
[6/16] Compiling CardStack CardData.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Protocols/CardData.swift:11:27: error: 'Identifiable' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public protocol CardData: Identifiable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
12 | var id: String { get }
13 | }
[7/16] Compiling CardStack StackConfiguration.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/16] Compiling CardStack NavigationHelper.swift
[9/16] Compiling CardStack DragInformation.swift
[10/16] Emitting module CardStack
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
| `- error: 'Published' is only available in macOS 10.15 or newer
13 | @Published var items: [Data] = []
14 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
14 |
15 | var reversedList: [Data] {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:11:44: error: 'ObservableObject' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Extensions/CGFloat.swift:12:39: error: cannot find 'UIScreen' in scope
10 |
11 | extension CGFloat {
12 | static let screenWidth: CGFloat = UIScreen.main.bounds.width
| `- error: cannot find 'UIScreen' in scope
13 | static let cardDistance: CGFloat = 15
14 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Extensions/DragGesture.swift:11:11: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension DragGesture.Value {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
12 | func getSwipeDirection(minimumDistance: CGFloat = .zero) -> HorizontalDirection {
13 | if isSwipingForward(minimumDistance: minimumDistance) {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Protocols/CardData.swift:11:27: error: 'Identifiable' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public protocol CardData: Identifiable {
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
12 | var id: String { get }
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Protocols/CardView.swift:11:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public protocol CardView: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
12 | init<Data: CardData>(data: Data)
13 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:12:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
13 | let info: Data
14 | let configuration: StackConfiguration
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:16:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
14 | let configuration: StackConfiguration
15 |
16 | @State var didAppear: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
17 | @State var isActive: Bool = false
18 | @State var originalItemSize: CGSize = .zero
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:17:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
15 |
16 | @State var didAppear: Bool = false
17 | @State var isActive: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
18 | @State var originalItemSize: CGSize = .zero
19 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
16 | @State var didAppear: Bool = false
17 | @State var isActive: Bool = false
18 | @State var originalItemSize: CGSize = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
19 |
20 | var itemSize: CGSize {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:23:6: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
21 | getItemSize(geoSize: originalItemSize)
22 | }
23 | @Binding var dragValue: CGPoint
| `- error: 'Binding' is only available in macOS 10.15 or newer
24 |
25 | init(info: Data, configuration: StackConfiguration, dragValue: Binding<CGPoint>) {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:25:68: error: 'Binding' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
23 | @Binding var dragValue: CGPoint
24 |
25 | init(info: Data, configuration: StackConfiguration, dragValue: Binding<CGPoint>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.info = info
27 | self.configuration = configuration
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardContentView.swift:31:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardContentView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | let info: Data
:
29 | }
30 |
31 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | Content(data: info)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:12:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
13 | @State var dragValue: CGPoint = .zero
14 | var configuration: StackConfiguration?
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
14 | var configuration: StackConfiguration?
15 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:20:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:48:56: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
46 | }
47 |
48 | fileprivate func handleHorizontalDragging(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | self.dragValue = CGPoint(x: value.horizontalDistance(), y: .zero)
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:52:49: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
50 | }
51 |
52 | fileprivate func handleDraggingEnd(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | self.handleSwipeDirection(value)
54 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:59:52: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
57 | }
58 |
59 | fileprivate func handleSwipeDirection(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | let minDistance = configuration?.minimumSwipingDistance ?? StackConfiguration.shared.minimumSwipingDistance
61 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackView.swift:20:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct CardStackView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | var configuration: StackConfiguration?
13 | let items: [Data]
:
18 | }
19 |
20 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
21 | CardStackMainView<Content, Data>(configuration: configuration)
22 | .animation(.default)
[11/16] Compiling CardStack CardStackMainView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:12:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
13 | @State var dragValue: CGPoint = .zero
14 | var configuration: StackConfiguration?
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:13:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
14 | var configuration: StackConfiguration?
15 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:20:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:48:56: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
46 | }
47 |
48 | fileprivate func handleHorizontalDragging(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | self.dragValue = CGPoint(x: value.horizontalDistance(), y: .zero)
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:52:49: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
50 | }
51 |
52 | fileprivate func handleDraggingEnd(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | self.handleSwipeDirection(value)
54 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:59:52: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
57 | }
58 |
59 | fileprivate func handleSwipeDirection(_ value: DragGesture.Value) {
| | `- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
60 | let minDistance = configuration?.minimumSwipingDistance ?? StackConfiguration.shared.minimumSwipingDistance
61 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:21:9: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | // Reverse the item list so the first item in the list
23 | // will show in front.
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:21: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
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
| |- 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
22 | // Reverse the item list so the first item in the list
23 | // will show in front.
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:21:28: error: 'trailing' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
| |- error: 'trailing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | // Reverse the item list so the first item in the list
23 | // will show in front.
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:24: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
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
23 | // will show in front.
24 | ForEach(navigation.reversedList, id: \.id) { item 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
25 | CardContentView<Content, Data>(info: item,
26 | configuration: self.configuration ?? StackConfiguration.shared,
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:24:13: error: 'ForEach' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
23 | // will show in front.
24 | ForEach(navigation.reversedList, id: \.id) { item in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | CardContentView<Content, Data>(info: item,
26 | configuration: self.configuration ?? StackConfiguration.shared,
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:24:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
23 | // will show in front.
24 | ForEach(navigation.reversedList, id: \.id) { item in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | CardContentView<Content, Data>(info: item,
26 | configuration: self.configuration ?? StackConfiguration.shared,
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:21:38: 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
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
| |- 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
22 | // Reverse the item list so the first item in the list
23 | // will show in front.
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:29:11: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
:
27 | dragValue: self.$dragValue)
28 | }
29 | }.frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | // We need to adjust the offset for the current index after flipping
31 | // the cards otherwise it will stay in the same position. We want to
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:33:14: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
:
31 | // the cards otherwise it will stay in the same position. We want to
32 | // have every list item on the place of the first index in the list.
33 | .offset(x: getOffsetForStackedView(), y: .zero)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | .gesture(DragGesture()
35 | .onChanged({ (value: DragGesture.Value) in
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:34:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
:
32 | // have every list item on the place of the first index in the list.
33 | .offset(x: getOffsetForStackedView(), y: .zero)
34 | .gesture(DragGesture()
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .onChanged({ (value: DragGesture.Value) in
36 | self.handleHorizontalDragging(value)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:34:22: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
:
32 | // have every list item on the place of the first index in the list.
33 | .offset(x: getOffsetForStackedView(), y: .zero)
34 | .gesture(DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .onChanged({ (value: DragGesture.Value) in
36 | self.handleHorizontalDragging(value)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:34:22: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
:
32 | // have every list item on the place of the first index in the list.
33 | .offset(x: getOffsetForStackedView(), y: .zero)
34 | .gesture(DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
35 | .onChanged({ (value: DragGesture.Value) in
36 | self.handleHorizontalDragging(value)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:35:18: error: 'onChanged' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
:
33 | .offset(x: getOffsetForStackedView(), y: .zero)
34 | .gesture(DragGesture()
35 | .onChanged({ (value: DragGesture.Value) in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | self.handleHorizontalDragging(value)
37 | })
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:35:38: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
:
33 | .offset(x: getOffsetForStackedView(), y: .zero)
34 | .gesture(DragGesture()
35 | .onChanged({ (value: DragGesture.Value) in
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | self.handleHorizontalDragging(value)
37 | })
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:38:18: error: 'onEnded' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
:
36 | self.handleHorizontalDragging(value)
37 | })
38 | .onEnded({ (value: DragGesture.Value) in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | self.handleDraggingEnd(value)
40 | })
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:38:36: error: 'DragGesture' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
18 | }
19 |
20 | var body: some View {
| `- note: add @available attribute to enclosing property
21 | ZStack(alignment: .trailing) {
22 | // Reverse the item list so the first item in the list
:
36 | self.handleHorizontalDragging(value)
37 | })
38 | .onEnded({ (value: DragGesture.Value) in
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | self.handleDraggingEnd(value)
40 | })
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackMainView.swift:49:9: error: setter for 'dragValue' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
46 | }
47 |
48 | fileprivate func handleHorizontalDragging(_ value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
49 | self.dragValue = CGPoint(x: value.horizontalDistance(), y: .zero)
| |- error: setter for 'dragValue' 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/Views/CardStackMainView.swift:56:9: error: setter for 'dragValue' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CardStackMainView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | @EnvironmentObject var navigation: CardNavigation<Data>
13 | @State var dragValue: CGPoint = .zero
:
50 | }
51 |
52 | fileprivate func handleDraggingEnd(_ value: DragGesture.Value) {
| `- note: add @available attribute to enclosing instance method
53 | self.handleSwipeDirection(value)
54 |
55 | // Reset dragvalue after moving so that the card is at its base position.
56 | self.dragValue = .zero
| |- error: setter for 'dragValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 |
[12/16] Compiling CardStack CardView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Protocols/CardView.swift:11:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public protocol CardView: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing protocol
12 | init<Data: CardData>(data: Data)
13 | }
[13/16] Compiling CardStack StackStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Extensions/CGFloat.swift:12:39: error: cannot find 'UIScreen' in scope
10 |
11 | extension CGFloat {
12 | static let screenWidth: CGFloat = UIScreen.main.bounds.width
| `- error: cannot find 'UIScreen' in scope
13 | static let cardDistance: CGFloat = 15
14 | }
[14/16] Compiling CardStack CGFloat.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Extensions/CGFloat.swift:12:39: error: cannot find 'UIScreen' in scope
10 |
11 | extension CGFloat {
12 | static let screenWidth: CGFloat = UIScreen.main.bounds.width
| `- error: cannot find 'UIScreen' in scope
13 | static let cardDistance: CGFloat = 15
14 | }
[15/16] Compiling CardStack CardNavigation.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
| `- error: 'Published' is only available in macOS 10.15 or newer
13 | @Published var items: [Data] = []
14 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
14 |
15 | var reversedList: [Data] {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:11:44: error: 'ObservableObject' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
<unknown>:0: error: cannot convert value of type 'KeyPath<CardNavigation<Data>, Int>' to expected argument type 'ReferenceWritableKeyPath<CardNavigation<Data>, Int>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CardNavigation<Data>, [Data]>' to expected argument type 'ReferenceWritableKeyPath<CardNavigation<Data>, [Data]>'
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:24:9: error: setter for 'items' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
:
17 | }
18 |
19 | init(items: [Data], startIndex: Int) {
| `- note: add @available attribute to enclosing initializer
20 | guard items.indices.contains(startIndex) else {
21 | assertionFailure("Start index out of bounds")
22 | return
23 | }
24 | self.items = items
| |- error: setter for 'items' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | self.currentIndex = startIndex
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:25:9: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
:
17 | }
18 |
19 | init(items: [Data], startIndex: Int) {
| `- note: add @available attribute to enclosing initializer
20 | guard items.indices.contains(startIndex) else {
21 | assertionFailure("Start index out of bounds")
:
23 | }
24 | self.items = items
25 | self.currentIndex = startIndex
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:35:13: error: cannot pass as inout because setter for 'currentIndex' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
:
26 | }
27 |
28 | func move(_ direction: HorizontalDirection) {
| `- note: add @available attribute to enclosing instance method
29 | let allowedToMove = NavigationHelper.allowedToMove(direction: direction,
30 | items: items,
:
33 | switch direction {
34 | case .forward:
35 | currentIndex += 1
| |- error: cannot pass as inout because setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | case .backward:
37 | currentIndex -= 1
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:37:13: error: cannot pass as inout because setter for 'currentIndex' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
:
26 | }
27 |
28 | func move(_ direction: HorizontalDirection) {
| `- note: add @available attribute to enclosing instance method
29 | let allowedToMove = NavigationHelper.allowedToMove(direction: direction,
30 | items: items,
:
35 | currentIndex += 1
36 | case .backward:
37 | currentIndex -= 1
| |- error: cannot pass as inout because setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | case .none:
39 | break
[16/16] Compiling CardStack HorizontalDirection.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
| `- error: 'Published' is only available in macOS 10.15 or newer
13 | @Published var items: [Data] = []
14 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
| `- error: 'Published' is only available in macOS 10.15 or newer
14 |
15 | var reversedList: [Data] {
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:11:44: error: 'ObservableObject' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
<unknown>:0: error: cannot convert value of type 'KeyPath<CardNavigation<Data>, Int>' to expected argument type 'ReferenceWritableKeyPath<CardNavigation<Data>, Int>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CardNavigation<Data>, [Data]>' to expected argument type 'ReferenceWritableKeyPath<CardNavigation<Data>, [Data]>'
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:24:9: error: setter for 'items' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
:
17 | }
18 |
19 | init(items: [Data], startIndex: Int) {
| `- note: add @available attribute to enclosing initializer
20 | guard items.indices.contains(startIndex) else {
21 | assertionFailure("Start index out of bounds")
22 | return
23 | }
24 | self.items = items
| |- error: setter for 'items' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | self.currentIndex = startIndex
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:25:9: error: setter for 'currentIndex' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
:
17 | }
18 |
19 | init(items: [Data], startIndex: Int) {
| `- note: add @available attribute to enclosing initializer
20 | guard items.indices.contains(startIndex) else {
21 | assertionFailure("Start index out of bounds")
:
23 | }
24 | self.items = items
25 | self.currentIndex = startIndex
| |- error: setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 |
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:35:13: error: cannot pass as inout because setter for 'currentIndex' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
:
26 | }
27 |
28 | func move(_ direction: HorizontalDirection) {
| `- note: add @available attribute to enclosing instance method
29 | let allowedToMove = NavigationHelper.allowedToMove(direction: direction,
30 | items: items,
:
33 | switch direction {
34 | case .forward:
35 | currentIndex += 1
| |- error: cannot pass as inout because setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | case .backward:
37 | currentIndex -= 1
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardNavigation/CardNavigation.swift:37:13: error: cannot pass as inout because setter for 'currentIndex' is only available in macOS 10.15 or newer
9 | import Foundation
10 |
11 | open class CardNavigation<Data: CardData>: ObservableObject {
| `- note: add @available attribute to enclosing generic class
12 | @Published var currentIndex: Int = .zero
13 | @Published var items: [Data] = []
:
26 | }
27 |
28 | func move(_ direction: HorizontalDirection) {
| `- note: add @available attribute to enclosing instance method
29 | let allowedToMove = NavigationHelper.allowedToMove(direction: direction,
30 | items: items,
:
35 | currentIndex += 1
36 | case .backward:
37 | currentIndex -= 1
| |- error: cannot pass as inout because setter for 'currentIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | case .none:
39 | break
[17/17] Compiling CardStack CardStackView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackView.swift:20:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct CardStackView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | var configuration: StackConfiguration?
13 | let items: [Data]
:
18 | }
19 |
20 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
21 | CardStackMainView<Content, Data>(configuration: configuration)
22 | .animation(.default)
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackView.swift:22:14: error: 'animation' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct CardStackView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | var configuration: StackConfiguration?
13 | let items: [Data]
:
18 | }
19 |
20 | public var body: some View {
| `- note: add @available attribute to enclosing property
21 | CardStackMainView<Content, Data>(configuration: configuration)
22 | .animation(.default)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .frame(maxWidth: .infinity, maxHeight: .infinity)
24 | .environmentObject(CardNavigation(items: items,
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackView.swift:22:25: error: 'default' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct CardStackView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | var configuration: StackConfiguration?
13 | let items: [Data]
:
18 | }
19 |
20 | public var body: some View {
| `- note: add @available attribute to enclosing property
21 | CardStackMainView<Content, Data>(configuration: configuration)
22 | .animation(.default)
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | .frame(maxWidth: .infinity, maxHeight: .infinity)
24 | .environmentObject(CardNavigation(items: items,
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackView.swift:23:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct CardStackView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | var configuration: StackConfiguration?
13 | let items: [Data]
:
18 | }
19 |
20 | public var body: some View {
| `- note: add @available attribute to enclosing property
21 | CardStackMainView<Content, Data>(configuration: configuration)
22 | .animation(.default)
23 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | .environmentObject(CardNavigation(items: items,
25 | startIndex: configuration?.startIndex ?? 0))
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/Views/CardStackView.swift:24:14: error: 'environmentObject' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct CardStackView<Content: CardView, Data: CardData>: View {
| `- note: add @available attribute to enclosing generic struct
12 | var configuration: StackConfiguration?
13 | let items: [Data]
:
18 | }
19 |
20 | public var body: some View {
| `- note: add @available attribute to enclosing property
21 | CardStackMainView<Content, Data>(configuration: configuration)
22 | .animation(.default)
23 | .frame(maxWidth: .infinity, maxHeight: .infinity)
24 | .environmentObject(CardNavigation(items: items,
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | startIndex: configuration?.startIndex ?? 0))
26 | }
BUILD FAILURE 6.2 macosSpm