Build Information
Failed to build SwiftMotionKit, reference main (6f8f7d), with Swift 6.1 for macOS (SPM) on 17 Mar 2026 19:46:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.69.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/amrita-arun/SwiftMotionKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/amrita-arun/SwiftMotionKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6f8f7d3 Merge branch 'main' of https://github.com/amrita-arun/SwiftMotionKit
Cloned https://github.com/amrita-arun/SwiftMotionKit.git
Revision (git rev-parse @):
6f8f7d3048bef228eb3e98a9ab8a8dde5c59b4da
SUCCESS checkout https://github.com/amrita-arun/SwiftMotionKit.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/amrita-arun/SwiftMotionKit.git
https://github.com/amrita-arun/SwiftMotionKit.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftMotionKit",
"name" : "SwiftMotionKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "SwiftMotionKit",
"targets" : [
"SwiftMotionKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftMotionKitTests",
"module_type" : "SwiftTarget",
"name" : "SwiftMotionKitTests",
"path" : "Tests/SwiftMotionKitTests",
"sources" : [
"SwiftMotionKitTests.swift"
],
"target_dependencies" : [
"SwiftMotionKit"
],
"type" : "test"
},
{
"c99name" : "SwiftMotionKit",
"module_type" : "SwiftTarget",
"name" : "SwiftMotionKit",
"path" : "Sources/SwiftMotionKit",
"product_memberships" : [
"SwiftMotionKit"
],
"sources" : [
"Internal/CGSize+Extensions.swift",
"Internal/Random.swift",
"MicroInteractions/HapticsManager.swift",
"MotionPresets/MotionPreset.swift",
"SwiftMotionKit.swift",
"SwipeStack/RecyclingMode.swift",
"SwipeStack/StackStyle.swift",
"SwipeStack/SwipeCardStack.swift",
"SwipeStack/SwipeDirection.swift",
"SwipeStack/SwipeThreshold.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/12] Compiling SwiftMotionKit RecyclingMode.swift
[4/12] Compiling SwiftMotionKit HapticsManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:24:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HapticsManager' may have shared mutable state; this is an error in the Swift 6 language mode
21 | #endif
22 |
23 | public final class HapticsManager {
| `- note: class 'HapticsManager' does not conform to the 'Sendable' protocol
24 | public static let shared = HapticsManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HapticsManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | // Minimum interval between identical haptics (seconds)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:65:31: error: cannot find type 'UIImpactFeedbackGenerator' in scope
63 |
64 | /// Impact haptic (light/medium/heavy)
65 | public func impact(style: UIImpactFeedbackGenerator.FeedbackStyle = .medium, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UIImpactFeedbackGenerator' in scope
66 | #if canImport(UIKit)
67 | let key = "impact.\(style)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:77:38: error: cannot find type 'UINotificationFeedbackGenerator' in scope
75 |
76 | /// Notification haptic (success/warning/error)
77 | public func notification(_ type: UINotificationFeedbackGenerator.FeedbackType = .success, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UINotificationFeedbackGenerator' in scope
78 | #if canImport(UIKit)
79 | let key = "notification.\(type)"
[5/13] Compiling SwiftMotionKit SwipeDirection.swift
[6/13] Compiling SwiftMotionKit SwipeThreshold.swift
[7/13] Compiling SwiftMotionKit SwiftMotionKit.swift
[8/13] Compiling SwiftMotionKit CGSize+Extensions.swift
[9/13] Compiling SwiftMotionKit StackStyle.swift
[10/13] Compiling SwiftMotionKit MotionPreset.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/13] Compiling SwiftMotionKit Random.swift
[12/13] Emitting module SwiftMotionKit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:24:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HapticsManager' may have shared mutable state; this is an error in the Swift 6 language mode
21 | #endif
22 |
23 | public final class HapticsManager {
| `- note: class 'HapticsManager' does not conform to the 'Sendable' protocol
24 | public static let shared = HapticsManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'HapticsManager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | // Minimum interval between identical haptics (seconds)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:65:31: error: cannot find type 'UIImpactFeedbackGenerator' in scope
63 |
64 | /// Impact haptic (light/medium/heavy)
65 | public func impact(style: UIImpactFeedbackGenerator.FeedbackStyle = .medium, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UIImpactFeedbackGenerator' in scope
66 | #if canImport(UIKit)
67 | let key = "impact.\(style)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:77:38: error: cannot find type 'UINotificationFeedbackGenerator' in scope
75 |
76 | /// Notification haptic (success/warning/error)
77 | public func notification(_ type: UINotificationFeedbackGenerator.FeedbackType = .success, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UINotificationFeedbackGenerator' in scope
78 | #if canImport(UIKit)
79 | let key = "notification.\(type)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:220:32: error: 'Identifiable' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:225:15: error: 'View' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
223 | depthIndex: Int,
224 | isTop: Bool
225 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
226 | switch style {
227 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:219:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:218:19: error: 'View' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
[13/13] Compiling SwiftMotionKit SwipeCardStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:220:32: error: 'Identifiable' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:225:15: error: 'View' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
223 | depthIndex: Int,
224 | isTop: Bool
225 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
226 | switch style {
227 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:219:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:218:19: error: 'View' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:77:38: error: cannot find type 'UINotificationFeedbackGenerator' in scope
75 |
76 | /// Notification haptic (success/warning/error)
77 | public func notification(_ type: UINotificationFeedbackGenerator.FeedbackType = .success, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UINotificationFeedbackGenerator' in scope
78 | #if canImport(UIKit)
79 | let key = "notification.\(type)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:168:49: error: cannot infer contextual base in reference to member 'success'
166 |
167 | // success haptic on dismissal (notification success)
168 | HapticsManager.shared.notification(.success)
| `- error: cannot infer contextual base in reference to member 'success'
169 |
170 | performSwipe(direction: direction, item: item, width: width, predictedTranslation: predictedHorizontal)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:229:18: error: 'opacity' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
227 |
228 | case .none:
229 | self.opacity(isTop ? 1 : 0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 |
231 | case .vertical(let offset):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:229:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
227 |
228 | case .none:
229 | self.opacity(isTop ? 1 : 0)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 |
231 | case .vertical(let offset):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:229:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
227 |
228 | case .none:
229 | self.opacity(isTop ? 1 : 0)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 |
231 | case .vertical(let offset):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:229:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
227 |
228 | case .none:
229 | self.opacity(isTop ? 1 : 0)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 |
231 | case .vertical(let offset):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:232:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
230 |
231 | case .vertical(let offset):
232 | self.offset(y: CGFloat(depthIndex) * offset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:232:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
230 |
231 | case .vertical(let offset):
232 | self.offset(y: CGFloat(depthIndex) * offset)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:232:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
230 |
231 | case .vertical(let offset):
232 | self.offset(y: CGFloat(depthIndex) * offset)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:232:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
230 |
231 | case .vertical(let offset):
232 | self.offset(y: CGFloat(depthIndex) * offset)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:236:18: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
235 | self
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
238 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:237:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
235 | self
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
238 |
239 | case .rotated(let angleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:235:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
235 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:235:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
235 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:235:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
235 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:241:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
239 | case .rotated(let angleStep, let offsetStep):
240 | self
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
243 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:242:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
240 | self
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
243 |
244 | case .randomized(let rotationRange, let offsetRange):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:240:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
238 |
239 | case .rotated(let angleStep, let offsetStep):
240 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:240:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
238 |
239 | case .rotated(let angleStep, let offsetStep):
240 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:240:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
238 |
239 | case .rotated(let angleStep, let offsetStep):
240 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:259:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
257 |
258 | self
259 | .rotationEffect(.degrees(rotation))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 | .offset(y: CGFloat(offset))
261 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:260:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
258 | self
259 | .rotationEffect(.degrees(rotation))
260 | .offset(y: CGFloat(offset))
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | }
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:246:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
244 | case .randomized(let rotationRange, let offsetRange):
245 |
246 | let rotation = randomInRange(
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
247 | id: item.id,
248 | min: rotationRange.lowerBound,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:225: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
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
223 | depthIndex: Int,
224 | isTop: Bool
225 | ) -> some View {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
226 | switch style {
227 |
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/11] Compiling SwiftMotionKit SwipeDirection.swift
[3/11] Compiling SwiftMotionKit SwiftMotionKit.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/11] Compiling SwiftMotionKit StackStyle.swift
[5/11] Compiling SwiftMotionKit RecyclingMode.swift
[6/11] Compiling SwiftMotionKit MotionPreset.swift
[7/11] Compiling SwiftMotionKit Random.swift
[8/11] Compiling SwiftMotionKit CGSize+Extensions.swift
[9/11] Emitting module SwiftMotionKit
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:65:31: error: cannot find type 'UIImpactFeedbackGenerator' in scope
63 |
64 | /// Impact haptic (light/medium/heavy)
65 | public func impact(style: UIImpactFeedbackGenerator.FeedbackStyle = .medium, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UIImpactFeedbackGenerator' in scope
66 | #if canImport(UIKit)
67 | let key = "impact.\(style)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:77:38: error: cannot find type 'UINotificationFeedbackGenerator' in scope
75 |
76 | /// Notification haptic (success/warning/error)
77 | public func notification(_ type: UINotificationFeedbackGenerator.FeedbackType = .success, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UINotificationFeedbackGenerator' in scope
78 | #if canImport(UIKit)
79 | let key = "notification.\(type)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:220:32: error: 'Identifiable' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:225:15: error: 'View' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
223 | depthIndex: Int,
224 | isTop: Bool
225 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
226 | switch style {
227 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:219:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:218:19: error: 'View' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
[10/11] Compiling SwiftMotionKit HapticsManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:65:31: error: cannot find type 'UIImpactFeedbackGenerator' in scope
63 |
64 | /// Impact haptic (light/medium/heavy)
65 | public func impact(style: UIImpactFeedbackGenerator.FeedbackStyle = .medium, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UIImpactFeedbackGenerator' in scope
66 | #if canImport(UIKit)
67 | let key = "impact.\(style)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:77:38: error: cannot find type 'UINotificationFeedbackGenerator' in scope
75 |
76 | /// Notification haptic (success/warning/error)
77 | public func notification(_ type: UINotificationFeedbackGenerator.FeedbackType = .success, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UINotificationFeedbackGenerator' in scope
78 | #if canImport(UIKit)
79 | let key = "notification.\(type)"
[11/11] Compiling SwiftMotionKit SwipeCardStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:220:32: error: 'Identifiable' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| | `- error: 'Identifiable' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:225:15: error: 'View' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
223 | depthIndex: Int,
224 | isTop: Bool
225 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
226 | switch style {
227 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:219:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:218:19: error: 'View' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/MicroInteractions/HapticsManager.swift:77:38: error: cannot find type 'UINotificationFeedbackGenerator' in scope
75 |
76 | /// Notification haptic (success/warning/error)
77 | public func notification(_ type: UINotificationFeedbackGenerator.FeedbackType = .success, minInterval: TimeInterval? = nil) {
| `- error: cannot find type 'UINotificationFeedbackGenerator' in scope
78 | #if canImport(UIKit)
79 | let key = "notification.\(type)"
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:168:49: error: cannot infer contextual base in reference to member 'success'
166 |
167 | // success haptic on dismissal (notification success)
168 | HapticsManager.shared.notification(.success)
| `- error: cannot infer contextual base in reference to member 'success'
169 |
170 | performSwipe(direction: direction, item: item, width: width, predictedTranslation: predictedHorizontal)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:229:18: error: 'opacity' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
227 |
228 | case .none:
229 | self.opacity(isTop ? 1 : 0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 |
231 | case .vertical(let offset):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:229:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
227 |
228 | case .none:
229 | self.opacity(isTop ? 1 : 0)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 |
231 | case .vertical(let offset):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:229:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
227 |
228 | case .none:
229 | self.opacity(isTop ? 1 : 0)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 |
231 | case .vertical(let offset):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:229:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
227 |
228 | case .none:
229 | self.opacity(isTop ? 1 : 0)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
230 |
231 | case .vertical(let offset):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:232:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
230 |
231 | case .vertical(let offset):
232 | self.offset(y: CGFloat(depthIndex) * offset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:232:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
230 |
231 | case .vertical(let offset):
232 | self.offset(y: CGFloat(depthIndex) * offset)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:232:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
230 |
231 | case .vertical(let offset):
232 | self.offset(y: CGFloat(depthIndex) * offset)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:232:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
230 |
231 | case .vertical(let offset):
232 | self.offset(y: CGFloat(depthIndex) * offset)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:236:18: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
235 | self
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
238 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:237:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
235 | self
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
238 |
239 | case .rotated(let angleStep, let offsetStep):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:235:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
235 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:235:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
235 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:235:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
233 |
234 | case .scaleAndOffset(let scaleStep, let offsetStep):
235 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
236 | .scaleEffect(1.0 - (CGFloat(depthIndex) * scaleStep))
237 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:241:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
239 | case .rotated(let angleStep, let offsetStep):
240 | self
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
243 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:242:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
240 | self
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
243 |
244 | case .randomized(let rotationRange, let offsetRange):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:240:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
238 |
239 | case .rotated(let angleStep, let offsetStep):
240 | self
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:240:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
238 |
239 | case .rotated(let angleStep, let offsetStep):
240 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:240:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
238 |
239 | case .rotated(let angleStep, let offsetStep):
240 | self
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | .rotationEffect(.degrees(Double(depthIndex) * angleStep))
242 | .offset(y: CGFloat(depthIndex) * offsetStep)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:259:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
257 |
258 | self
259 | .rotationEffect(.degrees(rotation))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
260 | .offset(y: CGFloat(offset))
261 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:260:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
258 | self
259 | .rotationEffect(.degrees(rotation))
260 | .offset(y: CGFloat(offset))
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | }
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:246:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
:
244 | case .randomized(let rotationRange, let offsetRange):
245 |
246 | let rotation = randomInRange(
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
247 | id: item.id,
248 | min: rotationRange.lowerBound,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMotionKit/SwipeStack/SwipeCardStack.swift:225: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
216 | }
217 |
218 | private extension View {
| `- note: add @available attribute to enclosing extension
219 | @ViewBuilder
220 | func applyStackStyle<Item: Identifiable>(
| `- note: add @available attribute to enclosing instance method
221 | style: StackStyle,
222 | item: Item,
223 | depthIndex: Int,
224 | isTop: Bool
225 | ) -> some View {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
226 | switch style {
227 |
[12/12] Compiling SwiftMotionKit SwipeThreshold.swift
BUILD FAILURE 6.1 macosSpm