Build Information
Failed to build SwiftToasts, reference main (28fd2a), with Swift 6.3 for macOS (SPM) on 15 Apr 2026 13:40:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/c2p-cmd/SwiftToasts.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/c2p-cmd/SwiftToasts
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 28fd2a1 Create LICENSE
Cloned https://github.com/c2p-cmd/SwiftToasts.git
Revision (git rev-parse @):
28fd2a12a2ada39a6f09bd9e9db58a90b978780c
SUCCESS checkout https://github.com/c2p-cmd/SwiftToasts.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "swifttoasts",
"name": "SwiftToasts",
"url": "https://github.com/c2p-cmd/SwiftToasts.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftToasts",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
Fetching https://github.com/c2p-cmd/SwiftToasts.git
[1/26] Fetching swifttoasts
Fetched https://github.com/c2p-cmd/SwiftToasts.git from cache (0.56s)
Creating working copy for https://github.com/c2p-cmd/SwiftToasts.git
Working copy of https://github.com/c2p-cmd/SwiftToasts.git resolved at main (28fd2a1)
warning: '.resolve-product-dependencies': dependency 'swifttoasts' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/c2p-cmd/SwiftToasts.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--6988338F2F200930.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module SwiftToasts
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:11:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
| `- error: 'State' is only available in macOS 10.15 or newer
12 |
13 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:33:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
31 | }
32 |
33 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
34 | DemoView()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:19:18: error: 'AnyView' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
17 |
18 | /// The view content of the toast
19 | var content: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
20 |
21 | /// Horizontal offset for swipe interactions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:29:26: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
27 | /// Creates a custom toast with dynamic content
28 | /// - Parameter content: A view builder closure that generates the toast's content, receiving the toast's unique ID
29 | public init<Content: View>(@ViewBuilder content: @escaping (UUID) -> Content) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
30 | self.content = AnyView(content(id))
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:29:33: error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
27 | /// Creates a custom toast with dynamic content
28 | /// - Parameter content: A view builder closure that generates the toast's content, receiving the toast's unique ID
29 | public init<Content: View>(@ViewBuilder content: @escaping (UUID) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
30 | self.content = AnyView(content(id))
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:40:21: error: 'AttributedString' is only available in macOS 12 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
| `- error: 'AttributedString' is only available in macOS 12 or newer
41 | systemImage: String
42 | ) -> Toast {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:78:38: error: 'Binding' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
76 | /// - Returns: A view with toast notifications
77 | @ViewBuilder
78 | func interactiveToasts(_ toasts: Binding<Toasts>) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
79 | self.frame(maxWidth: .infinity, maxHeight: .infinity)
80 | .overlay(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:78:63: error: 'View' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
76 | /// - Returns: A view with toast notifications
77 | @ViewBuilder
78 | func interactiveToasts(_ toasts: Binding<Toasts>) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
79 | self.frame(maxWidth: .infinity, maxHeight: .infinity)
80 | .overlay(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:77:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
76 | /// - Returns: A view with toast notifications
77 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
78 | func interactiveToasts(_ toasts: Binding<Toasts>) -> some View {
| `- note: add '@available' attribute to enclosing instance method
79 | self.frame(maxWidth: .infinity, maxHeight: .infinity)
80 | .overlay(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:73:18: error: 'View' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:89:6: error: 'Binding' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
| `- error: 'Binding' is only available in macOS 10.15 or newer
90 |
91 | /// State to track whether toasts are expanded
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:92:6: error: 'State' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
90 |
91 | /// State to track whether toasts are expanded
92 | @State private var isExpanded: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
93 |
94 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:94:20: error: 'View' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:163:36: error: 'Binding' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:163:60: error: 'Gesture' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:184:25: error: 'AnyLayout' is only available in macOS 13.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
182 |
183 | /// Determines layout based on expanded state
184 | private var layout: AnyLayout {
| | `- error: 'AnyLayout' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing property
185 | isExpanded ? AnyLayout(VStackLayout(spacing: 10)) : AnyLayout(ZStackLayout())
186 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:212:18: error: 'Binding' is only available in macOS 10.15 or newer
210 |
211 | /// Extension to add deletion functionality to Toast collection
212 | public extension Binding<Toasts> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
213 | /// Removes a toast with the specified ID
214 | /// - Parameter id: The unique identifier of the toast to remove
[4/5] Compiling SwiftToasts SwiftToasts.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:19:18: error: 'AnyView' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
17 |
18 | /// The view content of the toast
19 | var content: AnyView
| `- error: 'AnyView' is only available in macOS 10.15 or newer
20 |
21 | /// Horizontal offset for swipe interactions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:29:26: error: 'View' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
27 | /// Creates a custom toast with dynamic content
28 | /// - Parameter content: A view builder closure that generates the toast's content, receiving the toast's unique ID
29 | public init<Content: View>(@ViewBuilder content: @escaping (UUID) -> Content) {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
30 | self.content = AnyView(content(id))
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:29:33: error: 'ViewBuilder' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
27 | /// Creates a custom toast with dynamic content
28 | /// - Parameter content: A view builder closure that generates the toast's content, receiving the toast's unique ID
29 | public init<Content: View>(@ViewBuilder content: @escaping (UUID) -> Content) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
30 | self.content = AnyView(content(id))
31 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:40:21: error: 'AttributedString' is only available in macOS 12 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
| `- error: 'AttributedString' is only available in macOS 12 or newer
41 | systemImage: String
42 | ) -> Toast {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:78:38: error: 'Binding' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
76 | /// - Returns: A view with toast notifications
77 | @ViewBuilder
78 | func interactiveToasts(_ toasts: Binding<Toasts>) -> some View {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
79 | self.frame(maxWidth: .infinity, maxHeight: .infinity)
80 | .overlay(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:78:63: error: 'View' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
76 | /// - Returns: A view with toast notifications
77 | @ViewBuilder
78 | func interactiveToasts(_ toasts: Binding<Toasts>) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
79 | self.frame(maxWidth: .infinity, maxHeight: .infinity)
80 | .overlay(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:77:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
76 | /// - Returns: A view with toast notifications
77 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
78 | func interactiveToasts(_ toasts: Binding<Toasts>) -> some View {
| `- note: add '@available' attribute to enclosing instance method
79 | self.frame(maxWidth: .infinity, maxHeight: .infinity)
80 | .overlay(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:73:18: error: 'View' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:89:6: error: 'Binding' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
| `- error: 'Binding' is only available in macOS 10.15 or newer
90 |
91 | /// State to track whether toasts are expanded
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:92:6: error: 'State' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
90 |
91 | /// State to track whether toasts are expanded
92 | @State private var isExpanded: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
93 |
94 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:94:20: error: 'View' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:163:36: error: 'Binding' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:163:60: error: 'Gesture' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| | `- error: 'Gesture' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:184:25: error: 'AnyLayout' is only available in macOS 13.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
182 |
183 | /// Determines layout based on expanded state
184 | private var layout: AnyLayout {
| | `- error: 'AnyLayout' is only available in macOS 13.0 or newer
| `- note: add '@available' attribute to enclosing property
185 | isExpanded ? AnyLayout(VStackLayout(spacing: 10)) : AnyLayout(ZStackLayout())
186 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:212:18: error: 'Binding' is only available in macOS 10.15 or newer
210 |
211 | /// Extension to add deletion functionality to Toast collection
212 | public extension Binding<Toasts> {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
213 | /// Removes a toast with the specified ID
214 | /// - Parameter id: The unique identifier of the toast to remove
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:30:24: error: 'AnyView' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
27 | /// Creates a custom toast with dynamic content
28 | /// - Parameter content: A view builder closure that generates the toast's content, receiving the toast's unique ID
29 | public init<Content: View>(@ViewBuilder content: @escaping (UUID) -> Content) {
| `- note: add '@available' attribute to enclosing initializer
30 | self.content = AnyView(content(id))
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:44:13: error: 'HStack' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
42 | ) -> Toast {
43 | Toast { id in
44 | HStack(spacing: 12) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | // Display system icon
46 | Image(systemName: systemImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:46:17: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
44 | HStack(spacing: 12) {
45 | // Display system icon
46 | Image(systemName: systemImage)
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | // Display toast text
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:46:17: error: 'Image' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
44 | HStack(spacing: 12) {
45 | // Display system icon
46 | Image(systemName: systemImage)
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | // Display toast text
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:46:17: error: 'init(systemName:)' is only available in macOS 11.0 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
44 | HStack(spacing: 12) {
45 | // Display system icon
46 | Image(systemName: systemImage)
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
47 |
48 | // Display toast text
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:49:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
47 |
48 | // Display toast text
49 | Text(titleKey)
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .font(.callout)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:49:17: error: 'Text' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
47 |
48 | // Display toast text
49 | Text(titleKey)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .font(.callout)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:49:17: error: 'init(_:)' is only available in macOS 12.0 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
47 |
48 | // Display toast text
49 | Text(titleKey)
| |- error: 'init(_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
50 | .font(.callout)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:50:22: error: 'font' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
48 | // Display toast text
49 | Text(titleKey)
50 | .font(.callout)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | }
52 | .foregroundStyle(.primary)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:50:28: error: 'callout' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
48 | // Display toast text
49 | Text(titleKey)
50 | .font(.callout)
| |- error: 'callout' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | }
52 | .foregroundStyle(.primary)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:44:33: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
42 | ) -> Toast {
43 | Toast { id in
44 | HStack(spacing: 12) {
| |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | // Display system icon
46 | Image(systemName: systemImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:44:33: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
42 | ) -> Toast {
43 | Toast { id in
44 | HStack(spacing: 12) {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | // Display system icon
46 | Image(systemName: systemImage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:52:14: error: 'foregroundStyle' is only available in macOS 12.0 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
50 | .font(.callout)
51 | }
52 | .foregroundStyle(.primary)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
53 | .padding(.vertical, 12)
54 | .padding(.horizontal, 15)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:52:31: error: 'primary' is only available in macOS 12.0 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
50 | .font(.callout)
51 | }
52 | .foregroundStyle(.primary)
| |- error: 'primary' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
53 | .padding(.vertical, 12)
54 | .padding(.horizontal, 15)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:53:14: error: 'padding' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
51 | }
52 | .foregroundStyle(.primary)
53 | .padding(.vertical, 12)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .padding(.horizontal, 15)
55 | .background {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:54:14: error: 'padding' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
52 | .foregroundStyle(.primary)
53 | .padding(.vertical, 12)
54 | .padding(.horizontal, 15)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .background {
56 | // Create a capsule-shaped background with subtle shadow
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:55:14: error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
53 | .padding(.vertical, 12)
54 | .padding(.horizontal, 15)
55 | .background {
| |- error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
56 | // Create a capsule-shaped background with subtle shadow
57 | Capsule()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:57:17: error: 'Capsule' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
55 | .background {
56 | // Create a capsule-shaped background with subtle shadow
57 | Capsule()
| |- error: 'Capsule' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | .fill(.background)
59 | .shadow(color: .secondary, radius: 3, x: -1, y: -3)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:58:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
56 | // Create a capsule-shaped background with subtle shadow
57 | Capsule()
58 | .fill(.background)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
59 | .shadow(color: .secondary, radius: 3, x: -1, y: -3)
60 | .shadow(color: .secondary, radius: 2, x: 1, y: 3)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:58:28: error: 'background' is only available in macOS 11.0 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
56 | // Create a capsule-shaped background with subtle shadow
57 | Capsule()
58 | .fill(.background)
| |- error: 'background' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
59 | .shadow(color: .secondary, radius: 3, x: -1, y: -3)
60 | .shadow(color: .secondary, radius: 2, x: 1, y: 3)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:59:22: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
57 | Capsule()
58 | .fill(.background)
59 | .shadow(color: .secondary, radius: 3, x: -1, y: -3)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .shadow(color: .secondary, radius: 2, x: 1, y: 3)
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:59:37: error: 'secondary' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
57 | Capsule()
58 | .fill(.background)
59 | .shadow(color: .secondary, radius: 3, x: -1, y: -3)
| |- error: 'secondary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | .shadow(color: .secondary, radius: 2, x: 1, y: 3)
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:60:22: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
58 | .fill(.background)
59 | .shadow(color: .secondary, radius: 3, x: -1, y: -3)
60 | .shadow(color: .secondary, radius: 2, x: 1, y: 3)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:60:37: error: 'secondary' is only available in macOS 10.15 or newer
12 |
13 | /// Represents a single toast notification with customizable content and interactions
14 | public struct Toast: Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
15 | /// Unique identifier for each toast
16 | private(set) public var id = UUID()
:
37 | /// - Returns: A standardized toast notification
38 | @MainActor
39 | public static func simple(
| `- note: add '@available' attribute to enclosing static method
40 | _ titleKey: AttributedString,
41 | systemImage: String
:
58 | .fill(.background)
59 | .shadow(color: .secondary, radius: 3, x: -1, y: -3)
60 | .shadow(color: .secondary, radius: 2, x: 1, y: 3)
| |- error: 'secondary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:79:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
76 | /// - Returns: A view with toast notifications
77 | @ViewBuilder
78 | func interactiveToasts(_ toasts: Binding<Toasts>) -> some View {
| `- note: add '@available' attribute to enclosing instance method
79 | self.frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | .overlay(alignment: .bottom) {
81 | ToastView(toasts: toasts)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:80:14: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
76 | /// - Returns: A view with toast notifications
77 | @ViewBuilder
78 | func interactiveToasts(_ toasts: Binding<Toasts>) -> some View {
| `- note: add '@available' attribute to enclosing instance method
79 | self.frame(maxWidth: .infinity, maxHeight: .infinity)
80 | .overlay(alignment: .bottom) {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
81 | ToastView(toasts: toasts)
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:80:34: error: 'bottom' is only available in macOS 10.15 or newer
71 |
72 | /// Extension to add toast functionality to any SwiftUI View
73 | public extension View {
| `- note: add '@available' attribute to enclosing extension
74 | /// Adds an interactive toast notification overlay to the view
75 | /// - Parameter toasts: A binding to the collection of toasts to display
76 | /// - Returns: A view with toast notifications
77 | @ViewBuilder
78 | func interactiveToasts(_ toasts: Binding<Toasts>) -> some View {
| `- note: add '@available' attribute to enclosing instance method
79 | self.frame(maxWidth: .infinity, maxHeight: .infinity)
80 | .overlay(alignment: .bottom) {
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | ToastView(toasts: toasts)
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:112:24: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
110 |
111 | // iOS 17+ specific implementation with visual effects
112 | if #available(iOS 17, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS [#ResultBuilderMethods]
113 | t.content
114 | .offset(x: t.offsetX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:95:9: error: 'ZStack' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | // Overlay for expanded state
97 | if isExpanded {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:95:28: error: 'bottom' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | // Overlay for expanded state
97 | if isExpanded {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:95:36: error: conformance of 'Material' to 'ShapeStyle' is only available in macOS 12.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
| |- error: conformance of 'Material' to 'ShapeStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
96 | // Overlay for expanded state
97 | if isExpanded {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:98:17: error: 'Rectangle' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
97 | if isExpanded {
98 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | .fill(.ultraThinMaterial)
100 | .ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:99:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
97 | if isExpanded {
98 | Rectangle()
99 | .fill(.ultraThinMaterial)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
100 | .ignoresSafeArea()
101 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:99:28: error: 'ultraThinMaterial' is only available in macOS 12.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
97 | if isExpanded {
98 | Rectangle()
99 | .fill(.ultraThinMaterial)
| |- error: 'ultraThinMaterial' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
100 | .ignoresSafeArea()
101 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:100:22: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
98 | Rectangle()
99 | .fill(.ultraThinMaterial)
100 | .ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
101 | .onTapGesture {
102 | isExpanded = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:101:22: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
99 | .fill(.ultraThinMaterial)
100 | .ignoresSafeArea()
101 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | isExpanded = false
103 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:102:25: error: setter for 'isExpanded' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
100 | .ignoresSafeArea()
101 | .onTapGesture {
102 | isExpanded = false
| |- error: setter for 'isExpanded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
103 | }
104 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:97:27: error: 'buildIf' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
97 | if isExpanded {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | Rectangle()
99 | .fill(.ultraThinMaterial)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:104:13: error: 'buildIf' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
102 | isExpanded = false
103 | }
104 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
105 |
106 | // Dynamic layout based on expanded state
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:107:20: error: 'callAsFunction' is only available in macOS 13.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
105 |
106 | // Dynamic layout based on expanded state
107 | layout {
| |- error: 'callAsFunction' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
108 | ForEach($toasts) { $t in
109 | let index = toasts.count - 1 - (toasts.firstIndex(of: t) ?? 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:108:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
106 | // Dynamic layout based on expanded state
107 | layout {
108 | ForEach($toasts) { $t in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | let index = toasts.count - 1 - (toasts.firstIndex(of: t) ?? 0)
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:108:17: error: 'ForEach' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
106 | // Dynamic layout based on expanded state
107 | layout {
108 | ForEach($toasts) { $t in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | let index = toasts.count - 1 - (toasts.firstIndex(of: t) ?? 0)
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:108:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
106 | // Dynamic layout based on expanded state
107 | layout {
108 | ForEach($toasts) { $t in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | let index = toasts.count - 1 - (toasts.firstIndex(of: t) ?? 0)
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:114:30: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
112 | if #available(iOS 17, *) {
113 | t.content
114 | .offset(x: t.offsetX)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | .gesture(swipeGesture($t))
116 | .visualEffect { [isExpanded] content, proxy in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:115:30: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
113 | t.content
114 | .offset(x: t.offsetX)
115 | .gesture(swipeGesture($t))
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | .visualEffect { [isExpanded] content, proxy in
117 | // Scale and offset effect for stacked toasts
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:116:30: error: 'visualEffect' is only available in macOS 14.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
114 | .offset(x: t.offsetX)
115 | .gesture(swipeGesture($t))
116 | .visualEffect { [isExpanded] content, proxy in
| |- error: 'visualEffect' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
117 | // Scale and offset effect for stacked toasts
118 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:119:38: error: 'scaleEffect(_:anchor:)' is only available in macOS 14.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
117 | // Scale and offset effect for stacked toasts
118 | content
119 | .scaleEffect(isExpanded ? 1 : scale(ofIndex: index), anchor: .bottom)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
120 | .offset(y: isExpanded ? 0 : offsetY(ofIndex: index))
121 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:120:38: error: 'offset(x:y:)' is only available in macOS 14.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
118 | content
119 | .scaleEffect(isExpanded ? 1 : scale(ofIndex: index), anchor: .bottom)
120 | .offset(y: isExpanded ? 0 : offsetY(ofIndex: index))
| |- error: 'offset(x:y:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
121 | }
122 | .zIndex(t.isDeleting ? 1000 : 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:122:30: error: 'zIndex' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
120 | .offset(y: isExpanded ? 0 : offsetY(ofIndex: index))
121 | }
122 | .zIndex(t.isDeleting ? 1000 : 0)
| |- error: 'zIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | .frame(maxWidth: .infinity)
124 | .animation(.smooth, value: t.offsetX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:123:30: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
121 | }
122 | .zIndex(t.isDeleting ? 1000 : 0)
123 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
124 | .animation(.smooth, value: t.offsetX)
125 | .transition(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:124:30: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
122 | .zIndex(t.isDeleting ? 1000 : 0)
123 | .frame(maxWidth: .infinity)
124 | .animation(.smooth, value: t.offsetX)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | .transition(
126 | .asymmetric(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:124:41: error: 'smooth' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
122 | .zIndex(t.isDeleting ? 1000 : 0)
123 | .frame(maxWidth: .infinity)
124 | .animation(.smooth, value: t.offsetX)
| |- error: 'smooth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | .transition(
126 | .asymmetric(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:125:30: error: 'transition' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
123 | .frame(maxWidth: .infinity)
124 | .animation(.smooth, value: t.offsetX)
125 | .transition(
| |- error: 'transition' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | .asymmetric(
127 | insertion: .offset(y: 100),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:126:34: error: 'asymmetric(insertion:removal:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
124 | .animation(.smooth, value: t.offsetX)
125 | .transition(
126 | .asymmetric(
| |- error: 'asymmetric(insertion:removal:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | insertion: .offset(y: 100),
128 | removal: .move(edge: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:127:49: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
125 | .transition(
126 | .asymmetric(
127 | insertion: .offset(y: 100),
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 | removal: .move(edge: .leading)
129 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:128:47: error: 'move(edge:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
126 | .asymmetric(
127 | insertion: .offset(y: 100),
128 | removal: .move(edge: .leading)
| |- error: 'move(edge:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
129 | )
130 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:112:46: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
110 |
111 | // iOS 17+ specific implementation with visual effects
112 | if #available(iOS 17, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
113 | t.content
114 | .offset(x: t.offsetX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:112:46: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
110 |
111 | // iOS 17+ specific implementation with visual effects
112 | if #available(iOS 17, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
113 | t.content
114 | .offset(x: t.offsetX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:131:28: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
129 | )
130 | )
131 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
132 | // Fallback implementation for pre-iOS 17
133 | t.content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:108:34: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
106 | // Dynamic layout based on expanded state
107 | layout {
108 | ForEach($toasts) { $t in
| |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | let index = toasts.count - 1 - (toasts.firstIndex(of: t) ?? 0)
110 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:107:20: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
105 |
106 | // Dynamic layout based on expanded state
107 | layout {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
108 | ForEach($toasts) { $t in
109 | let index = toasts.count - 1 - (toasts.firstIndex(of: t) ?? 0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:148:14: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
146 | }
147 | }
148 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | // Toggle expanded state on tap
150 | isExpanded.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:150:17: error: cannot pass as inout because setter for 'isExpanded' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
148 | .onTapGesture {
149 | // Toggle expanded state on tap
150 | isExpanded.toggle()
| |- error: cannot pass as inout because setter for 'isExpanded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | }
152 | .padding(.bottom, 15)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:152:14: error: 'padding' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
150 | isExpanded.toggle()
151 | }
152 | .padding(.bottom, 15)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
153 | }
154 | .animation(.bouncy, value: isExpanded)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:95:36: error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
| |- error: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
96 | // Overlay for expanded state
97 | if isExpanded {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:154:10: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
152 | .padding(.bottom, 15)
153 | }
154 | .animation(.bouncy, value: isExpanded)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | .onChange(of: toasts.isEmpty) { newValue in
156 | // Collapse when no toasts remain
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:154:21: error: 'bouncy' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
152 | .padding(.bottom, 15)
153 | }
154 | .animation(.bouncy, value: isExpanded)
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | .onChange(of: toasts.isEmpty) { newValue in
156 | // Collapse when no toasts remain
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:155:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
153 | }
154 | .animation(.bouncy, value: isExpanded)
155 | .onChange(of: toasts.isEmpty) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
156 | // Collapse when no toasts remain
157 | if newValue {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:158:17: error: setter for 'isExpanded' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
92 | @State private var isExpanded: Bool = false
93 |
94 | var body: some View {
| `- note: add '@available' attribute to enclosing property
95 | ZStack(alignment: .bottom) {
96 | // Overlay for expanded state
:
156 | // Collapse when no toasts remain
157 | if newValue {
158 | isExpanded = false
| |- error: setter for 'isExpanded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
159 | }
160 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:170:14: error: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
:
168 | t.wrappedValue.offsetX = xOffset
169 | }
170 | .onEnded { value in
| |- error: conformance of '_EndedGesture<Content>' to 'Gesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
171 | let xOffset = value.translation.width + (value.velocity.width / 2)
172 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:165:9: error: 'DragGesture' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | .onChanged { value in
167 | let xOffset = value.translation.width < 0 ? value.translation.width : 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:165:9: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
166 | .onChanged { value in
167 | let xOffset = value.translation.width < 0 ? value.translation.width : 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:166:14: error: 'onChanged' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
166 | .onChanged { value in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | let xOffset = value.translation.width < 0 ? value.translation.width : 0
168 | t.wrappedValue.offsetX = xOffset
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:170:14: error: 'onEnded' is only available in macOS 10.15 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
:
168 | t.wrappedValue.offsetX = xOffset
169 | }
170 | .onEnded { value in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
171 | let xOffset = value.translation.width + (value.velocity.width / 2)
172 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:175:42: error: 'id' is only available in macOS 12.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
161 | }
162 |
163 | private func swipeGesture(_ t: Binding<Toast>) -> some Gesture {
| `- note: add '@available' attribute to enclosing instance method
164 | // Swipe-to-dismiss gesture
165 | DragGesture()
:
173 | if -xOffset > 200 {
174 | // Remove toast if swiped far enough
175 | $toasts.delete(id: t.id)
| |- error: 'id' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
176 | } else {
177 | // Reset position if not swiped far enough
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:185:22: error: 'AnyLayout' is only available in macOS 13.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
182 |
183 | /// Determines layout based on expanded state
184 | private var layout: AnyLayout {
| `- note: add '@available' attribute to enclosing property
185 | isExpanded ? AnyLayout(VStackLayout(spacing: 10)) : AnyLayout(ZStackLayout())
| |- error: 'AnyLayout' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:185:32: error: 'VStackLayout' is only available in macOS 13.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
182 |
183 | /// Determines layout based on expanded state
184 | private var layout: AnyLayout {
| `- note: add '@available' attribute to enclosing property
185 | isExpanded ? AnyLayout(VStackLayout(spacing: 10)) : AnyLayout(ZStackLayout())
| |- error: 'VStackLayout' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:185:61: error: 'AnyLayout' is only available in macOS 13.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
182 |
183 | /// Determines layout based on expanded state
184 | private var layout: AnyLayout {
| `- note: add '@available' attribute to enclosing property
185 | isExpanded ? AnyLayout(VStackLayout(spacing: 10)) : AnyLayout(ZStackLayout())
| |- error: 'AnyLayout' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:185:71: error: 'ZStackLayout' is only available in macOS 13.0 or newer
85 |
86 | /// Internal view responsible for rendering and managing toast notifications
87 | fileprivate struct ToastView: View {
| `- note: add '@available' attribute to enclosing struct
88 | /// Binding to the collection of toasts
89 | @Binding var toasts: Toasts
:
182 |
183 | /// Determines layout based on expanded state
184 | private var layout: AnyLayout {
| `- note: add '@available' attribute to enclosing property
185 | isExpanded ? AnyLayout(VStackLayout(spacing: 10)) : AnyLayout(ZStackLayout())
| |- error: 'ZStackLayout' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:217:29: error: conformance of 'Binding<Value>' to 'Sequence' is only available in macOS 12.0 or newer
210 |
211 | /// Extension to add deletion functionality to Toast collection
212 | public extension Binding<Toasts> {
| `- note: add '@available' attribute to enclosing extension
213 | /// Removes a toast with the specified ID
214 | /// - Parameter id: The unique identifier of the toast to remove
215 | func delete(id: Toast.ID) {
| `- note: add '@available' attribute to enclosing instance method
216 | // Mark toast for deletion
217 | if let toast = self.first(where: { $0.id == id }) {
| |- error: conformance of 'Binding<Value>' to 'Sequence' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
218 | toast.wrappedValue.isDeleting = true
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:217:47: error: 'id' is only available in macOS 12.0 or newer
210 |
211 | /// Extension to add deletion functionality to Toast collection
212 | public extension Binding<Toasts> {
| `- note: add '@available' attribute to enclosing extension
213 | /// Removes a toast with the specified ID
214 | /// - Parameter id: The unique identifier of the toast to remove
215 | func delete(id: Toast.ID) {
| `- note: add '@available' attribute to enclosing instance method
216 | // Mark toast for deletion
217 | if let toast = self.first(where: { $0.id == id }) {
| |- error: 'id' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
218 | toast.wrappedValue.isDeleting = true
219 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:222:9: error: 'withAnimation' is only available in macOS 10.15 or newer
210 |
211 | /// Extension to add deletion functionality to Toast collection
212 | public extension Binding<Toasts> {
| `- note: add '@available' attribute to enclosing extension
213 | /// Removes a toast with the specified ID
214 | /// - Parameter id: The unique identifier of the toast to remove
215 | func delete(id: Toast.ID) {
| `- note: add '@available' attribute to enclosing instance method
216 | // Mark toast for deletion
217 | if let toast = self.first(where: { $0.id == id }) {
:
220 |
221 | // Animate toast removal
222 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | self.wrappedValue.removeAll(where: { $0.id == id })
224 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/SwiftToasts.swift:222:24: error: 'bouncy' is only available in macOS 10.15 or newer
210 |
211 | /// Extension to add deletion functionality to Toast collection
212 | public extension Binding<Toasts> {
| `- note: add '@available' attribute to enclosing extension
213 | /// Removes a toast with the specified ID
214 | /// - Parameter id: The unique identifier of the toast to remove
215 | func delete(id: Toast.ID) {
| `- note: add '@available' attribute to enclosing instance method
216 | // Mark toast for deletion
217 | if let toast = self.first(where: { $0.id == id }) {
:
220 |
221 | // Animate toast removal
222 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
223 | self.wrappedValue.removeAll(where: { $0.id == id })
224 | }
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[5/5] Compiling SwiftToasts Demo.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:11:6: error: 'State' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
| `- error: 'State' is only available in macOS 10.15 or newer
12 |
13 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:33:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
31 | }
32 |
33 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
34 | DemoView()
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:14:9: error: 'NavigationStack' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
| |- error: 'NavigationStack' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
15 | List {
16 | Text("Dummy Row View")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:14:25: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | List {
16 | Text("Dummy Row View")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:14:25: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | List {
16 | Text("Dummy Row View")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:14:25: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | List {
16 | Text("Dummy Row View")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:15:13: error: 'List' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
| |- error: 'List' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Text("Dummy Row View")
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:15:13: error: 'init(content:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
| |- error: 'init(content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Text("Dummy Row View")
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:16:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
16 | Text("Dummy Row View")
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | }
18 | .navigationTitle("Swift Toasts Demo")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:16:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
16 | Text("Dummy Row View")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | }
18 | .navigationTitle("Swift Toasts Demo")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:15:18: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | Text("Dummy Row View")
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:18:14: error: 'navigationTitle' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
16 | Text("Dummy Row View")
17 | }
18 | .navigationTitle("Swift Toasts Demo")
| |- error: 'navigationTitle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
19 | .toolbar {
20 | Button("Show") {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:18:30: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
16 | Text("Dummy Row View")
17 | }
18 | .navigationTitle("Swift Toasts Demo")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .toolbar {
20 | Button("Show") {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:19:14: error: 'toolbar(content:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
17 | }
18 | .navigationTitle("Swift Toasts Demo")
19 | .toolbar {
| |- error: 'toolbar(content:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | Button("Show") {
21 | withAnimation(.bouncy) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:19:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
17 | }
18 | .navigationTitle("Swift Toasts Demo")
19 | .toolbar {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Button("Show") {
21 | withAnimation(.bouncy) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:19:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
17 | }
18 | .navigationTitle("Swift Toasts Demo")
19 | .toolbar {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Button("Show") {
21 | withAnimation(.bouncy) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:20:17: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
18 | .navigationTitle("Swift Toasts Demo")
19 | .toolbar {
20 | Button("Show") {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | withAnimation(.bouncy) {
22 | let newToast = Toast.simple("Pick", systemImage: "pencil.circle")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:20:17: error: 'Button' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
18 | .navigationTitle("Swift Toasts Demo")
19 | .toolbar {
20 | Button("Show") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | withAnimation(.bouncy) {
22 | let newToast = Toast.simple("Pick", systemImage: "pencil.circle")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:20:17: error: 'init(_:action:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
18 | .navigationTitle("Swift Toasts Demo")
19 | .toolbar {
20 | Button("Show") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | withAnimation(.bouncy) {
22 | let newToast = Toast.simple("Pick", systemImage: "pencil.circle")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:20:24: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
18 | .navigationTitle("Swift Toasts Demo")
19 | .toolbar {
20 | Button("Show") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | withAnimation(.bouncy) {
22 | let newToast = Toast.simple("Pick", systemImage: "pencil.circle")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:21:21: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
19 | .toolbar {
20 | Button("Show") {
21 | withAnimation(.bouncy) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | let newToast = Toast.simple("Pick", systemImage: "pencil.circle")
23 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:21:36: error: 'bouncy' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
19 | .toolbar {
20 | Button("Show") {
21 | withAnimation(.bouncy) {
| |- error: 'bouncy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | let newToast = Toast.simple("Pick", systemImage: "pencil.circle")
23 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:22:53: error: 'AttributedString' is only available in macOS 12 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
20 | Button("Show") {
21 | withAnimation(.bouncy) {
22 | let newToast = Toast.simple("Pick", systemImage: "pencil.circle")
| |- error: 'AttributedString' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
23 |
24 | toasts.append(newToast)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:22:53: error: 'init(stringLiteral:)' is only available in macOS 12 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
20 | Button("Show") {
21 | withAnimation(.bouncy) {
22 | let newToast = Toast.simple("Pick", systemImage: "pencil.circle")
| |- error: 'init(stringLiteral:)' is only available in macOS 12 or newer
| `- note: add 'if #available' version check
23 |
24 | toasts.append(newToast)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:24:25: error: cannot pass as inout because setter for 'toasts' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
22 | let newToast = Toast.simple("Pick", systemImage: "pencil.circle")
23 |
24 | toasts.append(newToast)
| |- error: cannot pass as inout because setter for 'toasts' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToasts/Demo.swift:19:22: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct DemoView: View {
| `- note: add '@available' attribute to enclosing struct
11 | @State private var toasts = Toasts()
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | NavigationStack {
15 | List {
:
17 | }
18 | .navigationTitle("Swift Toasts Demo")
19 | .toolbar {
| |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | Button("Show") {
21 | withAnimation(.bouncy) {
BUILD FAILURE 6.3 macosSpm