Build Information
Failed to build SwiftUIDelayedGesture, reference main (419b35
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 17:46:03 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ciaranrobrien/SwiftUIDelayedGesture
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 419b35f Bug fixes
Cloned https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git
Revision (git rev-parse @):
419b35fbc7f5b733243f472f689fa58e2593c293
SUCCESS checkout https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftuidelayedgesture",
"name": "SwiftUIDelayedGesture",
"url": "https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIDelayedGesture",
"dependencies": [
]
}
]
}
Fetching https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git
[1/99] Fetching swiftuidelayedgesture
Fetched https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git from cache (1.61s)
Creating working copy for https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git
Working copy of https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git resolved at main (419b35f)
warning: '.resolve-product-dependencies': dependency 'swiftuidelayedgesture' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git
https://github.com/ciaranrobrien/SwiftUIDelayedGesture.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftUIDelayedGesture",
"name" : "SwiftUIDelayedGesture",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "SwiftUIDelayedGesture",
"targets" : [
"SwiftUIDelayedGesture"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftUIDelayedGesture",
"module_type" : "SwiftTarget",
"name" : "SwiftUIDelayedGesture",
"path" : "Sources/SwiftUIDelayedGesture",
"product_memberships" : [
"SwiftUIDelayedGesture"
],
"sources" : [
"API/DelayedGesture.swift",
"Internal/DelayModifier.swift"
],
"type" : "library"
}
],
"tools_version" : "5.10"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module SwiftUIDelayedGesture
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:29:28: error: 'Gesture' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:31:25: error: 'GestureMask' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
| `- error: 'GestureMask' is only available in macOS 10.15 or newer
32 | delay: TimeInterval = 0.25,
33 | onTapGesture action: @escaping () -> Void = {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:34:15: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
32 | delay: TimeInterval = 0.25,
33 | onTapGesture action: @escaping () -> Void = {}
34 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
35 | self.modifier(DelayModifier(action: action, delay: delay))
36 | .gesture(gesture, including: mask)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:59:15: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
54 | /// - action: An action to perform if a tap gesture is recognized
55 | /// before the long press can be recognized by the view.
56 | func delayedInput(
| `- note: add @available attribute to enclosing instance method
57 | delay: TimeInterval = 0.25,
58 | onTapGesture action: @escaping () -> Void = {}
59 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
60 | modifier(DelayModifier(action: action, delay: delay))
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:9:18: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:10:6: error: 'StateObject' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
11 |
12 | var action: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:28:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
29 |
30 | var delay: TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:32:57: error: 'View' is only available in macOS 10.15 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
29 |
30 | var delay: TimeInterval
31 |
32 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | configuration.label
34 | .onChange(of: configuration.isPressed) { isPressed in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:43:6: error: 'Published' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
| `- error: 'Published' is only available in macOS 10.15 or newer
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:42:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
[4/5] Compiling SwiftUIDelayedGesture DelayedGesture.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:29:28: error: 'Gesture' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:31:25: error: 'GestureMask' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
| `- error: 'GestureMask' is only available in macOS 10.15 or newer
32 | delay: TimeInterval = 0.25,
33 | onTapGesture action: @escaping () -> Void = {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:34:15: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
32 | delay: TimeInterval = 0.25,
33 | onTapGesture action: @escaping () -> Void = {}
34 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
35 | self.modifier(DelayModifier(action: action, delay: delay))
36 | .gesture(gesture, including: mask)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:59:15: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
54 | /// - action: An action to perform if a tap gesture is recognized
55 | /// before the long press can be recognized by the view.
56 | func delayedInput(
| `- note: add @available attribute to enclosing instance method
57 | delay: TimeInterval = 0.25,
58 | onTapGesture action: @escaping () -> Void = {}
59 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
60 | modifier(DelayModifier(action: action, delay: delay))
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:9:18: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:35:14: error: 'modifier' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
:
33 | onTapGesture action: @escaping () -> Void = {}
34 | ) -> some View {
35 | self.modifier(DelayModifier(action: action, delay: delay))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .gesture(gesture, including: mask)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:36:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
:
34 | ) -> some View {
35 | self.modifier(DelayModifier(action: action, delay: delay))
36 | .gesture(gesture, including: mask)
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:60:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
54 | /// - action: An action to perform if a tap gesture is recognized
55 | /// before the long press can be recognized by the view.
56 | func delayedInput(
| `- note: add @available attribute to enclosing instance method
57 | delay: TimeInterval = 0.25,
58 | onTapGesture action: @escaping () -> Void = {}
59 | ) -> some View {
60 | modifier(DelayModifier(action: action, delay: delay))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' 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
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:60:9: error: 'modifier' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
54 | /// - action: An action to perform if a tap gesture is recognized
55 | /// before the long press can be recognized by the view.
56 | func delayedInput(
| `- note: add @available attribute to enclosing instance method
57 | delay: TimeInterval = 0.25,
58 | onTapGesture action: @escaping () -> Void = {}
59 | ) -> some View {
60 | modifier(DelayModifier(action: action, delay: delay))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
[5/5] Compiling SwiftUIDelayedGesture DelayModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:10:6: error: 'StateObject' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
11 |
12 | var action: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:28:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
29 |
30 | var delay: TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:32:57: error: 'View' is only available in macOS 10.15 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
29 |
30 | var delay: TimeInterval
31 |
32 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | configuration.label
34 | .onChange(of: configuration.isPressed) { isPressed in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:43:6: error: 'Published' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
| `- error: 'Published' is only available in macOS 10.15 or newer
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:42:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:16:9: error: 'Button' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | content
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:19:10: error: 'buttonStyle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
18 | }
19 | .buttonStyle(DelayButtonStyle(delay: delay))
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .accessibilityRemoveTraits(.isButton)
21 | .environmentObject(state)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:20:10: error: 'accessibilityRemoveTraits' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
18 | }
19 | .buttonStyle(DelayButtonStyle(delay: delay))
20 | .accessibilityRemoveTraits(.isButton)
| |- error: 'accessibilityRemoveTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
21 | .environmentObject(state)
22 | .disabled(state.disabled)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:21:10: error: 'environmentObject' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
:
19 | .buttonStyle(DelayButtonStyle(delay: delay))
20 | .accessibilityRemoveTraits(.isButton)
21 | .environmentObject(state)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .disabled(state.disabled)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:22:10: error: 'disabled' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
:
20 | .accessibilityRemoveTraits(.isButton)
21 | .environmentObject(state)
22 | .disabled(state.disabled)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
<unknown>:0: error: cannot convert value of type 'KeyPath<DelayState, Bool>' to expected argument type 'ReferenceWritableKeyPath<DelayState, Bool>'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:34:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
29 |
30 | var delay: TimeInterval
31 |
32 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
33 | configuration.label
34 | .onChange(of: configuration.isPressed) { isPressed in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
35 | state.onIsPressed(isPressed, delay: delay)
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:52:22: error: 'objectWillChange' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
| `- note: add @available attribute to enclosing instance method
46 | workItem.cancel()
47 |
:
50 | guard let self else { return }
51 |
52 | self.objectWillChange.send()
| |- error: 'objectWillChange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | self.disabled = true
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:53:17: error: setter for 'disabled' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
| `- note: add @available attribute to enclosing instance method
46 | workItem.cancel()
47 |
:
51 |
52 | self.objectWillChange.send()
53 | self.disabled = true
| |- error: setter for 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:58:13: error: setter for 'disabled' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
| `- note: add @available attribute to enclosing instance method
46 | workItem.cancel()
47 |
:
56 | DispatchQueue.main.asyncAfter(deadline: .now() + max(delay, 0), execute: workItem)
57 | } else {
58 | disabled = false
| |- error: setter for 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | }
60 | }
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Compiling SwiftUIDelayedGesture DelayModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:10:6: error: 'StateObject' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
11 |
12 | var action: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:28:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
29 |
30 | var delay: TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:32:57: error: 'View' is only available in macOS 10.15 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
29 |
30 | var delay: TimeInterval
31 |
32 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | configuration.label
34 | .onChange(of: configuration.isPressed) { isPressed in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:43:6: error: 'Published' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
| `- error: 'Published' is only available in macOS 10.15 or newer
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:42:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:16:9: error: 'Button' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | content
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:19:10: error: 'buttonStyle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
18 | }
19 | .buttonStyle(DelayButtonStyle(delay: delay))
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .accessibilityRemoveTraits(.isButton)
21 | .environmentObject(state)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:20:10: error: 'accessibilityRemoveTraits' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
18 | }
19 | .buttonStyle(DelayButtonStyle(delay: delay))
20 | .accessibilityRemoveTraits(.isButton)
| |- error: 'accessibilityRemoveTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
21 | .environmentObject(state)
22 | .disabled(state.disabled)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:21:10: error: 'environmentObject' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
:
19 | .buttonStyle(DelayButtonStyle(delay: delay))
20 | .accessibilityRemoveTraits(.isButton)
21 | .environmentObject(state)
| |- error: 'environmentObject' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | .disabled(state.disabled)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:22:10: error: 'disabled' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
:
20 | .accessibilityRemoveTraits(.isButton)
21 | .environmentObject(state)
22 | .disabled(state.disabled)
| |- error: 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
<unknown>:0: error: cannot convert value of type 'KeyPath<DelayState, Bool>' to expected argument type 'ReferenceWritableKeyPath<DelayState, Bool>'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:34:14: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
29 |
30 | var delay: TimeInterval
31 |
32 | func makeBody(configuration: Configuration) -> some View {
| `- note: add @available attribute to enclosing instance method
33 | configuration.label
34 | .onChange(of: configuration.isPressed) { isPressed in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
35 | state.onIsPressed(isPressed, delay: delay)
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:52:22: error: 'objectWillChange' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
| `- note: add @available attribute to enclosing instance method
46 | workItem.cancel()
47 |
:
50 | guard let self else { return }
51 |
52 | self.objectWillChange.send()
| |- error: 'objectWillChange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | self.disabled = true
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:53:17: error: setter for 'disabled' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
| `- note: add @available attribute to enclosing instance method
46 | workItem.cancel()
47 |
:
51 |
52 | self.objectWillChange.send()
53 | self.disabled = true
| |- error: setter for 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | }
55 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:58:13: error: setter for 'disabled' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
| `- note: add @available attribute to enclosing instance method
46 | workItem.cancel()
47 |
:
56 | DispatchQueue.main.asyncAfter(deadline: .now() + max(delay, 0), execute: workItem)
57 | } else {
58 | disabled = false
| |- error: setter for 'disabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | }
60 | }
[3/4] Emitting module SwiftUIDelayedGesture
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:29:28: error: 'Gesture' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:31:25: error: 'GestureMask' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
| `- error: 'GestureMask' is only available in macOS 10.15 or newer
32 | delay: TimeInterval = 0.25,
33 | onTapGesture action: @escaping () -> Void = {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:34:15: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
32 | delay: TimeInterval = 0.25,
33 | onTapGesture action: @escaping () -> Void = {}
34 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
35 | self.modifier(DelayModifier(action: action, delay: delay))
36 | .gesture(gesture, including: mask)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:59:15: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
54 | /// - action: An action to perform if a tap gesture is recognized
55 | /// before the long press can be recognized by the view.
56 | func delayedInput(
| `- note: add @available attribute to enclosing instance method
57 | delay: TimeInterval = 0.25,
58 | onTapGesture action: @escaping () -> Void = {}
59 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
60 | modifier(DelayModifier(action: action, delay: delay))
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:9:18: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:10:6: error: 'StateObject' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
11 |
12 | var action: () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:15:41: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | internal struct DelayModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
10 | @StateObject private var state = DelayState()
11 |
:
13 | var delay: TimeInterval
14 |
15 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
16 | Button(action: action) {
17 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:28:6: error: 'EnvironmentObject' is only available in macOS 10.15 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
| `- error: 'EnvironmentObject' is only available in macOS 10.15 or newer
29 |
30 | var delay: TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:32:57: error: 'View' is only available in macOS 10.15 or newer
25 |
26 |
27 | private struct DelayButtonStyle: ButtonStyle {
| `- note: add @available attribute to enclosing struct
28 | @EnvironmentObject private var state: DelayState
29 |
30 | var delay: TimeInterval
31 |
32 | func makeBody(configuration: Configuration) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
33 | configuration.label
34 | .onChange(of: configuration.isPressed) { isPressed in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:43:6: error: 'Published' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
| `- error: 'Published' is only available in macOS 10.15 or newer
44 |
45 | func onIsPressed(_ isPressed: Bool, delay: TimeInterval) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/Internal/DelayModifier.swift:42:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
40 |
41 | @MainActor
42 | private final class DelayState: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
43 | @Published private(set) var disabled = false
44 |
[4/4] Compiling SwiftUIDelayedGesture DelayedGesture.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:29:28: error: 'Gesture' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:31:25: error: 'GestureMask' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
| `- error: 'GestureMask' is only available in macOS 10.15 or newer
32 | delay: TimeInterval = 0.25,
33 | onTapGesture action: @escaping () -> Void = {}
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:34:15: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
32 | delay: TimeInterval = 0.25,
33 | onTapGesture action: @escaping () -> Void = {}
34 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
35 | self.modifier(DelayModifier(action: action, delay: delay))
36 | .gesture(gesture, including: mask)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:59:15: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
54 | /// - action: An action to perform if a tap gesture is recognized
55 | /// before the long press can be recognized by the view.
56 | func delayedInput(
| `- note: add @available attribute to enclosing instance method
57 | delay: TimeInterval = 0.25,
58 | onTapGesture action: @escaping () -> Void = {}
59 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
60 | modifier(DelayModifier(action: action, delay: delay))
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:9:18: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:35:14: error: 'modifier' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
:
33 | onTapGesture action: @escaping () -> Void = {}
34 | ) -> some View {
35 | self.modifier(DelayModifier(action: action, delay: delay))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .gesture(gesture, including: mask)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:36:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
27 | /// - action: An action to perform if a tap gesture is recognized
28 | /// before the long press can be recognized by the view.
29 | func delayedGesture<T: Gesture>(
| `- note: add @available attribute to enclosing instance method
30 | _ gesture: T,
31 | including mask: GestureMask = .all,
:
34 | ) -> some View {
35 | self.modifier(DelayModifier(action: action, delay: delay))
36 | .gesture(gesture, including: mask)
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:60:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
54 | /// - action: An action to perform if a tap gesture is recognized
55 | /// before the long press can be recognized by the view.
56 | func delayedInput(
| `- note: add @available attribute to enclosing instance method
57 | delay: TimeInterval = 0.25,
58 | onTapGesture action: @escaping () -> Void = {}
59 | ) -> some View {
60 | modifier(DelayModifier(action: action, delay: delay))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' 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
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIDelayedGesture/API/DelayedGesture.swift:60:9: error: 'modifier' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public extension View {
| `- note: add @available attribute to enclosing extension
10 | /// Sequences a gesture with a long press and attaches the result to the view,
11 | /// which results in the gesture only receiving events after the long press
:
54 | /// - action: An action to perform if a tap gesture is recognized
55 | /// before the long press can be recognized by the view.
56 | func delayedInput(
| `- note: add @available attribute to enclosing instance method
57 | delay: TimeInterval = 0.25,
58 | onTapGesture action: @escaping () -> Void = {}
59 | ) -> some View {
60 | modifier(DelayModifier(action: action, delay: delay))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
BUILD FAILURE 6.1 macosSpm