The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftToast, reference main (b4250b), with Swift 6.3 for macOS (SPM) on 15 Apr 2026 23:37:09 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/matthew-2000/SwiftToast.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/matthew-2000/SwiftToast
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b4250b6 Update README.md
Cloned https://github.com/matthew-2000/SwiftToast.git
Revision (git rev-parse @):
b4250b679a87ab1ba586d9037479436119734f0c
SUCCESS checkout https://github.com/matthew-2000/SwiftToast.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",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "swifttoast",
      "name": "SwiftToast",
      "url": "https://github.com/matthew-2000/SwiftToast.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftToast",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/matthew-2000/SwiftToast.git
[1/178] Fetching swifttoast
Fetched https://github.com/matthew-2000/SwiftToast.git from cache (0.65s)
Creating working copy for https://github.com/matthew-2000/SwiftToast.git
Working copy of https://github.com/matthew-2000/SwiftToast.git resolved at main (b4250b6)
warning: '.resolve-product-dependencies': dependency 'swifttoast' 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/matthew-2000/SwiftToast.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 SwiftToast
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:4:45: error: 'Animation' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public enum ToastAnimationStyle {
    |             `- note: add '@available' attribute to enclosing enum
  4 |     case fade, slide, bounce, scale, custom(Animation)
    |          |                                  `- error: 'Animation' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing enum case
  5 |
  6 |     var animation: Animation {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:6:20: error: 'Animation' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public enum ToastAnimationStyle {
    |             `- note: add '@available' attribute to enclosing enum
  4 |     case fade, slide, bounce, scale, custom(Animation)
  5 |
  6 |     var animation: Animation {
    |         |          `- error: 'Animation' is only available in macOS 10.15 or newer
    |         `- note: add '@available' attribute to enclosing property
  7 |         switch self {
  8 |         case .fade:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:26:26: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
 26 |     let backgroundColor: Color
    |                          `- error: 'Color' is only available in macOS 10.15 or newer
 27 |     let textColor: Color
 28 |     let font: Font
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:27:20: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
 26 |     let backgroundColor: Color
 27 |     let textColor: Color
    |                    `- error: 'Color' is only available in macOS 10.15 or newer
 28 |     let font: Font
 29 |     let position: VerticalAlignment
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:28:15: error: 'Font' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
 26 |     let backgroundColor: Color
 27 |     let textColor: Color
 28 |     let font: Font
    |               `- error: 'Font' is only available in macOS 10.15 or newer
 29 |     let position: VerticalAlignment
 30 |     let animationStyle: ToastAnimationStyle
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:29:19: error: 'VerticalAlignment' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 27 |     let textColor: Color
 28 |     let font: Font
 29 |     let position: VerticalAlignment
    |                   `- error: 'VerticalAlignment' is only available in macOS 10.15 or newer
 30 |     let animationStyle: ToastAnimationStyle
 31 |     @Binding var isPresented: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:31:6: error: 'Binding' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 29 |     let position: VerticalAlignment
 30 |     let animationStyle: ToastAnimationStyle
 31 |     @Binding var isPresented: Bool
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 32 |
 33 |     @State private var scale: CGFloat = 0.9
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 31 |     @Binding var isPresented: Bool
 32 |
 33 |     @State private var scale: CGFloat = 0.9
    |      `- error: 'State' is only available in macOS 10.15 or newer
 34 |     @State private var opacity: Double = 0
 35 |     @State private var offsetY: CGFloat = 100
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 32 |
 33 |     @State private var scale: CGFloat = 0.9
 34 |     @State private var opacity: Double = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 35 |     @State private var offsetY: CGFloat = 100
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 33 |     @State private var scale: CGFloat = 0.9
 34 |     @State private var opacity: Double = 0
 35 |     @State private var offsetY: CGFloat = 100
    |      `- error: 'State' is only available in macOS 10.15 or newer
 36 |
 37 |     public init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:40:26: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                          `- error: 'Color' is only available in macOS 10.15 or newer
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:41:20: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
 41 |         textColor: Color = .white,
    |                    `- error: 'Color' is only available in macOS 10.15 or newer
 42 |         font: Font = .body,
 43 |         position: VerticalAlignment = .bottom,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:42:15: error: 'Font' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
    |               `- error: 'Font' is only available in macOS 10.15 or newer
 43 |         position: VerticalAlignment = .bottom,
 44 |         animationStyle: ToastAnimationStyle = .slide,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:43:19: error: 'VerticalAlignment' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
    :
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
 43 |         position: VerticalAlignment = .bottom,
    |                   `- error: 'VerticalAlignment' is only available in macOS 10.15 or newer
 44 |         animationStyle: ToastAnimationStyle = .slide,
 45 |         isPresented: Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:45:22: error: 'Binding' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
    :
 43 |         position: VerticalAlignment = .bottom,
 44 |         animationStyle: ToastAnimationStyle = .slide,
 45 |         isPresented: Binding<Bool>
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
 46 |     ) {
 47 |         self.message = message
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:40:34: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                  `- error: 'Color' is only available in macOS 10.15 or newer
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:40:40: error: 'black' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                        `- error: 'black' is only available in macOS 10.15 or newer
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:40:46: error: 'opacity' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                              `- error: 'opacity' is only available in macOS 10.15 or newer
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:41:29: error: 'white' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
 41 |         textColor: Color = .white,
    |                             `- error: 'white' is only available in macOS 10.15 or newer
 42 |         font: Font = .body,
 43 |         position: VerticalAlignment = .bottom,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:42:23: error: 'body' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
    |                       `- error: 'body' is only available in macOS 10.15 or newer
 43 |         position: VerticalAlignment = .bottom,
 44 |         animationStyle: ToastAnimationStyle = .slide,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:43:40: error: 'bottom' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
    :
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
 43 |         position: VerticalAlignment = .bottom,
    |                                        `- error: 'bottom' is only available in macOS 10.15 or newer
 44 |         animationStyle: ToastAnimationStyle = .slide,
 45 |         isPresented: Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:57:27: error: 'View' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:105:22: error: 'Binding' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
106 |         message: String,
107 |         duration: TimeInterval = 2,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:108:26: error: 'Color' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                          `- error: 'Color' is only available in macOS 10.15 or newer
109 |         textColor: Color = .white,
110 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:109:20: error: 'Color' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
109 |         textColor: Color = .white,
    |                    `- error: 'Color' is only available in macOS 10.15 or newer
110 |         font: Font = .body,
111 |         position: VerticalAlignment = .bottom,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:110:15: error: 'Font' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
108 |         backgroundColor: Color = Color.black.opacity(0.8),
109 |         textColor: Color = .white,
110 |         font: Font = .body,
    |               `- error: 'Font' is only available in macOS 10.15 or newer
111 |         position: VerticalAlignment = .bottom,
112 |         animationStyle: ToastAnimationStyle = .slide
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:111:19: error: 'VerticalAlignment' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
109 |         textColor: Color = .white,
110 |         font: Font = .body,
111 |         position: VerticalAlignment = .bottom,
    |                   `- error: 'VerticalAlignment' is only available in macOS 10.15 or newer
112 |         animationStyle: ToastAnimationStyle = .slide
113 |     ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:113:15: error: 'View' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
111 |         position: VerticalAlignment = .bottom,
112 |         animationStyle: ToastAnimationStyle = .slide
113 |     ) -> some View {
    |               `- error: 'View' is only available in macOS 10.15 or newer
114 |         ZStack {
115 |             self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:108:34: error: 'Color' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                  `- error: 'Color' is only available in macOS 10.15 or newer
109 |         textColor: Color = .white,
110 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:108:40: error: 'black' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                        `- error: 'black' is only available in macOS 10.15 or newer
109 |         textColor: Color = .white,
110 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:108:46: error: 'opacity' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                              `- error: 'opacity' is only available in macOS 10.15 or newer
109 |         textColor: Color = .white,
110 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:109:29: error: 'white' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
109 |         textColor: Color = .white,
    |                             `- error: 'white' is only available in macOS 10.15 or newer
110 |         font: Font = .body,
111 |         position: VerticalAlignment = .bottom,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:110:23: error: 'body' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
108 |         backgroundColor: Color = Color.black.opacity(0.8),
109 |         textColor: Color = .white,
110 |         font: Font = .body,
    |                       `- error: 'body' is only available in macOS 10.15 or newer
111 |         position: VerticalAlignment = .bottom,
112 |         animationStyle: ToastAnimationStyle = .slide
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:111:40: error: 'bottom' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
109 |         textColor: Color = .white,
110 |         font: Font = .body,
111 |         position: VerticalAlignment = .bottom,
    |                                        `- error: 'bottom' is only available in macOS 10.15 or newer
112 |         animationStyle: ToastAnimationStyle = .slide
113 |     ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:103:18: error: 'View' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        |         `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
105 |         isPresented: Binding<Bool>,
[4/4] Compiling SwiftToast SwiftToast.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:4:45: error: 'Animation' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public enum ToastAnimationStyle {
    |             `- note: add '@available' attribute to enclosing enum
  4 |     case fade, slide, bounce, scale, custom(Animation)
    |          |                                  `- error: 'Animation' is only available in macOS 10.15 or newer
    |          `- note: add '@available' attribute to enclosing enum case
  5 |
  6 |     var animation: Animation {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:6:20: error: 'Animation' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public enum ToastAnimationStyle {
    |             `- note: add '@available' attribute to enclosing enum
  4 |     case fade, slide, bounce, scale, custom(Animation)
  5 |
  6 |     var animation: Animation {
    |         |          `- error: 'Animation' is only available in macOS 10.15 or newer
    |         `- note: add '@available' attribute to enclosing property
  7 |         switch self {
  8 |         case .fade:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:26:26: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
 26 |     let backgroundColor: Color
    |                          `- error: 'Color' is only available in macOS 10.15 or newer
 27 |     let textColor: Color
 28 |     let font: Font
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:27:20: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
 26 |     let backgroundColor: Color
 27 |     let textColor: Color
    |                    `- error: 'Color' is only available in macOS 10.15 or newer
 28 |     let font: Font
 29 |     let position: VerticalAlignment
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:28:15: error: 'Font' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
 26 |     let backgroundColor: Color
 27 |     let textColor: Color
 28 |     let font: Font
    |               `- error: 'Font' is only available in macOS 10.15 or newer
 29 |     let position: VerticalAlignment
 30 |     let animationStyle: ToastAnimationStyle
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:29:19: error: 'VerticalAlignment' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 27 |     let textColor: Color
 28 |     let font: Font
 29 |     let position: VerticalAlignment
    |                   `- error: 'VerticalAlignment' is only available in macOS 10.15 or newer
 30 |     let animationStyle: ToastAnimationStyle
 31 |     @Binding var isPresented: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:31:6: error: 'Binding' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 29 |     let position: VerticalAlignment
 30 |     let animationStyle: ToastAnimationStyle
 31 |     @Binding var isPresented: Bool
    |      `- error: 'Binding' is only available in macOS 10.15 or newer
 32 |
 33 |     @State private var scale: CGFloat = 0.9
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 31 |     @Binding var isPresented: Bool
 32 |
 33 |     @State private var scale: CGFloat = 0.9
    |      `- error: 'State' is only available in macOS 10.15 or newer
 34 |     @State private var opacity: Double = 0
 35 |     @State private var offsetY: CGFloat = 100
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 32 |
 33 |     @State private var scale: CGFloat = 0.9
 34 |     @State private var opacity: Double = 0
    |      `- error: 'State' is only available in macOS 10.15 or newer
 35 |     @State private var offsetY: CGFloat = 100
 36 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 33 |     @State private var scale: CGFloat = 0.9
 34 |     @State private var opacity: Double = 0
 35 |     @State private var offsetY: CGFloat = 100
    |      `- error: 'State' is only available in macOS 10.15 or newer
 36 |
 37 |     public init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:40:26: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                          `- error: 'Color' is only available in macOS 10.15 or newer
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:41:20: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
 41 |         textColor: Color = .white,
    |                    `- error: 'Color' is only available in macOS 10.15 or newer
 42 |         font: Font = .body,
 43 |         position: VerticalAlignment = .bottom,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:42:15: error: 'Font' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
    |               `- error: 'Font' is only available in macOS 10.15 or newer
 43 |         position: VerticalAlignment = .bottom,
 44 |         animationStyle: ToastAnimationStyle = .slide,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:43:19: error: 'VerticalAlignment' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
    :
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
 43 |         position: VerticalAlignment = .bottom,
    |                   `- error: 'VerticalAlignment' is only available in macOS 10.15 or newer
 44 |         animationStyle: ToastAnimationStyle = .slide,
 45 |         isPresented: Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:45:22: error: 'Binding' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
    :
 43 |         position: VerticalAlignment = .bottom,
 44 |         animationStyle: ToastAnimationStyle = .slide,
 45 |         isPresented: Binding<Bool>
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
 46 |     ) {
 47 |         self.message = message
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:40:34: error: 'Color' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                  `- error: 'Color' is only available in macOS 10.15 or newer
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:40:40: error: 'black' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                        `- error: 'black' is only available in macOS 10.15 or newer
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:40:46: error: 'opacity' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                              `- error: 'opacity' is only available in macOS 10.15 or newer
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:41:29: error: 'white' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
 41 |         textColor: Color = .white,
    |                             `- error: 'white' is only available in macOS 10.15 or newer
 42 |         font: Font = .body,
 43 |         position: VerticalAlignment = .bottom,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:42:23: error: 'body' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
 40 |         backgroundColor: Color = Color.black.opacity(0.8),
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
    |                       `- error: 'body' is only available in macOS 10.15 or newer
 43 |         position: VerticalAlignment = .bottom,
 44 |         animationStyle: ToastAnimationStyle = .slide,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:43:40: error: 'bottom' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 35 |     @State private var offsetY: CGFloat = 100
 36 |
 37 |     public init(
    |            `- note: add '@available' attribute to enclosing initializer
 38 |         message: String,
 39 |         duration: TimeInterval = 2,
    :
 41 |         textColor: Color = .white,
 42 |         font: Font = .body,
 43 |         position: VerticalAlignment = .bottom,
    |                                        `- error: 'bottom' is only available in macOS 10.15 or newer
 44 |         animationStyle: ToastAnimationStyle = .slide,
 45 |         isPresented: Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:57:27: error: 'View' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:105:22: error: 'Binding' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
    |                      `- error: 'Binding' is only available in macOS 10.15 or newer
106 |         message: String,
107 |         duration: TimeInterval = 2,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:108:26: error: 'Color' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                          `- error: 'Color' is only available in macOS 10.15 or newer
109 |         textColor: Color = .white,
110 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:109:20: error: 'Color' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
109 |         textColor: Color = .white,
    |                    `- error: 'Color' is only available in macOS 10.15 or newer
110 |         font: Font = .body,
111 |         position: VerticalAlignment = .bottom,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:110:15: error: 'Font' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
108 |         backgroundColor: Color = Color.black.opacity(0.8),
109 |         textColor: Color = .white,
110 |         font: Font = .body,
    |               `- error: 'Font' is only available in macOS 10.15 or newer
111 |         position: VerticalAlignment = .bottom,
112 |         animationStyle: ToastAnimationStyle = .slide
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:111:19: error: 'VerticalAlignment' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
109 |         textColor: Color = .white,
110 |         font: Font = .body,
111 |         position: VerticalAlignment = .bottom,
    |                   `- error: 'VerticalAlignment' is only available in macOS 10.15 or newer
112 |         animationStyle: ToastAnimationStyle = .slide
113 |     ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:113:15: error: 'View' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
111 |         position: VerticalAlignment = .bottom,
112 |         animationStyle: ToastAnimationStyle = .slide
113 |     ) -> some View {
    |               `- error: 'View' is only available in macOS 10.15 or newer
114 |         ZStack {
115 |             self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:108:34: error: 'Color' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                  `- error: 'Color' is only available in macOS 10.15 or newer
109 |         textColor: Color = .white,
110 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:108:40: error: 'black' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                        `- error: 'black' is only available in macOS 10.15 or newer
109 |         textColor: Color = .white,
110 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:108:46: error: 'opacity' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
    |                                              `- error: 'opacity' is only available in macOS 10.15 or newer
109 |         textColor: Color = .white,
110 |         font: Font = .body,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:109:29: error: 'white' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
107 |         duration: TimeInterval = 2,
108 |         backgroundColor: Color = Color.black.opacity(0.8),
109 |         textColor: Color = .white,
    |                             `- error: 'white' is only available in macOS 10.15 or newer
110 |         font: Font = .body,
111 |         position: VerticalAlignment = .bottom,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:110:23: error: 'body' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
108 |         backgroundColor: Color = Color.black.opacity(0.8),
109 |         textColor: Color = .white,
110 |         font: Font = .body,
    |                       `- error: 'body' is only available in macOS 10.15 or newer
111 |         position: VerticalAlignment = .bottom,
112 |         animationStyle: ToastAnimationStyle = .slide
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:111:40: error: 'bottom' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
109 |         textColor: Color = .white,
110 |         font: Font = .body,
111 |         position: VerticalAlignment = .bottom,
    |                                        `- error: 'bottom' is only available in macOS 10.15 or newer
112 |         animationStyle: ToastAnimationStyle = .slide
113 |     ) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:103:18: error: 'View' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        |         `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
105 |         isPresented: Binding<Bool>,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:9:21: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public enum ToastAnimationStyle {
    |             `- note: add '@available' attribute to enclosing enum
  4 |     case fade, slide, bounce, scale, custom(Animation)
  5 |
  6 |     var animation: Animation {
    |         `- note: add '@available' attribute to enclosing property
  7 |         switch self {
  8 |         case .fade:
  9 |             return .easeInOut(duration: 0.5)
    |                     |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 10 |         case .slide:
 11 |             return .spring(response: 0.5, dampingFraction: 0.6, blendDuration: 0.3)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:11:21: error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public enum ToastAnimationStyle {
    |             `- note: add '@available' attribute to enclosing enum
  4 |     case fade, slide, bounce, scale, custom(Animation)
  5 |
  6 |     var animation: Animation {
    |         `- note: add '@available' attribute to enclosing property
  7 |         switch self {
  8 |         case .fade:
  9 |             return .easeInOut(duration: 0.5)
 10 |         case .slide:
 11 |             return .spring(response: 0.5, dampingFraction: 0.6, blendDuration: 0.3)
    |                     |- error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 12 |         case .bounce:
 13 |             return .interpolatingSpring(stiffness: 120, damping: 10)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:13:21: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public enum ToastAnimationStyle {
    |             `- note: add '@available' attribute to enclosing enum
  4 |     case fade, slide, bounce, scale, custom(Animation)
  5 |
  6 |     var animation: Animation {
    |         `- note: add '@available' attribute to enclosing property
  7 |         switch self {
  8 |         case .fade:
    :
 11 |             return .spring(response: 0.5, dampingFraction: 0.6, blendDuration: 0.3)
 12 |         case .bounce:
 13 |             return .interpolatingSpring(stiffness: 120, damping: 10)
    |                     |- error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 14 |         case .scale:
 15 |             return .spring(response: 0.3, dampingFraction: 0.5, blendDuration: 0.2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:15:21: error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public enum ToastAnimationStyle {
    |             `- note: add '@available' attribute to enclosing enum
  4 |     case fade, slide, bounce, scale, custom(Animation)
  5 |
  6 |     var animation: Animation {
    |         `- note: add '@available' attribute to enclosing property
  7 |         switch self {
  8 |         case .fade:
    :
 13 |             return .interpolatingSpring(stiffness: 120, damping: 10)
 14 |         case .scale:
 15 |             return .spring(response: 0.3, dampingFraction: 0.5, blendDuration: 0.2)
    |                     |- error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 16 |         case .custom(let anim):
 17 |             return anim
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:58:9: error: 'VStack' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 59 |             if position == .bottom { Spacer() }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:59:29: error: 'bottom' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    |                             |- error: 'bottom' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
 60 |
 61 |             Text(message)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:59:38: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    |                                      |- warning: conformance of 'Spacer' 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
 60 |
 61 |             Text(message)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:59:38: error: 'Spacer' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    |                                      |- error: 'Spacer' is only available in macOS 10.15 or newer
    |                                      `- note: add 'if #available' version check
 60 |
 61 |             Text(message)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:59:36: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    |                                    |- warning: conformance of 'Spacer' 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
 60 |
 61 |             Text(message)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:59:36: error: 'buildIf' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    |                                    |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                                    `- note: add 'if #available' version check
 60 |
 61 |             Text(message)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:59:47: error: 'buildIf' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    |                                               |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                                               `- note: add 'if #available' version check
 60 |
 61 |             Text(message)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:61:13: error: 'Text' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
 60 |
 61 |             Text(message)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 62 |                 .font(font)
 63 |                 .bold()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:62:18: error: 'font' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
 60 |
 61 |             Text(message)
 62 |                 .font(font)
    |                  |- error: 'font' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 63 |                 .bold()
 64 |                 .padding()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:63:18: error: 'bold()' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 61 |             Text(message)
 62 |                 .font(font)
 63 |                 .bold()
    |                  |- error: 'bold()' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 64 |                 .padding()
 65 |                 .background(backgroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:64:18: error: 'padding' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 62 |                 .font(font)
 63 |                 .bold()
 64 |                 .padding()
    |                  |- error: 'padding' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 65 |                 .background(backgroundColor)
 66 |                 .foregroundColor(textColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:65:18: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 63 |                 .bold()
 64 |                 .padding()
 65 |                 .background(backgroundColor)
    |                  |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
    |                  `- note: add 'if #available' version check
 66 |                 .foregroundColor(textColor)
 67 |                 .cornerRadius(12)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:66:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 64 |                 .padding()
 65 |                 .background(backgroundColor)
 66 |                 .foregroundColor(textColor)
    |                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 67 |                 .cornerRadius(12)
 68 |                 .shadow(color: .black.opacity(opacity * 0.3), radius: 10, x: 0, y: 5)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:67:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 65 |                 .background(backgroundColor)
 66 |                 .foregroundColor(textColor)
 67 |                 .cornerRadius(12)
    |                  |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 68 |                 .shadow(color: .black.opacity(opacity * 0.3), radius: 10, x: 0, y: 5)
 69 |                 .scaleEffect(scale)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:68:18: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 66 |                 .foregroundColor(textColor)
 67 |                 .cornerRadius(12)
 68 |                 .shadow(color: .black.opacity(opacity * 0.3), radius: 10, x: 0, y: 5)
    |                  |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 69 |                 .scaleEffect(scale)
 70 |                 .offset(y: offsetY)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:68:33: error: 'black' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 66 |                 .foregroundColor(textColor)
 67 |                 .cornerRadius(12)
 68 |                 .shadow(color: .black.opacity(opacity * 0.3), radius: 10, x: 0, y: 5)
    |                                 |- error: 'black' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 69 |                 .scaleEffect(scale)
 70 |                 .offset(y: offsetY)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:68:39: error: 'opacity' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 66 |                 .foregroundColor(textColor)
 67 |                 .cornerRadius(12)
 68 |                 .shadow(color: .black.opacity(opacity * 0.3), radius: 10, x: 0, y: 5)
    |                                       |- error: 'opacity' is only available in macOS 10.15 or newer
    |                                       `- note: add 'if #available' version check
 69 |                 .scaleEffect(scale)
 70 |                 .offset(y: offsetY)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:69:18: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 67 |                 .cornerRadius(12)
 68 |                 .shadow(color: .black.opacity(opacity * 0.3), radius: 10, x: 0, y: 5)
 69 |                 .scaleEffect(scale)
    |                  |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 70 |                 .offset(y: offsetY)
 71 |                 .opacity(opacity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:70:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 68 |                 .shadow(color: .black.opacity(opacity * 0.3), radius: 10, x: 0, y: 5)
 69 |                 .scaleEffect(scale)
 70 |                 .offset(y: offsetY)
    |                  |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 71 |                 .opacity(opacity)
 72 |                 .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:71:18: error: 'opacity' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 69 |                 .scaleEffect(scale)
 70 |                 .offset(y: offsetY)
 71 |                 .opacity(opacity)
    |                  |- error: 'opacity' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 72 |                 .onAppear {
 73 |                     withAnimation(animationStyle.animation) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:72:18: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 70 |                 .offset(y: offsetY)
 71 |                 .opacity(opacity)
 72 |                 .onAppear {
    |                  |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
 73 |                     withAnimation(animationStyle.animation) {
 74 |                         scale = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:73:21: error: 'withAnimation' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 71 |                 .opacity(opacity)
 72 |                 .onAppear {
 73 |                     withAnimation(animationStyle.animation) {
    |                     |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 74 |                         scale = 1
 75 |                         opacity = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:74:25: error: setter for 'scale' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 72 |                 .onAppear {
 73 |                     withAnimation(animationStyle.animation) {
 74 |                         scale = 1
    |                         |- error: setter for 'scale' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 75 |                         opacity = 1
 76 |                         offsetY = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:75:25: error: setter for 'opacity' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 73 |                     withAnimation(animationStyle.animation) {
 74 |                         scale = 1
 75 |                         opacity = 1
    |                         |- error: setter for 'opacity' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 76 |                         offsetY = 0
 77 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:76:25: error: setter for 'offsetY' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 74 |                         scale = 1
 75 |                         opacity = 1
 76 |                         offsetY = 0
    |                         |- error: setter for 'offsetY' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 77 |                     }
 78 |                     DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:79:25: error: 'withAnimation' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 77 |                     }
 78 |                     DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
 79 |                         withAnimation(animationStyle.animation) {
    |                         |- error: 'withAnimation' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 80 |                             scale = 0.9
 81 |                             opacity = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:80:29: error: setter for 'scale' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 78 |                     DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
 79 |                         withAnimation(animationStyle.animation) {
 80 |                             scale = 0.9
    |                             |- error: setter for 'scale' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
 81 |                             opacity = 0
 82 |                             offsetY = 100
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:81:29: error: setter for 'opacity' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 79 |                         withAnimation(animationStyle.animation) {
 80 |                             scale = 0.9
 81 |                             opacity = 0
    |                             |- error: setter for 'opacity' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
 82 |                             offsetY = 100
 83 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:82:29: error: setter for 'offsetY' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 80 |                             scale = 0.9
 81 |                             opacity = 0
 82 |                             offsetY = 100
    |                             |- error: setter for 'offsetY' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
 83 |                         }
 84 |                         startDismissTimer()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:88:29: error: 'top' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 86 |                 }
 87 |
 88 |             if position == .top { Spacer() }
    |                             |- error: 'top' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
 89 |         }
 90 |         .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:88:35: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 86 |                 }
 87 |
 88 |             if position == .top { Spacer() }
    |                                   |- warning: conformance of 'Spacer' 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
 89 |         }
 90 |         .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:88:35: error: 'Spacer' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 86 |                 }
 87 |
 88 |             if position == .top { Spacer() }
    |                                   |- error: 'Spacer' is only available in macOS 10.15 or newer
    |                                   `- note: add 'if #available' version check
 89 |         }
 90 |         .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:88:33: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 86 |                 }
 87 |
 88 |             if position == .top { Spacer() }
    |                                 |- warning: conformance of 'Spacer' 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
 89 |         }
 90 |         .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:88:33: error: 'buildIf' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 86 |                 }
 87 |
 88 |             if position == .top { Spacer() }
    |                                 |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                                 `- note: add 'if #available' version check
 89 |         }
 90 |         .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:88:44: error: 'buildIf' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 86 |                 }
 87 |
 88 |             if position == .top { Spacer() }
    |                                            |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                                            `- note: add 'if #available' version check
 89 |         }
 90 |         .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:58:16: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
    |                |- warning: conformance of 'Optional<Wrapped>' 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
 59 |             if position == .bottom { Spacer() }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:58:16: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
    |                |- warning: conformance of 'Optional<Wrapped>' 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
 59 |             if position == .bottom { Spacer() }
 60 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:90:10: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 88 |             if position == .top { Spacer() }
 89 |         }
 90 |         .frame(maxWidth: .infinity)
    |          |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 91 |         .padding(.vertical, 50)
 92 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:91:10: error: 'padding' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 55 |     }
 56 |
 57 |     public var body: some View {
    |                `- note: add '@available' attribute to enclosing property
 58 |         VStack {
 59 |             if position == .bottom { Spacer() }
    :
 89 |         }
 90 |         .frame(maxWidth: .infinity)
 91 |         .padding(.vertical, 50)
    |          |- error: 'padding' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 92 |     }
 93 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:96:13: error: setter for 'isPresented' is only available in macOS 10.15 or newer
 21 |
 22 | @MainActor
 23 | public struct ToastView: View {
    |               `- note: add '@available' attribute to enclosing struct
 24 |     let message: String
 25 |     let duration: TimeInterval
    :
 92 |     }
 93 |
 94 |     func startDismissTimer() {
    |          `- note: add '@available' attribute to enclosing instance method
 95 |         DispatchQueue.main.asyncAfter(deadline: .now() + duration) {
 96 |             isPresented = false
    |             |- error: setter for 'isPresented' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 97 |         }
 98 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:114:9: error: 'ZStack' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
112 |         animationStyle: ToastAnimationStyle = .slide
113 |     ) -> some View {
114 |         ZStack {
    |         |- error: 'ZStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
115 |             self
116 |             if isPresented.wrappedValue {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:116:41: error: 'buildIf' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
114 |         ZStack {
115 |             self
116 |             if isPresented.wrappedValue {
    |                                         |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                                         `- note: add 'if #available' version check
117 |                 ToastView(
118 |                     message: message,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:127:13: error: 'buildIf' is only available in macOS 10.15 or newer
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
125 |                     isPresented: isPresented // 🔥 Passiamo il binding per aggiornarlo!
126 |                 )
127 |             }
    |             |- error: 'buildIf' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
128 |         }
129 |     }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToast/SwiftToast.swift:114:16: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
101 |
102 | @MainActor
103 | public extension View {
    |        `- note: add '@available' attribute to enclosing extension
104 |     func toast(
    |          `- note: add '@available' attribute to enclosing instance method
105 |         isPresented: Binding<Bool>,
106 |         message: String,
    :
112 |         animationStyle: ToastAnimationStyle = .slide
113 |     ) -> some View {
114 |         ZStack {
    |                |- warning: conformance of 'Optional<Wrapped>' 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
115 |             self
116 |             if isPresented.wrappedValue {
BUILD FAILURE 6.3 macosSpm