The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LongPressButton, reference 1.3.0 (146c56), with Swift 6.3 for macOS (SPM) on 17 Apr 2026 11:27:23 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Tunous/LongPressButton.git
Reference: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Tunous/LongPressButton
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at 146c564 Shared implementation with improved accessibility (#2)
Cloned https://github.com/Tunous/LongPressButton.git
Revision (git rev-parse @):
146c564734c40adfc67173484c6f418e9af8897a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Tunous/LongPressButton.git at 1.3.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "longpressbutton",
      "name": "LongPressButton",
      "url": "https://github.com/Tunous/LongPressButton.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LongPressButton",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Tunous/LongPressButton.git
[1/208] Fetching longpressbutton
Fetched https://github.com/Tunous/LongPressButton.git from cache (0.73s)
Creating working copy for https://github.com/Tunous/LongPressButton.git
Working copy of https://github.com/Tunous/LongPressButton.git resolved at 1.3.0 (146c564)
warning: '.resolve-product-dependencies': dependency 'longpressbutton' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/Tunous/LongPressButton.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module LongPressButton
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:10:38: error: 'Text' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
  8 |     private let action: () -> Void
  9 |     private let label: Label
 10 |     private let longPressActionName: Text?
    |                                      `- error: 'Text' is only available in macOS 10.15 or newer
 11 |
 12 |     @State private var didLongPress = false
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 10 |     private let longPressActionName: Text?
 11 |
 12 |     @State private var didLongPress = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 13 |
 14 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:14:27: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 12 |     @State private var didLongPress = false
 13 |
 14 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add '@available' attribute to enclosing property
 15 |         Button(action: performActionIfNeeded) {
 16 |             label
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:24:33: error: 'Gesture' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 22 |     }
 23 |
 24 |     private var longPress: some Gesture {
    |                 |               `- error: 'Gesture' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing property
 25 |         LongPressGesture(minimumDuration: minimumDuration, maximumDistance: maximumDistance)
 26 |             .onEnded { _ in
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:32:37: error: 'Gesture' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 30 |     }
 31 |
 32 |     private var detectRelease: some Gesture {
    |                 |                   `- error: 'Gesture' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing property
 33 |         DragGesture(minimumDistance: 0).onEnded { _ in
 34 |             DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:4:38: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               |                      `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:68:30: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 63 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 64 |     ///   - label: A view that describes the purpose of the button’s action.
 65 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 66 |         minimumDuration: TimeInterval = 0.5,
 67 |         maximumDistance: CGFloat = 10,
 68 |         longPressActionName: Text? = nil,
    |                              `- error: 'Text' is only available in macOS 10.15 or newer
 69 |         action: @escaping () -> Void,
 70 |         longPressAction: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:71:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 63 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 64 |     ///   - label: A view that describes the purpose of the button’s action.
 65 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 66 |         minimumDuration: TimeInterval = 0.5,
 67 |         maximumDistance: CGFloat = 10,
    :
 69 |         action: @escaping () -> Void,
 70 |         longPressAction: @escaping () -> Void,
 71 |         @ViewBuilder label: () -> Label
    |          `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 72 |     ) {
 73 |         self.minimumDuration = minimumDuration
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:98:22: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
    :
 96 |         action: @escaping () -> Void,
 97 |         longPressAction: @escaping () -> Void
 98 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
 99 |         self.init(
100 |             minimumDuration: minimumDuration,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:92:21: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
    |                     `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 93 |         minimumDuration: TimeInterval = 0.5,
 94 |         maximumDistance: CGFloat = 10,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:95:30: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
 94 |         maximumDistance: CGFloat = 10,
 95 |         longPressActionName: LocalizedStringKey? = nil,
    |                              `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 96 |         action: @escaping () -> Void,
 97 |         longPressAction: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:127:22: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
118 |     ///   - action: The action to perform when the user taps the button.
119 |     ///   - longPressAction: The action to perform when the user long presses the button.
120 |     public init<S: StringProtocol>(
    |            `- note: add '@available' attribute to enclosing initializer
121 |         _ title: S,
122 |         minimumDuration: TimeInterval = 0.5,
    :
125 |         action: @escaping () -> Void,
126 |         longPressAction: @escaping () -> Void
127 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
128 |         self.init(
129 |             minimumDuration: minimumDuration,
[4/4] Compiling LongPressButton LongPressButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:10:38: error: 'Text' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
  8 |     private let action: () -> Void
  9 |     private let label: Label
 10 |     private let longPressActionName: Text?
    |                                      `- error: 'Text' is only available in macOS 10.15 or newer
 11 |
 12 |     @State private var didLongPress = false
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:12:6: error: 'State' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 10 |     private let longPressActionName: Text?
 11 |
 12 |     @State private var didLongPress = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
 13 |
 14 |     public var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:14:27: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 12 |     @State private var didLongPress = false
 13 |
 14 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add '@available' attribute to enclosing property
 15 |         Button(action: performActionIfNeeded) {
 16 |             label
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:24:33: error: 'Gesture' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 22 |     }
 23 |
 24 |     private var longPress: some Gesture {
    |                 |               `- error: 'Gesture' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing property
 25 |         LongPressGesture(minimumDuration: minimumDuration, maximumDistance: maximumDistance)
 26 |             .onEnded { _ in
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:32:37: error: 'Gesture' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 30 |     }
 31 |
 32 |     private var detectRelease: some Gesture {
    |                 |                   `- error: 'Gesture' is only available in macOS 10.15 or newer
    |                 `- note: add '@available' attribute to enclosing property
 33 |         DragGesture(minimumDistance: 0).onEnded { _ in
 34 |             DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:4:38: error: 'View' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               |                      `- error: 'View' is only available in macOS 10.15 or newer
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:68:30: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 63 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 64 |     ///   - label: A view that describes the purpose of the button’s action.
 65 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 66 |         minimumDuration: TimeInterval = 0.5,
 67 |         maximumDistance: CGFloat = 10,
 68 |         longPressActionName: Text? = nil,
    |                              `- error: 'Text' is only available in macOS 10.15 or newer
 69 |         action: @escaping () -> Void,
 70 |         longPressAction: @escaping () -> Void,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:71:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 63 |     ///   - longPressActionName: The name used by assistive technologies (such as VoiceOver) for the long-press accessibility action.
 64 |     ///   - label: A view that describes the purpose of the button’s action.
 65 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 66 |         minimumDuration: TimeInterval = 0.5,
 67 |         maximumDistance: CGFloat = 10,
    :
 69 |         action: @escaping () -> Void,
 70 |         longPressAction: @escaping () -> Void,
 71 |         @ViewBuilder label: () -> Label
    |          `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 72 |     ) {
 73 |         self.minimumDuration = minimumDuration
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:98:22: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
    :
 96 |         action: @escaping () -> Void,
 97 |         longPressAction: @escaping () -> Void
 98 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
 99 |         self.init(
100 |             minimumDuration: minimumDuration,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:92:21: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
    |                     `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 93 |         minimumDuration: TimeInterval = 0.5,
 94 |         maximumDistance: CGFloat = 10,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:95:30: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
 94 |         maximumDistance: CGFloat = 10,
 95 |         longPressActionName: LocalizedStringKey? = nil,
    |                              `- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
 96 |         action: @escaping () -> Void,
 97 |         longPressAction: @escaping () -> Void
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:127:22: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
118 |     ///   - action: The action to perform when the user taps the button.
119 |     ///   - longPressAction: The action to perform when the user long presses the button.
120 |     public init<S: StringProtocol>(
    |            `- note: add '@available' attribute to enclosing initializer
121 |         _ title: S,
122 |         minimumDuration: TimeInterval = 0.5,
    :
125 |         action: @escaping () -> Void,
126 |         longPressAction: @escaping () -> Void
127 |     ) where Label == Text {
    |                      `- error: 'Text' is only available in macOS 10.15 or newer
128 |         self.init(
129 |             minimumDuration: minimumDuration,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:15: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
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 12 |     @State private var didLongPress = false
 13 |
 14 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 15 |         Button(action: performActionIfNeeded) {
    |         |- 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
 16 |             label
 17 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:15:9: error: 'Button' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 12 |     @State private var didLongPress = false
 13 |
 14 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 15 |         Button(action: performActionIfNeeded) {
    |         |- error: 'Button' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 16 |             label
 17 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:18:10: error: 'simultaneousGesture(_:including:)' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 12 |     @State private var didLongPress = false
 13 |
 14 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 15 |         Button(action: performActionIfNeeded) {
 16 |             label
 17 |         }
 18 |         .simultaneousGesture(longPress.simultaneously(with: detectRelease))
    |          |- error: 'simultaneousGesture(_:including:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 19 |         .accessibilityAction(named: longPressActionName ?? Text("Alternative Action")) {
 20 |             longPressAction()
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:18:40: error: 'simultaneously(with:)' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 12 |     @State private var didLongPress = false
 13 |
 14 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 15 |         Button(action: performActionIfNeeded) {
 16 |             label
 17 |         }
 18 |         .simultaneousGesture(longPress.simultaneously(with: detectRelease))
    |                                        |- error: 'simultaneously(with:)' is only available in macOS 10.15 or newer
    |                                        `- note: add 'if #available' version check
 19 |         .accessibilityAction(named: longPressActionName ?? Text("Alternative Action")) {
 20 |             longPressAction()
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:19:10: error: 'accessibilityAction(named:_:)' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 12 |     @State private var didLongPress = false
 13 |
 14 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 15 |         Button(action: performActionIfNeeded) {
 16 |             label
 17 |         }
 18 |         .simultaneousGesture(longPress.simultaneously(with: detectRelease))
 19 |         .accessibilityAction(named: longPressActionName ?? Text("Alternative Action")) {
    |          |- error: 'accessibilityAction(named:_:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 20 |             longPressAction()
 21 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:19:60: error: 'Text' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 12 |     @State private var didLongPress = false
 13 |
 14 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 15 |         Button(action: performActionIfNeeded) {
 16 |             label
 17 |         }
 18 |         .simultaneousGesture(longPress.simultaneously(with: detectRelease))
 19 |         .accessibilityAction(named: longPressActionName ?? Text("Alternative Action")) {
    |                                                            |- error: 'Text' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
 20 |             longPressAction()
 21 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:14:32: 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
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 12 |     @State private var didLongPress = false
 13 |
 14 |     public var body: some View {
    |                |               |- 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
    |                `- note: add '@available' attribute to enclosing property
 15 |         Button(action: performActionIfNeeded) {
 16 |             label
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:26:14: warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 22 |     }
 23 |
 24 |     private var longPress: some Gesture {
    |                 `- note: add '@available' attribute to enclosing property
 25 |         LongPressGesture(minimumDuration: minimumDuration, maximumDistance: maximumDistance)
 26 |             .onEnded { _ in
    |              |- warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
 27 |                 didLongPress = true
 28 |                 longPressAction()
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:25:9: error: 'LongPressGesture' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 22 |     }
 23 |
 24 |     private var longPress: some Gesture {
    |                 `- note: add '@available' attribute to enclosing property
 25 |         LongPressGesture(minimumDuration: minimumDuration, maximumDistance: maximumDistance)
    |         |- error: 'LongPressGesture' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 26 |             .onEnded { _ in
 27 |                 didLongPress = true
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:26:14: error: 'onEnded' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 22 |     }
 23 |
 24 |     private var longPress: some Gesture {
    |                 `- note: add '@available' attribute to enclosing property
 25 |         LongPressGesture(minimumDuration: minimumDuration, maximumDistance: maximumDistance)
 26 |             .onEnded { _ in
    |              |- error: 'onEnded' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
 27 |                 didLongPress = true
 28 |                 longPressAction()
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:27:17: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 22 |     }
 23 |
 24 |     private var longPress: some Gesture {
    |                 `- note: add '@available' attribute to enclosing property
 25 |         LongPressGesture(minimumDuration: minimumDuration, maximumDistance: maximumDistance)
 26 |             .onEnded { _ in
 27 |                 didLongPress = true
    |                 |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 28 |                 longPressAction()
 29 |             }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:33:41: warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 30 |     }
 31 |
 32 |     private var detectRelease: some Gesture {
    |                 `- note: add '@available' attribute to enclosing property
 33 |         DragGesture(minimumDistance: 0).onEnded { _ in
    |                                         |- warning: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |                                         `- note: add 'if #available' version check
 34 |             DispatchQueue.main.async {
 35 |                 // Mark long press as ended in next run loop to be sure that button action
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:33:9: error: 'DragGesture' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 30 |     }
 31 |
 32 |     private var detectRelease: some Gesture {
    |                 `- note: add '@available' attribute to enclosing property
 33 |         DragGesture(minimumDistance: 0).onEnded { _ in
    |         |- error: 'DragGesture' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 34 |             DispatchQueue.main.async {
 35 |                 // Mark long press as ended in next run loop to be sure that button action
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:33:9: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 30 |     }
 31 |
 32 |     private var detectRelease: some Gesture {
    |                 `- note: add '@available' attribute to enclosing property
 33 |         DragGesture(minimumDistance: 0).onEnded { _ in
    |         |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
    |         `- note: add 'if #available' version check
 34 |             DispatchQueue.main.async {
 35 |                 // Mark long press as ended in next run loop to be sure that button action
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:33:41: error: 'onEnded' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 30 |     }
 31 |
 32 |     private var detectRelease: some Gesture {
    |                 `- note: add '@available' attribute to enclosing property
 33 |         DragGesture(minimumDistance: 0).onEnded { _ in
    |                                         |- error: 'onEnded' is only available in macOS 10.15 or newer
    |                                         `- note: add 'if #available' version check
 34 |             DispatchQueue.main.async {
 35 |                 // Mark long press as ended in next run loop to be sure that button action
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:37:17: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 30 |     }
 31 |
 32 |     private var detectRelease: some Gesture {
    |                 `- note: add '@available' attribute to enclosing property
 33 |         DragGesture(minimumDistance: 0).onEnded { _ in
 34 |             DispatchQueue.main.async {
 35 |                 // Mark long press as ended in next run loop to be sure that button action
 36 |                 // won't trigger together with it.
 37 |                 didLongPress = false
    |                 |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 38 |             }
 39 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:44:13: error: setter for 'didLongPress' is only available in macOS 10.15 or newer
  2 |
  3 | /// A control that initiates action on tap or long press.
  4 | public struct LongPressButton<Label: View>: View {
    |               `- note: add '@available' attribute to enclosing generic struct
  5 |     private let minimumDuration: TimeInterval
  6 |     private let maximumDistance: CGFloat
    :
 40 |     }
 41 |
 42 |     private func performActionIfNeeded() {
    |                  `- note: add '@available' attribute to enclosing instance method
 43 |         if didLongPress {
 44 |             didLongPress = false
    |             |- error: setter for 'didLongPress' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 45 |         } else {
 46 |             action()
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:99:14: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
    :
 97 |         longPressAction: @escaping () -> Void
 98 |     ) where Label == Text {
 99 |         self.init(
    |              |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
100 |             minimumDuration: minimumDuration,
101 |             maximumDistance: maximumDistance,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:102:60: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
    :
100 |             minimumDuration: minimumDuration,
101 |             maximumDistance: maximumDistance,
102 |             longPressActionName: longPressActionName.map { Text($0) },
    |                                                            |- error: 'Text' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
103 |             action: action,
104 |             longPressAction: longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:102:60: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
    :
100 |             minimumDuration: minimumDuration,
101 |             maximumDistance: maximumDistance,
102 |             longPressActionName: longPressActionName.map { Text($0) },
    |                                                            |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
103 |             action: action,
104 |             longPressAction: longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:106:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
    :
104 |             longPressAction: longPressAction
105 |         ) {
106 |             Text(titleKey)
    |             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
107 |         }
108 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:106:13: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
    :
104 |             longPressAction: longPressAction
105 |         ) {
106 |             Text(titleKey)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
107 |         }
108 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:106:13: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
    :
104 |             longPressAction: longPressAction
105 |         ) {
106 |             Text(titleKey)
    |             |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
107 |         }
108 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:105:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
 89 |     ///   - action: The action to perform when the user taps the button.
 90 |     ///   - longPressAction: The action to perform when the user long presses the button.
 91 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 92 |         _ titleKey: LocalizedStringKey,
 93 |         minimumDuration: TimeInterval = 0.5,
    :
103 |             action: action,
104 |             longPressAction: longPressAction
105 |         ) {
    |           |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |           `- note: add 'if #available' version check
106 |             Text(titleKey)
107 |         }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:128:14: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
118 |     ///   - action: The action to perform when the user taps the button.
119 |     ///   - longPressAction: The action to perform when the user long presses the button.
120 |     public init<S: StringProtocol>(
    |            `- note: add '@available' attribute to enclosing initializer
121 |         _ title: S,
122 |         minimumDuration: TimeInterval = 0.5,
    :
126 |         longPressAction: @escaping () -> Void
127 |     ) where Label == Text {
128 |         self.init(
    |              |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |              `- note: add 'if #available' version check
129 |             minimumDuration: minimumDuration,
130 |             maximumDistance: maximumDistance,
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:131:60: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
118 |     ///   - action: The action to perform when the user taps the button.
119 |     ///   - longPressAction: The action to perform when the user long presses the button.
120 |     public init<S: StringProtocol>(
    |            `- note: add '@available' attribute to enclosing initializer
121 |         _ title: S,
122 |         minimumDuration: TimeInterval = 0.5,
    :
129 |             minimumDuration: minimumDuration,
130 |             maximumDistance: maximumDistance,
131 |             longPressActionName: longPressActionName.map { Text($0) },
    |                                                            |- error: 'Text' is only available in macOS 10.15 or newer
    |                                                            `- note: add 'if #available' version check
132 |             action: action,
133 |             longPressAction: longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:135:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
118 |     ///   - action: The action to perform when the user taps the button.
119 |     ///   - longPressAction: The action to perform when the user long presses the button.
120 |     public init<S: StringProtocol>(
    |            `- note: add '@available' attribute to enclosing initializer
121 |         _ title: S,
122 |         minimumDuration: TimeInterval = 0.5,
    :
133 |             longPressAction: longPressAction
134 |         ) {
135 |             Text(title)
    |             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |             `- note: add 'if #available' version check
136 |         }
137 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:135:13: error: 'Text' is only available in macOS 10.15 or newer
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
118 |     ///   - action: The action to perform when the user taps the button.
119 |     ///   - longPressAction: The action to perform when the user long presses the button.
120 |     public init<S: StringProtocol>(
    |            `- note: add '@available' attribute to enclosing initializer
121 |         _ title: S,
122 |         minimumDuration: TimeInterval = 0.5,
    :
133 |             longPressAction: longPressAction
134 |         ) {
135 |             Text(title)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
136 |         }
137 |     }
/Users/admin/builder/spi-builder-workspace/Sources/LongPressButton/LongPressButton.swift:134:11: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 51 | // MARK: - Initialization
 52 |
 53 | extension LongPressButton {
    | `- note: add '@available' attribute to enclosing extension
 54 |
 55 |     /// Creates a long press button that displays a custom label.
    :
118 |     ///   - action: The action to perform when the user taps the button.
119 |     ///   - longPressAction: The action to perform when the user long presses the button.
120 |     public init<S: StringProtocol>(
    |            `- note: add '@available' attribute to enclosing initializer
121 |         _ title: S,
122 |         minimumDuration: TimeInterval = 0.5,
    :
132 |             action: action,
133 |             longPressAction: longPressAction
134 |         ) {
    |           |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
    |           `- note: add 'if #available' version check
135 |             Text(title)
136 |         }
BUILD FAILURE 6.3 macosSpm