The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Toaster, reference 0.0.1 (2af1ed), with Swift 6.2 for macOS (SPM) on 20 Jun 2025 02:14:49 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ryohey/Toaster.git
Reference: 0.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ryohey/Toaster
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at 2af1edd Update README.md
Cloned https://github.com/ryohey/Toaster.git
Revision (git rev-parse @):
2af1eddb15be1e7aa135b3ae4afbd13707eacfb2
SUCCESS checkout https://github.com/ryohey/Toaster.git at 0.0.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ryohey/Toaster.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/10] Emitting module Toaster
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:42:35: error: 'View' is only available in macOS 10.15 or newer
39 |
40 | #if DEBUG
41 |     struct ErrorToast_Previews: PreviewProvider {
   |            `- note: add @available attribute to enclosing struct
42 |         static var previews: some View {
   |                    |              `- error: 'View' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing static property
43 |             ErrorToast(text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:42:35: error: 'View' is only available in macOS 10.15 or newer
39 |
40 | #if DEBUG
41 |     struct InfoToast_Previews: PreviewProvider {
   |            `- note: add @available attribute to enclosing struct
42 |         static var previews: some View {
   |                    |              `- error: 'View' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing static property
43 |             InfoToast(text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:42:35: error: 'View' is only available in macOS 10.15 or newer
39 |
40 | #if DEBUG
41 |     struct SuccessToast_Previews: PreviewProvider {
   |            `- note: add @available attribute to enclosing struct
42 |         static var previews: some View {
   |                    |              `- error: 'View' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing static property
43 |             SuccessToast(text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
  6 |     private let onClose: () -> Void
  7 |     private let isPreview: Bool
  8 |     @State private var isShowing: Bool = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
  9 |
 10 |     public init(message: Message, layout: Layout, onClose: @escaping () -> Void, isPreview: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:17:27: error: 'View' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:52:29: error: 'AnyView' is only available in macOS 10.15 or newer
 48 |
 49 | public extension Toast {
 50 |     struct Message: Identifiable {
    |            `- note: add @available attribute to enclosing struct
 51 |         public let id = UUID()
 52 |         public let content: AnyView
    |                             `- error: 'AnyView' is only available in macOS 10.15 or newer
 53 |         public let config: Config
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:55:30: error: 'AnyView' is only available in macOS 10.15 or newer
 48 |
 49 | public extension Toast {
 50 |     struct Message: Identifiable {
    |            `- note: add @available attribute to enclosing struct
 51 |         public let id = UUID()
 52 |         public let content: AnyView
 53 |         public let config: Config
 54 |
 55 |         public init(content: AnyView, config: Config) {
    |                |             `- error: 'AnyView' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing initializer
 56 |             self.content = content
 57 |             self.config = config
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:63:32: error: 'AnyTransition' is only available in macOS 10.15 or newer
 59 |     }
 60 |
 61 |     struct Config {
    |            `- note: add @available attribute to enclosing struct
 62 |         public let duration: TimeInterval
 63 |         public let transition: AnyTransition
    |                                `- error: 'AnyTransition' is only available in macOS 10.15 or newer
 64 |         public let animation: Animation
 65 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:64:31: error: 'Animation' is only available in macOS 10.15 or newer
 59 |     }
 60 |
 61 |     struct Config {
    |            `- note: add @available attribute to enclosing struct
 62 |         public let duration: TimeInterval
 63 |         public let transition: AnyTransition
 64 |         public let animation: Animation
    |                               `- error: 'Animation' is only available in macOS 10.15 or newer
 65 |
 66 |         public init(duration: TimeInterval, transition: AnyTransition, animation: Animation) {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:66:57: error: 'AnyTransition' is only available in macOS 10.15 or newer
 59 |     }
 60 |
 61 |     struct Config {
    |            `- note: add @available attribute to enclosing struct
 62 |         public let duration: TimeInterval
 63 |         public let transition: AnyTransition
 64 |         public let animation: Animation
 65 |
 66 |         public init(duration: TimeInterval, transition: AnyTransition, animation: Animation) {
    |                |                                        `- error: 'AnyTransition' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing initializer
 67 |             self.duration = duration
 68 |             self.transition = transition
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:66:83: error: 'Animation' is only available in macOS 10.15 or newer
 59 |     }
 60 |
 61 |     struct Config {
    |            `- note: add @available attribute to enclosing struct
 62 |         public let duration: TimeInterval
 63 |         public let transition: AnyTransition
 64 |         public let animation: Animation
 65 |
 66 |         public init(duration: TimeInterval, transition: AnyTransition, animation: Animation) {
    |                |                                                                  `- error: 'Animation' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing initializer
 67 |             self.duration = duration
 68 |             self.transition = transition
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:74:29: error: 'EdgeInsets' is only available in macOS 10.15 or newer
 71 |     }
 72 |
 73 |     struct Layout {
    |            `- note: add @available attribute to enclosing struct
 74 |         public let padding: EdgeInsets
    |                             `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
 75 |
 76 |         public init(padding: EdgeInsets) {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:76:30: error: 'EdgeInsets' is only available in macOS 10.15 or newer
 71 |     }
 72 |
 73 |     struct Layout {
    |            `- note: add @available attribute to enclosing struct
 74 |         public let padding: EdgeInsets
 75 |
 76 |         public init(padding: EdgeInsets) {
    |                |             `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing initializer
 77 |             self.padding = padding
 78 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:84:35: error: 'View' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    |              `- error: 'View' is only available in macOS 10.15 or newer
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastMessages.swift:4:6: error: 'Published' is only available in macOS 10.15 or newer
 1 | import Foundation
 2 |
 3 | public class ToastMessages: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 4 |     @Published var messages = [Toast.Message]()
   |      `- error: 'Published' is only available in macOS 10.15 or newer
 5 |
 6 |     public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastMessages.swift:3:29: error: 'ObservableObject' is only available in macOS 10.15 or newer
 1 | import Foundation
 2 |
 3 | public class ToastMessages: ObservableObject {
   |              |              `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |              `- note: add @available attribute to enclosing class
 4 |     @Published var messages = [Toast.Message]()
 5 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:4:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
   |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
 5 |
 6 |     public let layout: Toast.Layout
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:9:48: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
 5 |
   :
 7 |
 8 |     @ViewBuilder
 9 |     public func body(content: Content) -> some View {
   |                 |                              `- error: 'View' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing instance method
10 |         ZStack {
11 |             content
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:8:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
 5 |
 6 |     public let layout: Toast.Layout
 7 |
 8 |     @ViewBuilder
   |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 9 |     public func body(content: Content) -> some View {
   |                 `- note: add @available attribute to enclosing instance method
10 |         ZStack {
11 |             content
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/View+Toast.swift:4:73: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
  |        `- note: add @available attribute to enclosing extension
4 |     func toast(_ messages: ToastMessages, layout: Toast.Layout) -> some View {
  |          |                                                              `- error: 'View' is only available in macOS 10.15 or newer
  |          `- note: add @available attribute to enclosing instance method
5 |         modifier(ToastModifier(messages: messages, layout: layout))
6 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/View+Toast.swift:3:18: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
  |        |         `- error: 'View' is only available in macOS 10.15 or newer
  |        `- note: add @available attribute to enclosing extension
4 |     func toast(_ messages: ToastMessages, layout: Toast.Layout) -> some View {
5 |         modifier(ToastModifier(messages: messages, layout: layout))
[4/10] Compiling Toaster ToastMessages.swift
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastMessages.swift:4:6: error: 'Published' is only available in macOS 10.15 or newer
 1 | import Foundation
 2 |
 3 | public class ToastMessages: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 4 |     @Published var messages = [Toast.Message]()
   |      `- error: 'Published' is only available in macOS 10.15 or newer
 5 |
 6 |     public init() {}
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastMessages.swift:3:29: error: 'ObservableObject' is only available in macOS 10.15 or newer
 1 | import Foundation
 2 |
 3 | public class ToastMessages: ObservableObject {
   |              |              `- error: 'ObservableObject' is only available in macOS 10.15 or newer
   |              `- note: add @available attribute to enclosing class
 4 |     @Published var messages = [Toast.Message]()
 5 |
<unknown>:0: error: cannot convert value of type 'KeyPath<ToastMessages, [Toast.Message]>' to expected argument type 'ReferenceWritableKeyPath<ToastMessages, [Toast.Message]>'
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastMessages.swift:9:9: error: cannot pass as inout because setter for 'messages' is only available in macOS 10.15 or newer
 1 | import Foundation
 2 |
 3 | public class ToastMessages: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 4 |     @Published var messages = [Toast.Message]()
 5 |
 6 |     public init() {}
 7 |
 8 |     public func present(_ message: Toast.Message) {
   |                 `- note: add @available attribute to enclosing instance method
 9 |         messages.append(message)
   |         |- error: cannot pass as inout because setter for 'messages' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
10 |     }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastMessages.swift:13:9: error: cannot pass as inout because setter for 'messages' is only available in macOS 10.15 or newer
 1 | import Foundation
 2 |
 3 | public class ToastMessages: ObservableObject {
   |              `- note: add @available attribute to enclosing class
 4 |     @Published var messages = [Toast.Message]()
 5 |
   :
10 |     }
11 |
12 |     public func remove(_ message: Toast.Message) {
   |                 `- note: add @available attribute to enclosing instance method
13 |         messages.removeAll { $0.id == message.id }
   |         |- error: cannot pass as inout because setter for 'messages' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
14 |     }
15 | }
[5/10] Compiling Toaster ErrorToast.swift
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:42:35: error: 'View' is only available in macOS 10.15 or newer
39 |
40 | #if DEBUG
41 |     struct ErrorToast_Previews: PreviewProvider {
   |            `- note: add @available attribute to enclosing struct
42 |         static var previews: some View {
   |                    |              `- error: 'View' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing static property
43 |             ErrorToast(text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:7:9: error: 'HStack' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
   |         |- error: 'HStack' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
 8 |             Image(systemName: "xmark.circle")
 9 |                 .font(.system(size: 26))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:8:13: error: 'Image' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   |             |- error: 'Image' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.red)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:8:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   |             |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
   |             `- note: add 'if #available' version check
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.red)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:9:18: error: 'font' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
 9 |                 .font(.system(size: 26))
   |                  |- error: 'font' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
10 |                 .foregroundColor(.red)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:9:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
 9 |                 .font(.system(size: 26))
   |                        |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
   |                        `- note: add 'if #available' version check
10 |                 .foregroundColor(.red)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:10:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.red)
   |                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
11 |
12 |             Text(text)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:10:35: error: 'red' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.red)
   |                                   |- error: 'red' is only available in macOS 10.15 or newer
   |                                   `- note: add 'if #available' version check
11 |
12 |             Text(text)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:12:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
10 |                 .foregroundColor(.red)
11 |
12 |             Text(text)
   |             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |             `- note: add 'if #available' version check
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:12:13: error: 'Text' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
10 |                 .foregroundColor(.red)
11 |
12 |             Text(text)
   |             |- error: 'Text' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:13:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
11 |
12 |             Text(text)
13 |                 .foregroundColor(.black)
   |                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
14 |                 .font(.system(size: 14))
15 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:13:35: error: 'black' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
11 |
12 |             Text(text)
13 |                 .foregroundColor(.black)
   |                                   |- error: 'black' is only available in macOS 10.15 or newer
   |                                   `- note: add 'if #available' version check
14 |                 .font(.system(size: 14))
15 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:14:18: error: 'font' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
12 |             Text(text)
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
   |                  |- error: 'font' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
15 |         }
16 |         .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:14:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
12 |             Text(text)
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
   |                        |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
   |                        `- note: add 'if #available' version check
15 |         }
16 |         .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:7:29: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
   |                             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |                             `- note: add 'if #available' version check
 8 |             Image(systemName: "xmark.circle")
 9 |                 .font(.system(size: 26))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:16:10: error: 'padding' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
14 |                 .font(.system(size: 14))
15 |         }
16 |         .padding(16)
   |          |- error: 'padding' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
17 |         .background(Color.white)
18 |         .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:17:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
15 |         }
16 |         .padding(16)
17 |         .background(Color.white)
   |          |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
   |          `- note: add 'if #available' version check
18 |         .overlay(
19 |             Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:17:21: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
15 |         }
16 |         .padding(16)
17 |         .background(Color.white)
   |                     |- error: 'Color' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
18 |         .overlay(
19 |             Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:17:27: error: 'white' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
15 |         }
16 |         .padding(16)
17 |         .background(Color.white)
   |                           |- error: 'white' is only available in macOS 10.15 or newer
   |                           `- note: add 'if #available' version check
18 |         .overlay(
19 |             Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:18:10: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
16 |         .padding(16)
17 |         .background(Color.white)
18 |         .overlay(
   |          |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:19:13: error: 'Rectangle' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
17 |         .background(Color.white)
18 |         .overlay(
19 |             Rectangle()
   |             |- error: 'Rectangle' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
21 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:20:18: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
18 |         .overlay(
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
   |                  |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
   |                  `- note: add 'if #available' version check
21 |         )
22 |         .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:20:26: error: 'white' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
18 |         .overlay(
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
   |                          |- error: 'white' is only available in macOS 10.15 or newer
   |                          `- note: add 'if #available' version check
21 |         )
22 |         .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:20:32: error: 'opacity' is only available in macOS 12.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
18 |         .overlay(
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
   |                                |- error: 'opacity' is only available in macOS 12.0 or newer
   |                                `- note: add 'if #available' version check
21 |         )
22 |         .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:22:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
21 |         )
22 |         .cornerRadius(8)
   |          |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:23:10: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
21 |         )
22 |         .cornerRadius(8)
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
   |          |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:23:25: error: 'black' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
21 |         )
22 |         .cornerRadius(8)
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
   |                         |- error: 'black' is only available in macOS 10.15 or newer
   |                         `- note: add 'if #available' version check
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:23:31: error: 'opacity' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct ErrorToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "xmark.circle")
   :
21 |         )
22 |         .cornerRadius(8)
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
   |                               |- error: 'opacity' is only available in macOS 10.15 or newer
   |                               `- note: add 'if #available' version check
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:30:22: error: 'AnyView' is only available in macOS 10.15 or newer
25 | }
26 |
27 | public extension Toast.Message {
   |        `- note: add @available attribute to enclosing extension
28 |     static func defaultError(text: String) -> Self {
   |                 `- note: add @available attribute to enclosing static method
29 |         Self(
30 |             content: AnyView(ErrorToast(text: text)),
   |                      |- error: 'AnyView' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
31 |             config: .init(
32 |                 duration: 3,
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:33:30: error: 'opacity' is only available in macOS 10.15 or newer
25 | }
26 |
27 | public extension Toast.Message {
   |        `- note: add @available attribute to enclosing extension
28 |     static func defaultError(text: String) -> Self {
   |                 `- note: add @available attribute to enclosing static method
29 |         Self(
30 |             content: AnyView(ErrorToast(text: text)),
31 |             config: .init(
32 |                 duration: 3,
33 |                 transition: .opacity,
   |                              |- error: 'opacity' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
34 |                 animation: .easeInOut(duration: 0.5)
35 |             )
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ErrorToast.swift:34:29: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
25 | }
26 |
27 | public extension Toast.Message {
   |        `- note: add @available attribute to enclosing extension
28 |     static func defaultError(text: String) -> Self {
   |                 `- note: add @available attribute to enclosing static method
29 |         Self(
30 |             content: AnyView(ErrorToast(text: text)),
   :
32 |                 duration: 3,
33 |                 transition: .opacity,
34 |                 animation: .easeInOut(duration: 0.5)
   |                             |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
   |                             `- note: add 'if #available' version check
35 |             )
36 |         )
[6/10] Compiling Toaster ToastModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:4:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
   |      `- error: 'ObservedObject' is only available in macOS 10.15 or newer
 5 |
 6 |     public let layout: Toast.Layout
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:9:48: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
 5 |
   :
 7 |
 8 |     @ViewBuilder
 9 |     public func body(content: Content) -> some View {
   |                 |                              `- error: 'View' is only available in macOS 10.15 or newer
   |                 `- note: add @available attribute to enclosing instance method
10 |         ZStack {
11 |             content
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:8:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
 5 |
 6 |     public let layout: Toast.Layout
 7 |
 8 |     @ViewBuilder
   |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 9 |     public func body(content: Content) -> some View {
   |                 `- note: add @available attribute to enclosing instance method
10 |         ZStack {
11 |             content
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:10:9: error: 'ZStack' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
 5 |
   :
 7 |
 8 |     @ViewBuilder
 9 |     public func body(content: Content) -> some View {
   |                 `- note: add @available attribute to enclosing instance method
10 |         ZStack {
   |         |- error: 'ZStack' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
11 |             content
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:13:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
 5 |
   :
 7 |
 8 |     @ViewBuilder
 9 |     public func body(content: Content) -> some View {
   |                 `- note: add @available attribute to enclosing instance method
10 |         ZStack {
11 |             content
12 |
13 |             ForEach(messages.messages) { message in
   |             |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |             `- note: add 'if #available' version check
14 |                 Toast(
15 |                     message: message,
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:13:13: error: 'ForEach' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
 5 |
   :
 7 |
 8 |     @ViewBuilder
 9 |     public func body(content: Content) -> some View {
   |                 `- note: add @available attribute to enclosing instance method
10 |         ZStack {
11 |             content
12 |
13 |             ForEach(messages.messages) { message in
   |             |- error: 'ForEach' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
14 |                 Toast(
15 |                     message: message,
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:13:13: error: 'init(_:content:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
 5 |
   :
 7 |
 8 |     @ViewBuilder
 9 |     public func body(content: Content) -> some View {
   |                 `- note: add @available attribute to enclosing instance method
10 |         ZStack {
11 |             content
12 |
13 |             ForEach(messages.messages) { message in
   |             |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
14 |                 Toast(
15 |                     message: message,
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/ToastModifier.swift:10:16: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct ToastModifier: ViewModifier {
   |               `- note: add @available attribute to enclosing struct
 4 |     @ObservedObject var messages: ToastMessages
 5 |
   :
 7 |
 8 |     @ViewBuilder
 9 |     public func body(content: Content) -> some View {
   |                 `- note: add @available attribute to enclosing instance method
10 |         ZStack {
   |                |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |                `- note: add 'if #available' version check
11 |             content
12 |
[7/10] Compiling Toaster Toast.swift
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:8:6: error: 'State' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
  6 |     private let onClose: () -> Void
  7 |     private let isPreview: Bool
  8 |     @State private var isShowing: Bool = false
    |      `- error: 'State' is only available in macOS 10.15 or newer
  9 |
 10 |     public init(message: Message, layout: Layout, onClose: @escaping () -> Void, isPreview: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:17:27: error: 'View' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                |          `- error: 'View' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:52:29: error: 'AnyView' is only available in macOS 10.15 or newer
 48 |
 49 | public extension Toast {
 50 |     struct Message: Identifiable {
    |            `- note: add @available attribute to enclosing struct
 51 |         public let id = UUID()
 52 |         public let content: AnyView
    |                             `- error: 'AnyView' is only available in macOS 10.15 or newer
 53 |         public let config: Config
 54 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:55:30: error: 'AnyView' is only available in macOS 10.15 or newer
 48 |
 49 | public extension Toast {
 50 |     struct Message: Identifiable {
    |            `- note: add @available attribute to enclosing struct
 51 |         public let id = UUID()
 52 |         public let content: AnyView
 53 |         public let config: Config
 54 |
 55 |         public init(content: AnyView, config: Config) {
    |                |             `- error: 'AnyView' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing initializer
 56 |             self.content = content
 57 |             self.config = config
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:63:32: error: 'AnyTransition' is only available in macOS 10.15 or newer
 59 |     }
 60 |
 61 |     struct Config {
    |            `- note: add @available attribute to enclosing struct
 62 |         public let duration: TimeInterval
 63 |         public let transition: AnyTransition
    |                                `- error: 'AnyTransition' is only available in macOS 10.15 or newer
 64 |         public let animation: Animation
 65 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:64:31: error: 'Animation' is only available in macOS 10.15 or newer
 59 |     }
 60 |
 61 |     struct Config {
    |            `- note: add @available attribute to enclosing struct
 62 |         public let duration: TimeInterval
 63 |         public let transition: AnyTransition
 64 |         public let animation: Animation
    |                               `- error: 'Animation' is only available in macOS 10.15 or newer
 65 |
 66 |         public init(duration: TimeInterval, transition: AnyTransition, animation: Animation) {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:66:57: error: 'AnyTransition' is only available in macOS 10.15 or newer
 59 |     }
 60 |
 61 |     struct Config {
    |            `- note: add @available attribute to enclosing struct
 62 |         public let duration: TimeInterval
 63 |         public let transition: AnyTransition
 64 |         public let animation: Animation
 65 |
 66 |         public init(duration: TimeInterval, transition: AnyTransition, animation: Animation) {
    |                |                                        `- error: 'AnyTransition' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing initializer
 67 |             self.duration = duration
 68 |             self.transition = transition
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:66:83: error: 'Animation' is only available in macOS 10.15 or newer
 59 |     }
 60 |
 61 |     struct Config {
    |            `- note: add @available attribute to enclosing struct
 62 |         public let duration: TimeInterval
 63 |         public let transition: AnyTransition
 64 |         public let animation: Animation
 65 |
 66 |         public init(duration: TimeInterval, transition: AnyTransition, animation: Animation) {
    |                |                                                                  `- error: 'Animation' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing initializer
 67 |             self.duration = duration
 68 |             self.transition = transition
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:74:29: error: 'EdgeInsets' is only available in macOS 10.15 or newer
 71 |     }
 72 |
 73 |     struct Layout {
    |            `- note: add @available attribute to enclosing struct
 74 |         public let padding: EdgeInsets
    |                             `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
 75 |
 76 |         public init(padding: EdgeInsets) {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:76:30: error: 'EdgeInsets' is only available in macOS 10.15 or newer
 71 |     }
 72 |
 73 |     struct Layout {
    |            `- note: add @available attribute to enclosing struct
 74 |         public let padding: EdgeInsets
 75 |
 76 |         public init(padding: EdgeInsets) {
    |                |             `- error: 'EdgeInsets' is only available in macOS 10.15 or newer
    |                `- note: add @available attribute to enclosing initializer
 77 |             self.padding = padding
 78 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:84:35: error: 'View' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    |              `- error: 'View' is only available in macOS 10.15 or newer
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:18:9: error: 'VStack' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
    |         |- error: 'VStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 19 |             Spacer()
 20 |             if isShowing {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:19:13: 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
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             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
 20 |             if isShowing {
 21 |                 message.content
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:19:13: error: 'Spacer' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    |             |- error: 'Spacer' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 20 |             if isShowing {
 21 |                 message.content
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:22:22: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
 20 |             if isShowing {
 21 |                 message.content
 22 |                     .onTapGesture {
    |                      |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 23 |                         isShowing = false
 24 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:23:25: error: setter for 'isShowing' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 21 |                 message.content
 22 |                     .onTapGesture {
 23 |                         isShowing = false
    |                         |- error: setter for 'isShowing' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 24 |                     }
 25 |                     .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:25:22: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 23 |                         isShowing = false
 24 |                     }
 25 |                     .onAppear {
    |                      |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
    |                      `- note: add 'if #available' version check
 26 |                         // prevent a preview from crashing
 27 |                         guard !isPreview else { return }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:29:25: error: 'Task' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 27 |                         guard !isPreview else { return }
 28 |
 29 |                         Task {
    |                         |- error: 'Task' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 30 |                             try? await Task.sleep(nanoseconds: UInt64(message.config.duration * 1_000_000_000))
 31 |                             isShowing = false
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:29:25: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 27 |                         guard !isPreview else { return }
 28 |
 29 |                         Task {
    |                         |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 30 |                             try? await Task.sleep(nanoseconds: UInt64(message.config.duration * 1_000_000_000))
 31 |                             isShowing = false
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:30:40: error: 'Task' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 28 |
 29 |                         Task {
 30 |                             try? await Task.sleep(nanoseconds: UInt64(message.config.duration * 1_000_000_000))
    |                                        |- error: 'Task' is only available in macOS 10.15 or newer
    |                                        `- note: add 'if #available' version check
 31 |                             isShowing = false
 32 |                             // アニメーションが終わるのを適当な時間待つ
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:30:45: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 28 |
 29 |                         Task {
 30 |                             try? await Task.sleep(nanoseconds: UInt64(message.config.duration * 1_000_000_000))
    |                                             |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
    |                                             `- note: add 'if #available' version check
 31 |                             isShowing = false
 32 |                             // アニメーションが終わるのを適当な時間待つ
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:31:29: error: setter for 'isShowing' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 29 |                         Task {
 30 |                             try? await Task.sleep(nanoseconds: UInt64(message.config.duration * 1_000_000_000))
 31 |                             isShowing = false
    |                             |- error: setter for 'isShowing' is only available in macOS 10.15 or newer
    |                             `- note: add 'if #available' version check
 32 |                             // アニメーションが終わるのを適当な時間待つ
 33 |                             // (animation から duration が取得できないので)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:34:40: error: 'Task' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 32 |                             // アニメーションが終わるのを適当な時間待つ
 33 |                             // (animation から duration が取得できないので)
 34 |                             try? await Task.sleep(nanoseconds: UInt64(0.5 * 1_000_000_000))
    |                                        |- error: 'Task' is only available in macOS 10.15 or newer
    |                                        `- note: add 'if #available' version check
 35 |                             onClose()
 36 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:34:45: error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 32 |                             // アニメーションが終わるのを適当な時間待つ
 33 |                             // (animation から duration が取得できないので)
 34 |                             try? await Task.sleep(nanoseconds: UInt64(0.5 * 1_000_000_000))
    |                                             |- error: 'sleep(nanoseconds:)' is only available in macOS 10.15 or newer
    |                                             `- note: add 'if #available' version check
 35 |                             onClose()
 36 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:20:26: error: 'buildIf' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
 20 |             if isShowing {
    |                          |- error: 'buildIf' is only available in macOS 10.15 or newer
    |                          `- note: add 'if #available' version check
 21 |                 message.content
 22 |                     .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:38:13: error: 'buildIf' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 36 |                         }
 37 |                     }
 38 |             }
    |             |- error: 'buildIf' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 39 |         }
 40 |         .padding(layout.padding)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:18:16: 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
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
    |                |- 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
 19 |             Spacer()
 20 |             if isShowing {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:18: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
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         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
 19 |             Spacer()
 20 |             if isShowing {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:40:10: error: 'padding' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 38 |             }
 39 |         }
 40 |         .padding(layout.padding)
    |          |- error: 'padding' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 41 |         .animation(message.config.animation, value: isShowing)
 42 |         .transition(message.config.transition)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:41:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 39 |         }
 40 |         .padding(layout.padding)
 41 |         .animation(message.config.animation, value: isShowing)
    |          |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 42 |         .transition(message.config.transition)
 43 |         .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:42:10: error: 'transition' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 40 |         .padding(layout.padding)
 41 |         .animation(message.config.animation, value: isShowing)
 42 |         .transition(message.config.transition)
    |          |- error: 'transition' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 43 |         .onAppear {
 44 |             isShowing = true
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:43:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 41 |         .animation(message.config.animation, value: isShowing)
 42 |         .transition(message.config.transition)
 43 |         .onAppear {
    |          |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 44 |             isShowing = true
 45 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:44:13: error: setter for 'isShowing' is only available in macOS 10.15 or newer
  1 | import SwiftUI
  2 |
  3 | public struct Toast: View {
    |               `- note: add @available attribute to enclosing struct
  4 |     private let message: Message
  5 |     private let layout: Layout
    :
 15 |     }
 16 |
 17 |     public var body: some View {
    |                `- note: add @available attribute to enclosing property
 18 |         VStack {
 19 |             Spacer()
    :
 42 |         .transition(message.config.transition)
 43 |         .onAppear {
 44 |             isShowing = true
    |             |- error: setter for 'isShowing' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 45 |         }
 46 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:87:30: error: 'AnyView' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
 87 |                     content: AnyView(
    |                              |- error: 'AnyView' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 88 |                         Text("Hello")
 89 |                             .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:88:25: error: 'Text' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
 87 |                     content: AnyView(
 88 |                         Text("Hello")
    |                         |- error: 'Text' is only available in macOS 10.15 or newer
    |                         `- note: add 'if #available' version check
 89 |                             .padding(16)
 90 |                             .foregroundColor(.white)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:89:30: error: 'padding' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
 87 |                     content: AnyView(
 88 |                         Text("Hello")
 89 |                             .padding(16)
    |                              |- error: 'padding' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 90 |                             .foregroundColor(.white)
 91 |                             .background(Color.gray)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:90:30: error: 'foregroundColor' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
    :
 88 |                         Text("Hello")
 89 |                             .padding(16)
 90 |                             .foregroundColor(.white)
    |                              |- error: 'foregroundColor' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 91 |                             .background(Color.gray)
 92 |                             .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:90:47: error: 'white' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
    :
 88 |                         Text("Hello")
 89 |                             .padding(16)
 90 |                             .foregroundColor(.white)
    |                                               |- error: 'white' is only available in macOS 10.15 or newer
    |                                               `- note: add 'if #available' version check
 91 |                             .background(Color.gray)
 92 |                             .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:91:30: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
    :
 89 |                             .padding(16)
 90 |                             .foregroundColor(.white)
 91 |                             .background(Color.gray)
    |                              |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
    |                              `- note: add 'if #available' version check
 92 |                             .cornerRadius(8)
 93 |                     ),
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:91:41: error: 'Color' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
    :
 89 |                             .padding(16)
 90 |                             .foregroundColor(.white)
 91 |                             .background(Color.gray)
    |                                         |- error: 'Color' is only available in macOS 10.15 or newer
    |                                         `- note: add 'if #available' version check
 92 |                             .cornerRadius(8)
 93 |                     ),
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:91:47: error: 'gray' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
    :
 89 |                             .padding(16)
 90 |                             .foregroundColor(.white)
 91 |                             .background(Color.gray)
    |                                               |- error: 'gray' is only available in macOS 10.15 or newer
    |                                               `- note: add 'if #available' version check
 92 |                             .cornerRadius(8)
 93 |                     ),
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:92:30: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
    :
 90 |                             .foregroundColor(.white)
 91 |                             .background(Color.gray)
 92 |                             .cornerRadius(8)
    |                              |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
    |                              `- note: add 'if #available' version check
 93 |                     ),
 94 |                     config: .init(
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:96:38: error: 'opacity' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
    :
 94 |                     config: .init(
 95 |                         duration: 9999,
 96 |                         transition: .opacity,
    |                                      |- error: 'opacity' is only available in macOS 10.15 or newer
    |                                      `- note: add 'if #available' version check
 97 |                         animation: .linear
 98 |                     )
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/Toast.swift:97:37: error: 'linear' is only available in macOS 10.15 or newer
 81 |
 82 | #if DEBUG
 83 |     struct Toast_Previews: PreviewProvider {
    |            `- note: add @available attribute to enclosing struct
 84 |         static var previews: some View {
    |                    `- note: add @available attribute to enclosing static property
 85 |             Toast(
 86 |                 message: .init(
    :
 95 |                         duration: 9999,
 96 |                         transition: .opacity,
 97 |                         animation: .linear
    |                                     |- error: 'linear' is only available in macOS 10.15 or newer
    |                                     `- note: add 'if #available' version check
 98 |                     )
 99 |                 ),
[8/10] Compiling Toaster InfoToast.swift
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:42:35: error: 'View' is only available in macOS 10.15 or newer
39 |
40 | #if DEBUG
41 |     struct InfoToast_Previews: PreviewProvider {
   |            `- note: add @available attribute to enclosing struct
42 |         static var previews: some View {
   |                    |              `- error: 'View' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing static property
43 |             InfoToast(text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:7:9: error: 'HStack' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
   |         |- error: 'HStack' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
 8 |             Image(systemName: "info.circle")
 9 |                 .font(.system(size: 26))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:8:13: error: 'Image' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   |             |- error: 'Image' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.gray)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:8:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   |             |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
   |             `- note: add 'if #available' version check
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.gray)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:9:18: error: 'font' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
 9 |                 .font(.system(size: 26))
   |                  |- error: 'font' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
10 |                 .foregroundColor(.gray)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:9:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
 9 |                 .font(.system(size: 26))
   |                        |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
   |                        `- note: add 'if #available' version check
10 |                 .foregroundColor(.gray)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:10:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.gray)
   |                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
11 |
12 |             Text(text)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:10:35: error: 'gray' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.gray)
   |                                   |- error: 'gray' is only available in macOS 10.15 or newer
   |                                   `- note: add 'if #available' version check
11 |
12 |             Text(text)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:12:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
10 |                 .foregroundColor(.gray)
11 |
12 |             Text(text)
   |             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |             `- note: add 'if #available' version check
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:12:13: error: 'Text' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
10 |                 .foregroundColor(.gray)
11 |
12 |             Text(text)
   |             |- error: 'Text' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:13:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
11 |
12 |             Text(text)
13 |                 .foregroundColor(.black)
   |                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
14 |                 .font(.system(size: 14))
15 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:13:35: error: 'black' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
11 |
12 |             Text(text)
13 |                 .foregroundColor(.black)
   |                                   |- error: 'black' is only available in macOS 10.15 or newer
   |                                   `- note: add 'if #available' version check
14 |                 .font(.system(size: 14))
15 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:14:18: error: 'font' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
12 |             Text(text)
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
   |                  |- error: 'font' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
15 |         }
16 |         .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:14:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
12 |             Text(text)
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
   |                        |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
   |                        `- note: add 'if #available' version check
15 |         }
16 |         .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:7:29: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
   |                             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |                             `- note: add 'if #available' version check
 8 |             Image(systemName: "info.circle")
 9 |                 .font(.system(size: 26))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:16:10: error: 'padding' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
14 |                 .font(.system(size: 14))
15 |         }
16 |         .padding(16)
   |          |- error: 'padding' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
17 |         .background(Color.white)
18 |         .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:17:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
15 |         }
16 |         .padding(16)
17 |         .background(Color.white)
   |          |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
   |          `- note: add 'if #available' version check
18 |         .overlay(
19 |             Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:17:21: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
15 |         }
16 |         .padding(16)
17 |         .background(Color.white)
   |                     |- error: 'Color' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
18 |         .overlay(
19 |             Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:17:27: error: 'white' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
15 |         }
16 |         .padding(16)
17 |         .background(Color.white)
   |                           |- error: 'white' is only available in macOS 10.15 or newer
   |                           `- note: add 'if #available' version check
18 |         .overlay(
19 |             Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:18:10: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
16 |         .padding(16)
17 |         .background(Color.white)
18 |         .overlay(
   |          |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:19:13: error: 'Rectangle' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
17 |         .background(Color.white)
18 |         .overlay(
19 |             Rectangle()
   |             |- error: 'Rectangle' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
21 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:20:18: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
18 |         .overlay(
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
   |                  |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
   |                  `- note: add 'if #available' version check
21 |         )
22 |         .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:20:26: error: 'white' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
18 |         .overlay(
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
   |                          |- error: 'white' is only available in macOS 10.15 or newer
   |                          `- note: add 'if #available' version check
21 |         )
22 |         .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:20:32: error: 'opacity' is only available in macOS 12.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
18 |         .overlay(
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
   |                                |- error: 'opacity' is only available in macOS 12.0 or newer
   |                                `- note: add 'if #available' version check
21 |         )
22 |         .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:22:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
21 |         )
22 |         .cornerRadius(8)
   |          |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:23:10: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
21 |         )
22 |         .cornerRadius(8)
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
   |          |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:23:25: error: 'black' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
21 |         )
22 |         .cornerRadius(8)
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
   |                         |- error: 'black' is only available in macOS 10.15 or newer
   |                         `- note: add 'if #available' version check
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:23:31: error: 'opacity' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct InfoToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "info.circle")
   :
21 |         )
22 |         .cornerRadius(8)
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
   |                               |- error: 'opacity' is only available in macOS 10.15 or newer
   |                               `- note: add 'if #available' version check
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:30:22: error: 'AnyView' is only available in macOS 10.15 or newer
25 | }
26 |
27 | public extension Toast.Message {
   |        `- note: add @available attribute to enclosing extension
28 |     static func defaultInfo(text: String) -> Self {
   |                 `- note: add @available attribute to enclosing static method
29 |         Self(
30 |             content: AnyView(InfoToast(text: text)),
   |                      |- error: 'AnyView' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
31 |             config: .init(
32 |                 duration: 3,
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:33:30: error: 'opacity' is only available in macOS 10.15 or newer
25 | }
26 |
27 | public extension Toast.Message {
   |        `- note: add @available attribute to enclosing extension
28 |     static func defaultInfo(text: String) -> Self {
   |                 `- note: add @available attribute to enclosing static method
29 |         Self(
30 |             content: AnyView(InfoToast(text: text)),
31 |             config: .init(
32 |                 duration: 3,
33 |                 transition: .opacity,
   |                              |- error: 'opacity' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
34 |                 animation: .easeInOut(duration: 0.5)
35 |             )
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/InfoToast.swift:34:29: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
25 | }
26 |
27 | public extension Toast.Message {
   |        `- note: add @available attribute to enclosing extension
28 |     static func defaultInfo(text: String) -> Self {
   |                 `- note: add @available attribute to enclosing static method
29 |         Self(
30 |             content: AnyView(InfoToast(text: text)),
   :
32 |                 duration: 3,
33 |                 transition: .opacity,
34 |                 animation: .easeInOut(duration: 0.5)
   |                             |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
   |                             `- note: add 'if #available' version check
35 |             )
36 |         )
[9/10] Compiling Toaster SuccessToast.swift
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:6:20: error: 'View' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         |          `- error: 'View' is only available in macOS 10.15 or newer
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:42:35: error: 'View' is only available in macOS 10.15 or newer
39 |
40 | #if DEBUG
41 |     struct SuccessToast_Previews: PreviewProvider {
   |            `- note: add @available attribute to enclosing struct
42 |         static var previews: some View {
   |                    |              `- error: 'View' is only available in macOS 10.15 or newer
   |                    `- note: add @available attribute to enclosing static property
43 |             SuccessToast(text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.")
44 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:7:9: error: 'HStack' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
   |         |- error: 'HStack' is only available in macOS 10.15 or newer
   |         `- note: add 'if #available' version check
 8 |             Image(systemName: "checkmark.circle")
 9 |                 .font(.system(size: 26))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:8:13: error: 'Image' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   |             |- error: 'Image' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.green)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:8:13: error: 'init(systemName:)' is only available in macOS 11.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   |             |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
   |             `- note: add 'if #available' version check
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.green)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:9:18: error: 'font' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
 9 |                 .font(.system(size: 26))
   |                  |- error: 'font' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
10 |                 .foregroundColor(.green)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:9:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
 9 |                 .font(.system(size: 26))
   |                        |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
   |                        `- note: add 'if #available' version check
10 |                 .foregroundColor(.green)
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:10:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.green)
   |                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
11 |
12 |             Text(text)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:10:35: error: 'green' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
 9 |                 .font(.system(size: 26))
10 |                 .foregroundColor(.green)
   |                                   |- error: 'green' is only available in macOS 10.15 or newer
   |                                   `- note: add 'if #available' version check
11 |
12 |             Text(text)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:12:13: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
10 |                 .foregroundColor(.green)
11 |
12 |             Text(text)
   |             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |             `- note: add 'if #available' version check
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:12:13: error: 'Text' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
10 |                 .foregroundColor(.green)
11 |
12 |             Text(text)
   |             |- error: 'Text' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:13:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
11 |
12 |             Text(text)
13 |                 .foregroundColor(.black)
   |                  |- error: 'foregroundColor' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
14 |                 .font(.system(size: 14))
15 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:13:35: error: 'black' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
11 |
12 |             Text(text)
13 |                 .foregroundColor(.black)
   |                                   |- error: 'black' is only available in macOS 10.15 or newer
   |                                   `- note: add 'if #available' version check
14 |                 .font(.system(size: 14))
15 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:14:18: error: 'font' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
12 |             Text(text)
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
   |                  |- error: 'font' is only available in macOS 10.15 or newer
   |                  `- note: add 'if #available' version check
15 |         }
16 |         .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:14:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
12 |             Text(text)
13 |                 .foregroundColor(.black)
14 |                 .font(.system(size: 14))
   |                        |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
   |                        `- note: add 'if #available' version check
15 |         }
16 |         .padding(16)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:7:29: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
   |                             |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
   |                             `- note: add 'if #available' version check
 8 |             Image(systemName: "checkmark.circle")
 9 |                 .font(.system(size: 26))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:16:10: error: 'padding' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
14 |                 .font(.system(size: 14))
15 |         }
16 |         .padding(16)
   |          |- error: 'padding' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
17 |         .background(Color.white)
18 |         .overlay(
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:17:10: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
15 |         }
16 |         .padding(16)
17 |         .background(Color.white)
   |          |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
   |          `- note: add 'if #available' version check
18 |         .overlay(
19 |             Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:17:21: error: 'Color' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
15 |         }
16 |         .padding(16)
17 |         .background(Color.white)
   |                     |- error: 'Color' is only available in macOS 10.15 or newer
   |                     `- note: add 'if #available' version check
18 |         .overlay(
19 |             Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:17:27: error: 'white' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
15 |         }
16 |         .padding(16)
17 |         .background(Color.white)
   |                           |- error: 'white' is only available in macOS 10.15 or newer
   |                           `- note: add 'if #available' version check
18 |         .overlay(
19 |             Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:18:10: error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
16 |         .padding(16)
17 |         .background(Color.white)
18 |         .overlay(
   |          |- error: 'overlay(_:alignment:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:19:13: error: 'Rectangle' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
17 |         .background(Color.white)
18 |         .overlay(
19 |             Rectangle()
   |             |- error: 'Rectangle' is only available in macOS 10.15 or newer
   |             `- note: add 'if #available' version check
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
21 |         )
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:20:18: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
18 |         .overlay(
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
   |                  |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
   |                  `- note: add 'if #available' version check
21 |         )
22 |         .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:20:26: error: 'white' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
18 |         .overlay(
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
   |                          |- error: 'white' is only available in macOS 10.15 or newer
   |                          `- note: add 'if #available' version check
21 |         )
22 |         .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:20:32: error: 'opacity' is only available in macOS 12.0 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
18 |         .overlay(
19 |             Rectangle()
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
   |                                |- error: 'opacity' is only available in macOS 12.0 or newer
   |                                `- note: add 'if #available' version check
21 |         )
22 |         .cornerRadius(8)
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:22:10: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
20 |                 .stroke(.white.opacity(0.8), lineWidth: 1)
21 |         )
22 |         .cornerRadius(8)
   |          |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
24 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:23:10: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
21 |         )
22 |         .cornerRadius(8)
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
   |          |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
   |          `- note: add 'if #available' version check
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:23:25: error: 'black' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
21 |         )
22 |         .cornerRadius(8)
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
   |                         |- error: 'black' is only available in macOS 10.15 or newer
   |                         `- note: add 'if #available' version check
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:23:31: error: 'opacity' is only available in macOS 10.15 or newer
 1 | import SwiftUI
 2 |
 3 | private struct SuccessToast: View {
   |                `- note: add @available attribute to enclosing struct
 4 |     let text: String
 5 |
 6 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
 7 |         HStack(spacing: 16) {
 8 |             Image(systemName: "checkmark.circle")
   :
21 |         )
22 |         .cornerRadius(8)
23 |         .shadow(color: .black.opacity(0.05), radius: 16, x: 0, y: 8)
   |                               |- error: 'opacity' is only available in macOS 10.15 or newer
   |                               `- note: add 'if #available' version check
24 |     }
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:30:22: error: 'AnyView' is only available in macOS 10.15 or newer
25 | }
26 |
27 | public extension Toast.Message {
   |        `- note: add @available attribute to enclosing extension
28 |     static func defaultSuccess(text: String) -> Self {
   |                 `- note: add @available attribute to enclosing static method
29 |         Self(
30 |             content: AnyView(SuccessToast(text: text)),
   |                      |- error: 'AnyView' is only available in macOS 10.15 or newer
   |                      `- note: add 'if #available' version check
31 |             config: .init(
32 |                 duration: 3,
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:33:30: error: 'opacity' is only available in macOS 10.15 or newer
25 | }
26 |
27 | public extension Toast.Message {
   |        `- note: add @available attribute to enclosing extension
28 |     static func defaultSuccess(text: String) -> Self {
   |                 `- note: add @available attribute to enclosing static method
29 |         Self(
30 |             content: AnyView(SuccessToast(text: text)),
31 |             config: .init(
32 |                 duration: 3,
33 |                 transition: .opacity,
   |                              |- error: 'opacity' is only available in macOS 10.15 or newer
   |                              `- note: add 'if #available' version check
34 |                 animation: .easeInOut(duration: 0.5)
35 |             )
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/SuccessToast.swift:34:29: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
25 | }
26 |
27 | public extension Toast.Message {
   |        `- note: add @available attribute to enclosing extension
28 |     static func defaultSuccess(text: String) -> Self {
   |                 `- note: add @available attribute to enclosing static method
29 |         Self(
30 |             content: AnyView(SuccessToast(text: text)),
   :
32 |                 duration: 3,
33 |                 transition: .opacity,
34 |                 animation: .easeInOut(duration: 0.5)
   |                             |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
   |                             `- note: add 'if #available' version check
35 |             )
36 |         )
[10/10] Compiling Toaster View+Toast.swift
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/View+Toast.swift:4:73: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
  |        `- note: add @available attribute to enclosing extension
4 |     func toast(_ messages: ToastMessages, layout: Toast.Layout) -> some View {
  |          |                                                              `- error: 'View' is only available in macOS 10.15 or newer
  |          `- note: add @available attribute to enclosing instance method
5 |         modifier(ToastModifier(messages: messages, layout: layout))
6 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/View+Toast.swift:3:18: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
  |        |         `- error: 'View' is only available in macOS 10.15 or newer
  |        `- note: add @available attribute to enclosing extension
4 |     func toast(_ messages: ToastMessages, layout: Toast.Layout) -> some View {
5 |         modifier(ToastModifier(messages: messages, layout: layout))
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/View+Toast.swift:5:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | public extension View {
  |        `- note: add @available attribute to enclosing extension
4 |     func toast(_ messages: ToastMessages, layout: Toast.Layout) -> some View {
  |          `- note: add @available attribute to enclosing instance method
5 |         modifier(ToastModifier(messages: messages, layout: layout))
  |         |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
  |         `- note: add 'if #available' version check
6 |     }
7 | }
/Users/admin/builder/spi-builder-workspace/Sources/Toaster/View+Toast.swift:5:9: error: 'modifier' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public extension View {
  |        `- note: add @available attribute to enclosing extension
4 |     func toast(_ messages: ToastMessages, layout: Toast.Layout) -> some View {
  |          `- note: add @available attribute to enclosing instance method
5 |         modifier(ToastModifier(messages: messages, layout: layout))
  |         |- error: 'modifier' is only available in macOS 10.15 or newer
  |         `- note: add 'if #available' version check
6 |     }
7 | }
BUILD FAILURE 6.2 macosSpm