Build Information
Failed to build SwiftToastAlert, reference 1.0.0 (918834
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 15:44:32 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EngOmarElsayed/SwiftToastAlert.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/EngOmarElsayed/SwiftToastAlert
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 918834a Update README.md
Cloned https://github.com/EngOmarElsayed/SwiftToastAlert.git
Revision (git rev-parse @):
918834ae654f9f988efac816d91b2f143514c614
SUCCESS checkout https://github.com/EngOmarElsayed/SwiftToastAlert.git at 1.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swifttoastalert",
"name": "SwiftToastAlert",
"url": "https://github.com/EngOmarElsayed/SwiftToastAlert.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftToastAlert",
"dependencies": [
]
}
]
}
Fetching https://github.com/EngOmarElsayed/SwiftToastAlert.git
[1/164] Fetching swifttoastalert
Fetched https://github.com/EngOmarElsayed/SwiftToastAlert.git from cache (0.75s)
Creating working copy for https://github.com/EngOmarElsayed/SwiftToastAlert.git
Working copy of https://github.com/EngOmarElsayed/SwiftToastAlert.git resolved at 1.0.0 (918834a)
warning: '.resolve-product-dependencies': dependency 'swifttoastalert' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/EngOmarElsayed/SwiftToastAlert.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling SwiftToastAlert InteractiveToastAlert.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:30:4: error: 'State' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
31 | private let disappearingYPosition: CGFloat = -200
32 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:32:29: error: cannot find 'UIScreen' in scope
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
32 | private let deviceWidth = UIScreen.main.bounds.size.width
| `- error: cannot find 'UIScreen' in scope
33 | private let alertHeight: CGFloat = 80
34 | private var width: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:38:4: error: 'Binding' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
36 | }
37 |
38 | @Binding private var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
39 | private let position: Alignment
40 | private let background: S
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:39:25: error: 'Alignment' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
37 |
38 | @Binding private var isPresented: Bool
39 | private let position: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
40 | private let background: S
41 | private let alertTextAppearance: AlertTextAppearance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:44:30: error: 'Binding' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
42 | private let alertIconAppearance: AlertIconAppearance
43 |
44 | internal init(isPresented: Binding<Bool>, position: Alignment, background: S, alertTextAppearance: AlertTextAppearance, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
45 | _isPresented = isPresented
46 | self.position = position
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:44:55: error: 'Alignment' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
42 | private let alertIconAppearance: AlertIconAppearance
43 |
44 | internal init(isPresented: Binding<Bool>, position: Alignment, background: S, alertTextAppearance: AlertTextAppearance, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
45 | _isPresented = isPresented
46 | self.position = position
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:52:46: error: 'View' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:29:66: error: 'ShapeStyle' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| | `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:104:27: error: 'ShapeStyle' is only available in macOS 10.15 or newer
83 | }
84 |
85 | public extension View {
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
:
96 | ///
97 | /// - Returns: The alert toast view on top of the view it is applied to.
98 | func interactiveToastAlert<S>(
| `- note: add @available attribute to enclosing instance method
99 | isPresented: Binding<Bool>,
100 | position: AlertPosition,
:
102 | alertTextAppearance: () -> AlertTextAppearance,
103 | alertIconAppearance: () -> AlertIconAppearance
104 | ) -> some View where S: ShapeStyle {
| `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
105 | self.modifier(
106 | InteractiveToastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:99:18: error: 'Binding' is only available in macOS 10.15 or newer
83 | }
84 |
85 | public extension View {
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
:
96 | ///
97 | /// - Returns: The alert toast view on top of the view it is applied to.
98 | func interactiveToastAlert<S>(
| `- note: add @available attribute to enclosing instance method
99 | isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
100 | position: AlertPosition,
101 | background: S,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:104:13: error: 'View' is only available in macOS 10.15 or newer
83 | }
84 |
85 | public extension View {
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
:
96 | ///
97 | /// - Returns: The alert toast view on top of the view it is applied to.
98 | func interactiveToastAlert<S>(
| `- note: add @available attribute to enclosing instance method
99 | isPresented: Binding<Bool>,
100 | position: AlertPosition,
:
102 | alertTextAppearance: () -> AlertTextAppearance,
103 | alertIconAppearance: () -> AlertIconAppearance
104 | ) -> some View where S: ShapeStyle {
| `- error: 'View' is only available in macOS 10.15 or newer
105 | self.modifier(
106 | InteractiveToastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:85:18: error: 'View' is only available in macOS 10.15 or newer
83 | }
84 |
85 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:53:5: error: 'ZStack' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | content
55 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:56:7: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
55 |
56 | RoundedRectangle(cornerRadius: 20)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .overlay(alignment: isTapped ? .leading: .center) {
58 | AlertDisplayView(isTapped: $isTapped, alertTextAppearance: alertTextAppearance, alertIconAppearance: alertIconAppearance)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:57:10: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
55 |
56 | RoundedRectangle(cornerRadius: 20)
57 | .overlay(alignment: isTapped ? .leading: .center) {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
58 | AlertDisplayView(isTapped: $isTapped, alertTextAppearance: alertTextAppearance, alertIconAppearance: alertIconAppearance)
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:57:41: error: 'leading' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
55 |
56 | RoundedRectangle(cornerRadius: 20)
57 | .overlay(alignment: isTapped ? .leading: .center) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | AlertDisplayView(isTapped: $isTapped, alertTextAppearance: alertTextAppearance, alertIconAppearance: alertIconAppearance)
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:57:51: error: 'center' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
55 |
56 | RoundedRectangle(cornerRadius: 20)
57 | .overlay(alignment: isTapped ? .leading: .center) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | AlertDisplayView(isTapped: $isTapped, alertTextAppearance: alertTextAppearance, alertIconAppearance: alertIconAppearance)
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:64:10: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
:
62 | .alertAnimation(isPresented: isPresented, isTapped: isTapped)
63 |
64 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | isTapped.toggle()
66 | if !isTapped {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:65:11: error: cannot pass as inout because setter for 'isTapped' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
:
63 |
64 | .onTapGesture {
65 | isTapped.toggle()
| |- error: cannot pass as inout because setter for 'isTapped' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | if !isTapped {
67 | DispatchQueue.main.asyncAfter(deadline: .now()+0.8) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:68:15: error: setter for 'isPresented' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
:
66 | if !isTapped {
67 | DispatchQueue.main.asyncAfter(deadline: .now()+0.8) {
68 | isPresented = false
| |- error: setter for 'isPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | }
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:72:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
:
70 | }
71 | }
72 | .onChange(of: isPresented) { value in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
73 | if value {
74 | DispatchQueue.main.asyncAfter(deadline: .now()+3.0) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:76:17: error: setter for 'isPresented' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
:
74 | DispatchQueue.main.asyncAfter(deadline: .now()+3.0) {
75 | if !isTapped {
76 | isPresented = false
| |- error: setter for 'isPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:105:10: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
83 | }
84 |
85 | public extension View {
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
:
96 | ///
97 | /// - Returns: The alert toast view on top of the view it is applied to.
98 | func interactiveToastAlert<S>(
| `- note: add @available attribute to enclosing instance method
99 | isPresented: Binding<Bool>,
100 | position: AlertPosition,
:
103 | alertIconAppearance: () -> AlertIconAppearance
104 | ) -> some View where S: ShapeStyle {
105 | self.modifier(
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
106 | InteractiveToastAlert(
107 | isPresented: isPresented,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:105:10: error: 'modifier' is only available in macOS 10.15 or newer
83 | }
84 |
85 | public extension View {
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
:
96 | ///
97 | /// - Returns: The alert toast view on top of the view it is applied to.
98 | func interactiveToastAlert<S>(
| `- note: add @available attribute to enclosing instance method
99 | isPresented: Binding<Bool>,
100 | position: AlertPosition,
:
103 | alertIconAppearance: () -> AlertIconAppearance
104 | ) -> some View where S: ShapeStyle {
105 | self.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
106 | InteractiveToastAlert(
107 | isPresented: isPresented,
[4/13] Compiling SwiftToastAlert AlertIconAppearance.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:31:21: error: 'Image' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
| `- error: 'Image' is only available in macOS 10.15 or newer
32 | /// This is the color of the icon in the alert, it is used for SF symbol only.
33 | public let color: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:33:21: error: 'Color' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
32 | /// This is the color of the icon in the alert, it is used for SF symbol only.
33 | public let color: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
34 | /// The font properties is used to customize the size and weight of the icon if it was SF symbol
35 | public let font: Font?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:35:20: error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
:
33 | public let color: Color?
34 | /// The font properties is used to customize the size and weight of the icon if it was SF symbol
35 | public let font: Font?
| `- error: 'Font' is only available in macOS 10.15 or newer
36 |
37 | /// if you are not using SF symbol, don't init the color or the font property.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:38:22: error: 'Image' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
:
36 |
37 | /// if you are not using SF symbol, don't init the color or the font property.
38 | public init(image: Image, color: Color? = nil, font: Font? = nil) {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.image = image
40 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:38:36: error: 'Color' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
:
36 |
37 | /// if you are not using SF symbol, don't init the color or the font property.
38 | public init(image: Image, color: Color? = nil, font: Font? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.image = image
40 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:38:56: error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
:
36 |
37 | /// if you are not using SF symbol, don't init the color or the font property.
38 | public init(image: Image, color: Color? = nil, font: Font? = nil) {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.image = image
40 | self.color = color
[5/13] Compiling SwiftToastAlert ExtensionForView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:29:121: error: 'ShapeStyle' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| | `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:29:65: error: 'Alignment' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:29:106: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:29:78: error: 'top' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| | `- error: 'top' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:36:42: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
34 | }
35 |
36 | func alertPosition(y: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
37 | self
38 | .padding(.horizontal)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:42:66: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
40 | }
41 |
42 | func alertAnimation(isPresented: Bool, isTapped: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | self
44 | .animation(.easeInOut(duration: 0.45), value: isPresented)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:48:50: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
46 | }
47 |
48 | func alertAnimation(isPresented: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | self
50 | .animation(.easeInOut(duration: 0.45), value: isPresented)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:28:20: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:31:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: position)
33 | .foregroundStyle(background)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:32:6: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
32 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: position)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .foregroundStyle(background)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:33:6: error: 'foregroundStyle' is only available in macOS 12.0 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
32 | .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: position)
33 | .foregroundStyle(background)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
34 | }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:38:6: error: 'padding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
34 | }
35 |
36 | func alertPosition(y: CGFloat) -> some View {
| `- note: add @available attribute to enclosing instance method
37 | self
38 | .padding(.horizontal)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | .offset(y: y)
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:39:6: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
34 | }
35 |
36 | func alertPosition(y: CGFloat) -> some View {
| `- note: add @available attribute to enclosing instance method
37 | self
38 | .padding(.horizontal)
39 | .offset(y: y)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:44:6: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
40 | }
41 |
42 | func alertAnimation(isPresented: Bool, isTapped: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
43 | self
44 | .animation(.easeInOut(duration: 0.45), value: isPresented)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .animation(.easeInOut(duration: 0.45), value: isTapped)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:44:17: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
40 | }
41 |
42 | func alertAnimation(isPresented: Bool, isTapped: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
43 | self
44 | .animation(.easeInOut(duration: 0.45), value: isPresented)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .animation(.easeInOut(duration: 0.45), value: isTapped)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:45:6: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
40 | }
41 |
42 | func alertAnimation(isPresented: Bool, isTapped: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
43 | self
44 | .animation(.easeInOut(duration: 0.45), value: isPresented)
45 | .animation(.easeInOut(duration: 0.45), value: isTapped)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:45:17: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
40 | }
41 |
42 | func alertAnimation(isPresented: Bool, isTapped: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
43 | self
44 | .animation(.easeInOut(duration: 0.45), value: isPresented)
45 | .animation(.easeInOut(duration: 0.45), value: isTapped)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | }
47 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:50:6: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
46 | }
47 |
48 | func alertAnimation(isPresented: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
49 | self
50 | .animation(.easeInOut(duration: 0.45), value: isPresented)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | }
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:50:17: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
46 | }
47 |
48 | func alertAnimation(isPresented: Bool) -> some View {
| `- note: add @available attribute to enclosing instance method
49 | self
50 | .animation(.easeInOut(duration: 0.45), value: isPresented)
| |- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | }
52 | }
[6/13] Compiling SwiftToastAlert SwiftToastAlert.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:29:41: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
| `- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | private let disappearingYPosition: CGFloat = -200
31 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:29:41: error: 'black' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
| `- error: 'black' is only available in macOS 10.15 or newer
30 | private let disappearingYPosition: CGFloat = -200
31 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:31:29: error: cannot find 'UIScreen' in scope
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
31 | private let deviceWidth = UIScreen.main.bounds.size.width
| `- error: cannot find 'UIScreen' in scope
32 |
33 | private let time = 3.0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:29:27: error: 'ShapeStyle' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
| `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
30 | private let disappearingYPosition: CGFloat = -200
31 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:35:4: error: 'State' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
33 | private let time = 3.0
34 | private let height: CGFloat = 80
35 | @State private var flag: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
36 | @State private var tapped: Bool = false
37 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:36:4: error: 'State' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
34 | private let height: CGFloat = 80
35 | @State private var flag: Bool = false
36 | @State private var tapped: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
37 |
38 | private var width: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:42:18: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:63:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
61 | }
62 |
63 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
64 | SwiftUIView()
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:43:5: error: 'ZStack' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | Color.red.ignoresSafeArea()
45 | Button("Hello, World 🌍") {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:43:12: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
44 | Color.red.ignoresSafeArea()
45 | Button("Hello, World 🌍") {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:44:7: error: 'Color' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | Button("Hello, World 🌍") {
46 | flag.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:44:13: error: 'red' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | Button("Hello, World 🌍") {
46 | flag.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:44:17: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
45 | Button("Hello, World 🌍") {
46 | flag.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:45:7: error: 'Button' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
45 | Button("Hello, World 🌍") {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | flag.toggle()
47 | }.foregroundStyle(.black)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:45:7: error: 'init(_:action:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
45 | Button("Hello, World 🌍") {
| |- error: 'init(_:action:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | flag.toggle()
47 | }.foregroundStyle(.black)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:45:14: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
45 | Button("Hello, World 🌍") {
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | flag.toggle()
47 | }.foregroundStyle(.black)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:46:9: error: cannot pass as inout because setter for 'flag' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
45 | Button("Hello, World 🌍") {
46 | flag.toggle()
| |- error: cannot pass as inout because setter for 'flag' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }.foregroundStyle(.black)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:47:9: error: 'foregroundStyle' is only available in macOS 12.0 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
45 | Button("Hello, World 🌍") {
46 | flag.toggle()
47 | }.foregroundStyle(.black)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
48 | }
49 | // .toastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:47:26: error: 'black' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
45 | Button("Hello, World 🌍") {
46 | flag.toggle()
47 | }.foregroundStyle(.black)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | // .toastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:55:8: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
:
53 | // AlertIconAppearance(image: Image(systemName: "checkmark"), color: .green, font: .system(size: 16, weight: .bold))
54 | // }
55 | .interactiveToastAlert(isPresented: $flag, position: .topTrailing, background: .black) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
56 | AlertTextAppearance(text: "Replace `var` with `let`", color: .white, font: .system(size: 16, weight: .bold))
57 | } alertIconAppearance: {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:55:87: error: 'black' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
:
53 | // AlertIconAppearance(image: Image(systemName: "checkmark"), color: .green, font: .system(size: 16, weight: .bold))
54 | // }
55 | .interactiveToastAlert(isPresented: $flag, position: .topTrailing, background: .black) {
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | AlertTextAppearance(text: "Replace `var` with `let`", color: .white, font: .system(size: 16, weight: .bold))
57 | } alertIconAppearance: {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:56:71: error: 'white' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
:
54 | // }
55 | .interactiveToastAlert(isPresented: $flag, position: .topTrailing, background: .black) {
56 | AlertTextAppearance(text: "Replace `var` with `let`", color: .white, font: .system(size: 16, weight: .bold))
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | } alertIconAppearance: {
58 | AlertIconAppearance(image: Image(systemName: "checkmark"), color: .green, font: .system(size: 16, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:56:85: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
:
54 | // }
55 | .interactiveToastAlert(isPresented: $flag, position: .topTrailing, background: .black) {
56 | AlertTextAppearance(text: "Replace `var` with `let`", color: .white, font: .system(size: 16, weight: .bold))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
57 | } alertIconAppearance: {
58 | AlertIconAppearance(image: Image(systemName: "checkmark"), color: .green, font: .system(size: 16, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:58:36: error: 'Image' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
:
56 | AlertTextAppearance(text: "Replace `var` with `let`", color: .white, font: .system(size: 16, weight: .bold))
57 | } alertIconAppearance: {
58 | AlertIconAppearance(image: Image(systemName: "checkmark"), color: .green, font: .system(size: 16, weight: .bold))
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:58:36: error: 'init(systemName:)' is only available in macOS 11.0 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
:
56 | AlertTextAppearance(text: "Replace `var` with `let`", color: .white, font: .system(size: 16, weight: .bold))
57 | } alertIconAppearance: {
58 | AlertIconAppearance(image: Image(systemName: "checkmark"), color: .green, font: .system(size: 16, weight: .bold))
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:58:76: error: 'green' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
:
56 | AlertTextAppearance(text: "Replace `var` with `let`", color: .white, font: .system(size: 16, weight: .bold))
57 | } alertIconAppearance: {
58 | AlertIconAppearance(image: Image(systemName: "checkmark"), color: .green, font: .system(size: 16, weight: .bold))
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:58:90: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
:
56 | AlertTextAppearance(text: "Replace `var` with `let`", color: .white, font: .system(size: 16, weight: .bold))
57 | } alertIconAppearance: {
58 | AlertIconAppearance(image: Image(systemName: "checkmark"), color: .green, font: .system(size: 16, weight: .bold))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
59 | }
60 | }
[7/13] Compiling SwiftToastAlert AlertPosition.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertPosition.swift:34:28: error: 'Alignment' is only available in macOS 10.15 or newer
27 |
28 | /// This enum represent the possible position options for the toast alert.
29 | public enum AlertPosition {
| `- note: add @available attribute to enclosing enum
30 | case topLeading
31 | case top
32 | case topTrailing
33 |
34 | internal var alignment : Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
35 | switch self {
36 | case .topLeading:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertPosition.swift:37:10: error: 'topLeading' is only available in macOS 10.15 or newer
27 |
28 | /// This enum represent the possible position options for the toast alert.
29 | public enum AlertPosition {
| `- note: add @available attribute to enclosing enum
30 | case topLeading
31 | case top
32 | case topTrailing
33 |
34 | internal var alignment : Alignment {
| `- note: add @available attribute to enclosing property
35 | switch self {
36 | case .topLeading:
37 | .topLeading
| |- error: 'topLeading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | case .top:
39 | .top
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertPosition.swift:39:10: error: 'top' is only available in macOS 10.15 or newer
27 |
28 | /// This enum represent the possible position options for the toast alert.
29 | public enum AlertPosition {
| `- note: add @available attribute to enclosing enum
30 | case topLeading
31 | case top
32 | case topTrailing
33 |
34 | internal var alignment : Alignment {
| `- note: add @available attribute to enclosing property
35 | switch self {
36 | case .topLeading:
37 | .topLeading
38 | case .top:
39 | .top
| |- error: 'top' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | case .topTrailing:
41 | .topTrailing
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertPosition.swift:41:10: error: 'topTrailing' is only available in macOS 10.15 or newer
27 |
28 | /// This enum represent the possible position options for the toast alert.
29 | public enum AlertPosition {
| `- note: add @available attribute to enclosing enum
30 | case topLeading
31 | case top
32 | case topTrailing
33 |
34 | internal var alignment : Alignment {
| `- note: add @available attribute to enclosing property
35 | switch self {
36 | case .topLeading:
:
39 | .top
40 | case .topTrailing:
41 | .topTrailing
| |- error: 'topTrailing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/13] Compiling SwiftToastAlert ToastAlert.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:30:29: error: cannot find 'UIScreen' in scope
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
| `- error: cannot find 'UIScreen' in scope
31 |
32 | @Binding private var isPresented: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:32:4: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
31 |
32 | @Binding private var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
33 | private let position: Alignment
34 | private let background: S
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:33:25: error: 'Alignment' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
31 |
32 | @Binding private var isPresented: Bool
33 | private let position: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
34 | private let background: S
35 | private let alertIconAppearance: AlertIconAppearance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:37:30: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
35 | private let alertIconAppearance: AlertIconAppearance
36 |
37 | internal init(isPresented: Binding<Bool>, position: Alignment, background: S, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
38 | _isPresented = isPresented
39 | self.position = position
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:37:55: error: 'Alignment' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
35 | private let alertIconAppearance: AlertIconAppearance
36 |
37 | internal init(isPresented: Binding<Bool>, position: Alignment, background: S, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
38 | _isPresented = isPresented
39 | self.position = position
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:44:46: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
42 | }
43 |
44 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | ZStack {
46 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:28:55: error: 'ShapeStyle' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| | `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:83:27: error: 'ShapeStyle' is only available in macOS 10.15 or newer
64 | }
65 |
66 | public extension View {
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
:
76 | ///
77 | /// - Returns: The alert toast view on top of the view it is applied to.
78 | func toastAlert<S>(
| `- note: add @available attribute to enclosing instance method
79 | isPresented: Binding<Bool>,
80 | position: AlertPosition,
81 | background: S,
82 | alertIconAppearance: () -> AlertIconAppearance
83 | ) -> some View where S: ShapeStyle {
| `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
84 | self.modifier(
85 | ToastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:79:18: error: 'Binding' is only available in macOS 10.15 or newer
64 | }
65 |
66 | public extension View {
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
:
76 | ///
77 | /// - Returns: The alert toast view on top of the view it is applied to.
78 | func toastAlert<S>(
| `- note: add @available attribute to enclosing instance method
79 | isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
80 | position: AlertPosition,
81 | background: S,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:83:13: error: 'View' is only available in macOS 10.15 or newer
64 | }
65 |
66 | public extension View {
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
:
76 | ///
77 | /// - Returns: The alert toast view on top of the view it is applied to.
78 | func toastAlert<S>(
| `- note: add @available attribute to enclosing instance method
79 | isPresented: Binding<Bool>,
80 | position: AlertPosition,
81 | background: S,
82 | alertIconAppearance: () -> AlertIconAppearance
83 | ) -> some View where S: ShapeStyle {
| `- error: 'View' is only available in macOS 10.15 or newer
84 | self.modifier(
85 | ToastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:66:18: error: 'View' is only available in macOS 10.15 or newer
64 | }
65 |
66 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:45:5: error: 'ZStack' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
42 | }
43 |
44 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | content
47 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:48:7: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
42 | }
43 |
44 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | ZStack {
46 | content
47 |
48 | RoundedRectangle(cornerRadius: 20)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .overlay(alignment: .center) {
50 | AlertDisplayView(alertIconAppearance: alertIconAppearance)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:49:10: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
42 | }
43 |
44 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | ZStack {
46 | content
47 |
48 | RoundedRectangle(cornerRadius: 20)
49 | .overlay(alignment: .center) {
| |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
50 | AlertDisplayView(alertIconAppearance: alertIconAppearance)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:49:30: error: 'center' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
42 | }
43 |
44 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | ZStack {
46 | content
47 |
48 | RoundedRectangle(cornerRadius: 20)
49 | .overlay(alignment: .center) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | AlertDisplayView(alertIconAppearance: alertIconAppearance)
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:55:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
42 | }
43 |
44 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | ZStack {
46 | content
:
53 | .alertPosition(y: isPresented ? 0.0: disappearingYPosition)
54 | .alertAnimation(isPresented: isPresented)
55 | .onChange(of: isPresented) { value in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
56 | if value {
57 | DispatchQueue.main.asyncAfter(deadline: .now()+3.0) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:58:15: error: setter for 'isPresented' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
42 | }
43 |
44 | public func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
45 | ZStack {
46 | content
:
56 | if value {
57 | DispatchQueue.main.asyncAfter(deadline: .now()+3.0) {
58 | isPresented = false
| |- error: setter for 'isPresented' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | }
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:84:10: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public extension View {
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
:
76 | ///
77 | /// - Returns: The alert toast view on top of the view it is applied to.
78 | func toastAlert<S>(
| `- note: add @available attribute to enclosing instance method
79 | isPresented: Binding<Bool>,
80 | position: AlertPosition,
:
82 | alertIconAppearance: () -> AlertIconAppearance
83 | ) -> some View where S: ShapeStyle {
84 | self.modifier(
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
85 | ToastAlert(
86 | isPresented: isPresented,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:84:10: error: 'modifier' is only available in macOS 10.15 or newer
64 | }
65 |
66 | public extension View {
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
:
76 | ///
77 | /// - Returns: The alert toast view on top of the view it is applied to.
78 | func toastAlert<S>(
| `- note: add @available attribute to enclosing instance method
79 | isPresented: Binding<Bool>,
80 | position: AlertPosition,
:
82 | alertIconAppearance: () -> AlertIconAppearance
83 | ) -> some View where S: ShapeStyle {
84 | self.modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | ToastAlert(
86 | isPresented: isPresented,
[9/13] Compiling SwiftToastAlert AlertDisplayView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
30 | let alertTextAppearance: AlertTextAppearance?
31 | let alertIconAppearance: AlertIconAppearance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:33:18: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
31 | let alertIconAppearance: AlertIconAppearance
32 |
33 | init(isTapped: Binding<Bool> = .constant(false), alertTextAppearance: AlertTextAppearance? = nil, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
34 | _isTapped = isTapped
35 | self.alertTextAppearance = alertTextAppearance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:39:20: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
40 | HStack {
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:40:7: error: 'HStack' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
42 | .padding(.leading, isTapped ? 20: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:42:12: error: 'padding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack {
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
42 | .padding(.leading, isTapped ? 20: 0.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | .padding(.trailing, isTapped ? 5: 0.0)
44 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:43:12: error: 'padding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack {
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
42 | .padding(.leading, isTapped ? 20: 0.0)
43 | .padding(.trailing, isTapped ? 5: 0.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 |
45 | if let alertTextAppearance, isTapped {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:47:14: error: 'opacity' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack {
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
:
45 | if let alertTextAppearance, isTapped {
46 | AlertTextView(alertTextAppearance: alertTextAppearance)
47 | .opacity(isTapped ? 1.0: 0.0)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | .animation(.smooth, value: isTapped)
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:48:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack {
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
:
46 | AlertTextView(alertTextAppearance: alertTextAppearance)
47 | .opacity(isTapped ? 1.0: 0.0)
48 | .animation(.smooth, value: isTapped)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:48:25: error: 'smooth' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack {
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
:
46 | AlertTextView(alertTextAppearance: alertTextAppearance)
47 | .opacity(isTapped ? 1.0: 0.0)
48 | .animation(.smooth, value: isTapped)
| |- error: 'smooth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | }
50 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:45:46: error: 'buildIf' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack {
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
:
43 | .padding(.trailing, isTapped ? 5: 0.0)
44 |
45 | if let alertTextAppearance, isTapped {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | AlertTextView(alertTextAppearance: alertTextAppearance)
47 | .opacity(isTapped ? 1.0: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:49:9: error: 'buildIf' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack {
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
:
47 | .opacity(isTapped ? 1.0: 0.0)
48 | .animation(.smooth, value: isTapped)
49 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | }
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:40:14: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| `- note: add @available attribute to enclosing property
40 | HStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
42 | .padding(.leading, isTapped ? 20: 0.0)
[10/13] Emitting module SwiftToastAlert
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:30:4: error: 'State' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
31 | private let disappearingYPosition: CGFloat = -200
32 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:32:29: error: cannot find 'UIScreen' in scope
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
32 | private let deviceWidth = UIScreen.main.bounds.size.width
| `- error: cannot find 'UIScreen' in scope
33 | private let alertHeight: CGFloat = 80
34 | private var width: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:38:4: error: 'Binding' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
36 | }
37 |
38 | @Binding private var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
39 | private let position: Alignment
40 | private let background: S
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:39:25: error: 'Alignment' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
37 |
38 | @Binding private var isPresented: Bool
39 | private let position: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
40 | private let background: S
41 | private let alertTextAppearance: AlertTextAppearance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:44:30: error: 'Binding' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
42 | private let alertIconAppearance: AlertIconAppearance
43 |
44 | internal init(isPresented: Binding<Bool>, position: Alignment, background: S, alertTextAppearance: AlertTextAppearance, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
45 | _isPresented = isPresented
46 | self.position = position
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:44:55: error: 'Alignment' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
42 | private let alertIconAppearance: AlertIconAppearance
43 |
44 | internal init(isPresented: Binding<Bool>, position: Alignment, background: S, alertTextAppearance: AlertTextAppearance, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
45 | _isPresented = isPresented
46 | self.position = position
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:52:46: error: 'View' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
:
50 | }
51 |
52 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
53 | ZStack {
54 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:29:66: error: 'ShapeStyle' is only available in macOS 10.15 or newer
27 | import SwiftUI
28 |
29 | internal struct InteractiveToastAlert<S>: ViewModifier where S : ShapeStyle {
| | `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
30 | @State private var isTapped: Bool = false
31 | private let disappearingYPosition: CGFloat = -200
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:104:27: error: 'ShapeStyle' is only available in macOS 10.15 or newer
83 | }
84 |
85 | public extension View {
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
:
96 | ///
97 | /// - Returns: The alert toast view on top of the view it is applied to.
98 | func interactiveToastAlert<S>(
| `- note: add @available attribute to enclosing instance method
99 | isPresented: Binding<Bool>,
100 | position: AlertPosition,
:
102 | alertTextAppearance: () -> AlertTextAppearance,
103 | alertIconAppearance: () -> AlertIconAppearance
104 | ) -> some View where S: ShapeStyle {
| `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
105 | self.modifier(
106 | InteractiveToastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:99:18: error: 'Binding' is only available in macOS 10.15 or newer
83 | }
84 |
85 | public extension View {
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
:
96 | ///
97 | /// - Returns: The alert toast view on top of the view it is applied to.
98 | func interactiveToastAlert<S>(
| `- note: add @available attribute to enclosing instance method
99 | isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
100 | position: AlertPosition,
101 | background: S,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:104:13: error: 'View' is only available in macOS 10.15 or newer
83 | }
84 |
85 | public extension View {
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
:
96 | ///
97 | /// - Returns: The alert toast view on top of the view it is applied to.
98 | func interactiveToastAlert<S>(
| `- note: add @available attribute to enclosing instance method
99 | isPresented: Binding<Bool>,
100 | position: AlertPosition,
:
102 | alertTextAppearance: () -> AlertTextAppearance,
103 | alertIconAppearance: () -> AlertIconAppearance
104 | ) -> some View where S: ShapeStyle {
| `- error: 'View' is only available in macOS 10.15 or newer
105 | self.modifier(
106 | InteractiveToastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/InteractiveToastAlert.swift:85:18: error: 'View' is only available in macOS 10.15 or newer
83 | }
84 |
85 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
86 | /// `interactiveToastAlert` will display alert toast that represent more info when tapped.
87 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:30:29: error: cannot find 'UIScreen' in scope
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
| `- error: cannot find 'UIScreen' in scope
31 |
32 | @Binding private var isPresented: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:32:4: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
31 |
32 | @Binding private var isPresented: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
33 | private let position: Alignment
34 | private let background: S
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:33:25: error: 'Alignment' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
31 |
32 | @Binding private var isPresented: Bool
33 | private let position: Alignment
| `- error: 'Alignment' is only available in macOS 10.15 or newer
34 | private let background: S
35 | private let alertIconAppearance: AlertIconAppearance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:37:30: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
35 | private let alertIconAppearance: AlertIconAppearance
36 |
37 | internal init(isPresented: Binding<Bool>, position: Alignment, background: S, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
38 | _isPresented = isPresented
39 | self.position = position
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:37:55: error: 'Alignment' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
35 | private let alertIconAppearance: AlertIconAppearance
36 |
37 | internal init(isPresented: Binding<Bool>, position: Alignment, background: S, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
38 | _isPresented = isPresented
39 | self.position = position
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:44:46: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
:
42 | }
43 |
44 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
45 | ZStack {
46 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:28:55: error: 'ShapeStyle' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal struct ToastAlert<S>: ViewModifier where S : ShapeStyle {
| | `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
29 | private let disappearingYPosition: CGFloat = -200
30 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:83:27: error: 'ShapeStyle' is only available in macOS 10.15 or newer
64 | }
65 |
66 | public extension View {
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
:
76 | ///
77 | /// - Returns: The alert toast view on top of the view it is applied to.
78 | func toastAlert<S>(
| `- note: add @available attribute to enclosing instance method
79 | isPresented: Binding<Bool>,
80 | position: AlertPosition,
81 | background: S,
82 | alertIconAppearance: () -> AlertIconAppearance
83 | ) -> some View where S: ShapeStyle {
| `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
84 | self.modifier(
85 | ToastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:79:18: error: 'Binding' is only available in macOS 10.15 or newer
64 | }
65 |
66 | public extension View {
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
:
76 | ///
77 | /// - Returns: The alert toast view on top of the view it is applied to.
78 | func toastAlert<S>(
| `- note: add @available attribute to enclosing instance method
79 | isPresented: Binding<Bool>,
| `- error: 'Binding' is only available in macOS 10.15 or newer
80 | position: AlertPosition,
81 | background: S,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:83:13: error: 'View' is only available in macOS 10.15 or newer
64 | }
65 |
66 | public extension View {
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
:
76 | ///
77 | /// - Returns: The alert toast view on top of the view it is applied to.
78 | func toastAlert<S>(
| `- note: add @available attribute to enclosing instance method
79 | isPresented: Binding<Bool>,
80 | position: AlertPosition,
81 | background: S,
82 | alertIconAppearance: () -> AlertIconAppearance
83 | ) -> some View where S: ShapeStyle {
| `- error: 'View' is only available in macOS 10.15 or newer
84 | self.modifier(
85 | ToastAlert(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertModifier/ToastAlert.swift:66:18: error: 'View' is only available in macOS 10.15 or newer
64 | }
65 |
66 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
67 | /// `toastAlert` will display alert toast that doesn't have tap feature.
68 | ///
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
30 | let alertTextAppearance: AlertTextAppearance?
31 | let alertIconAppearance: AlertIconAppearance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:33:18: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
31 | let alertIconAppearance: AlertIconAppearance
32 |
33 | init(isTapped: Binding<Bool> = .constant(false), alertTextAppearance: AlertTextAppearance? = nil, alertIconAppearance: AlertIconAppearance) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
34 | _isTapped = isTapped
35 | self.alertTextAppearance = alertTextAppearance
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertDisplayView.swift:39:20: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertDisplayView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var isTapped: Bool
30 | let alertTextAppearance: AlertTextAppearance?
:
37 | }
38 |
39 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
40 | HStack {
41 | AlertIconView(tapped: $isTapped, alertIconAppearance: alertIconAppearance)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertIconView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertIconView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var tapped: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
30 | let alertIconAppearance: AlertIconAppearance
31 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertIconView.swift:32:18: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertIconView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var tapped: Bool
30 | let alertIconAppearance: AlertIconAppearance
31 |
32 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
33 | alertIconAppearance.image
34 | .font(alertIconAppearance.font)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertTextView.swift:31:18: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertTextView: View {
| `- note: add @available attribute to enclosing struct
29 | let alertTextAppearance: AlertTextAppearance
30 |
31 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | Text(alertTextAppearance.text)
33 | .foregroundStyle(alertTextAppearance.color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:29:41: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
| `- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
30 | private let disappearingYPosition: CGFloat = -200
31 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:29:41: error: 'black' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
| `- error: 'black' is only available in macOS 10.15 or newer
30 | private let disappearingYPosition: CGFloat = -200
31 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:31:29: error: cannot find 'UIScreen' in scope
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
31 | private let deviceWidth = UIScreen.main.bounds.size.width
| `- error: cannot find 'UIScreen' in scope
32 |
33 | private let time = 3.0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:29:27: error: 'ShapeStyle' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
| `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
30 | private let disappearingYPosition: CGFloat = -200
31 | private let deviceWidth = UIScreen.main.bounds.size.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:35:4: error: 'State' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
33 | private let time = 3.0
34 | private let height: CGFloat = 80
35 | @State private var flag: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
36 | @State private var tapped: Bool = false
37 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:36:4: error: 'State' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
34 | private let height: CGFloat = 80
35 | @State private var flag: Bool = false
36 | @State private var tapped: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
37 |
38 | private var width: CGFloat {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:42:18: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct SwiftUIView: View {
| `- note: add @available attribute to enclosing struct
29 | private let style: some ShapeStyle = .black
30 | private let disappearingYPosition: CGFloat = -200
:
40 | }
41 |
42 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
43 | ZStack {
44 | Color.red.ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Examples/SwiftToastAlert.swift:63:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
61 | }
62 |
63 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
64 | SwiftUIView()
65 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:29:121: error: 'ShapeStyle' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| | `- error: 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:29:65: error: 'Alignment' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:29:106: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:29:78: error: 'top' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
| | `- error: 'top' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
30 | self
31 | .frame(width: width, height: height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:36:42: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
34 | }
35 |
36 | func alertPosition(y: CGFloat) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
37 | self
38 | .padding(.horizontal)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:42:66: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
40 | }
41 |
42 | func alertAnimation(isPresented: Bool, isTapped: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
43 | self
44 | .animation(.easeInOut(duration: 0.45), value: isPresented)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:48:50: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
:
46 | }
47 |
48 | func alertAnimation(isPresented: Bool) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
49 | self
50 | .animation(.easeInOut(duration: 0.45), value: isPresented)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/ExtensionForView/ExtensionForView.swift:28:20: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | internal extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
29 | func alertFrame<S>(width: CGFloat, height: CGFloat, position: Alignment = .top, background: S) -> some View where S : ShapeStyle {
30 | self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:31:21: error: 'Image' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
| `- error: 'Image' is only available in macOS 10.15 or newer
32 | /// This is the color of the icon in the alert, it is used for SF symbol only.
33 | public let color: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:33:21: error: 'Color' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
32 | /// This is the color of the icon in the alert, it is used for SF symbol only.
33 | public let color: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
34 | /// The font properties is used to customize the size and weight of the icon if it was SF symbol
35 | public let font: Font?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:35:20: error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
:
33 | public let color: Color?
34 | /// The font properties is used to customize the size and weight of the icon if it was SF symbol
35 | public let font: Font?
| `- error: 'Font' is only available in macOS 10.15 or newer
36 |
37 | /// if you are not using SF symbol, don't init the color or the font property.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:38:22: error: 'Image' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
:
36 |
37 | /// if you are not using SF symbol, don't init the color or the font property.
38 | public init(image: Image, color: Color? = nil, font: Font? = nil) {
| | `- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.image = image
40 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:38:36: error: 'Color' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
:
36 |
37 | /// if you are not using SF symbol, don't init the color or the font property.
38 | public init(image: Image, color: Color? = nil, font: Font? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.image = image
40 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertIconAppearance.swift:38:56: error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// This type represent the icon the will be displayed in the alert and it's properties.
29 | public struct AlertIconAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// This represent the icon that will be displayed in the alert, it can be SF symbol or image from the asset catalog.
31 | public let image: Image
:
36 |
37 | /// if you are not using SF symbol, don't init the color or the font property.
38 | public init(image: Image, color: Color? = nil, font: Font? = nil) {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
39 | self.image = image
40 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertPosition.swift:34:28: error: 'Alignment' is only available in macOS 10.15 or newer
27 |
28 | /// This enum represent the possible position options for the toast alert.
29 | public enum AlertPosition {
| `- note: add @available attribute to enclosing enum
30 | case topLeading
31 | case top
32 | case topTrailing
33 |
34 | internal var alignment : Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
35 | switch self {
36 | case .topLeading:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:33:21: error: 'Color' is only available in macOS 10.15 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
32 | /// The color of the displayed ``text``.
33 | public let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
34 | /// The font properties of the displayed text, that contains size, weight and font of the ``text``.
35 | public let font: Font
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:35:20: error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
:
33 | public let color: Color
34 | /// The font properties of the displayed text, that contains size, weight and font of the ``text``.
35 | public let font: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
36 |
37 | public init(text: String, color: Color, font: Font = .system(size: 16, weight: .bold)) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:37:36: error: 'Color' is only available in macOS 10.15 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
:
35 | public let font: Font
36 |
37 | public init(text: String, color: Color, font: Font = .system(size: 16, weight: .bold)) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
38 | self.text = text
39 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:37:49: error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
:
35 | public let font: Font
36 |
37 | public init(text: String, color: Color, font: Font = .system(size: 16, weight: .bold)) {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
38 | self.text = text
39 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:37:57: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
:
35 | public let font: Font
36 |
37 | public init(text: String, color: Color, font: Font = .system(size: 16, weight: .bold)) {
| | `- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
38 | self.text = text
39 | self.color = color
[11/13] Compiling SwiftToastAlert AlertIconView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertIconView.swift:29:4: error: 'Binding' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertIconView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var tapped: Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
30 | let alertIconAppearance: AlertIconAppearance
31 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertIconView.swift:32:18: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertIconView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var tapped: Bool
30 | let alertIconAppearance: AlertIconAppearance
31 |
32 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
33 | alertIconAppearance.image
34 | .font(alertIconAppearance.font)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertIconView.swift:34:8: error: 'font' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertIconView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var tapped: Bool
30 | let alertIconAppearance: AlertIconAppearance
31 |
32 | var body: some View {
| `- note: add @available attribute to enclosing property
33 | alertIconAppearance.image
34 | .font(alertIconAppearance.font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .foregroundStyle(alertIconAppearance.color ?? .clear)
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertIconView.swift:35:8: error: 'foregroundStyle' is only available in macOS 12.0 or newer
26 | import SwiftUI
27 |
28 | struct AlertIconView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var tapped: Bool
30 | let alertIconAppearance: AlertIconAppearance
31 |
32 | var body: some View {
| `- note: add @available attribute to enclosing property
33 | alertIconAppearance.image
34 | .font(alertIconAppearance.font)
35 | .foregroundStyle(alertIconAppearance.color ?? .clear)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertIconView.swift:35:54: error: 'clear' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertIconView: View {
| `- note: add @available attribute to enclosing struct
29 | @Binding var tapped: Bool
30 | let alertIconAppearance: AlertIconAppearance
31 |
32 | var body: some View {
| `- note: add @available attribute to enclosing property
33 | alertIconAppearance.image
34 | .font(alertIconAppearance.font)
35 | .foregroundStyle(alertIconAppearance.color ?? .clear)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | }
37 | }
[12/13] Compiling SwiftToastAlert AlertTextView.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertTextView.swift:31:18: error: 'View' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertTextView: View {
| `- note: add @available attribute to enclosing struct
29 | let alertTextAppearance: AlertTextAppearance
30 |
31 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | Text(alertTextAppearance.text)
33 | .foregroundStyle(alertTextAppearance.color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertTextView.swift:32:5: error: 'Text' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertTextView: View {
| `- note: add @available attribute to enclosing struct
29 | let alertTextAppearance: AlertTextAppearance
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | Text(alertTextAppearance.text)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .foregroundStyle(alertTextAppearance.color)
34 | .font(alertTextAppearance.font)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertTextView.swift:33:8: error: 'foregroundStyle' is only available in macOS 14.0 or newer
26 | import SwiftUI
27 |
28 | struct AlertTextView: View {
| `- note: add @available attribute to enclosing struct
29 | let alertTextAppearance: AlertTextAppearance
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | Text(alertTextAppearance.text)
33 | .foregroundStyle(alertTextAppearance.color)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
34 | .font(alertTextAppearance.font)
35 | .lineLimit(2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertTextView.swift:34:8: error: 'font' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertTextView: View {
| `- note: add @available attribute to enclosing struct
29 | let alertTextAppearance: AlertTextAppearance
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | Text(alertTextAppearance.text)
33 | .foregroundStyle(alertTextAppearance.color)
34 | .font(alertTextAppearance.font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .lineLimit(2)
36 | .multilineTextAlignment(.leading)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertTextView.swift:35:8: error: 'lineLimit' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertTextView: View {
| `- note: add @available attribute to enclosing struct
29 | let alertTextAppearance: AlertTextAppearance
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | Text(alertTextAppearance.text)
33 | .foregroundStyle(alertTextAppearance.color)
34 | .font(alertTextAppearance.font)
35 | .lineLimit(2)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .multilineTextAlignment(.leading)
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/AlertSubViews/AlertTextView.swift:36:8: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
26 | import SwiftUI
27 |
28 | struct AlertTextView: View {
| `- note: add @available attribute to enclosing struct
29 | let alertTextAppearance: AlertTextAppearance
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | Text(alertTextAppearance.text)
33 | .foregroundStyle(alertTextAppearance.color)
34 | .font(alertTextAppearance.font)
35 | .lineLimit(2)
36 | .multilineTextAlignment(.leading)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | }
38 | }
[13/13] Compiling SwiftToastAlert AlertTextAppearance.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:33:21: error: 'Color' is only available in macOS 10.15 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
32 | /// The color of the displayed ``text``.
33 | public let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
34 | /// The font properties of the displayed text, that contains size, weight and font of the ``text``.
35 | public let font: Font
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:35:20: error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
:
33 | public let color: Color
34 | /// The font properties of the displayed text, that contains size, weight and font of the ``text``.
35 | public let font: Font
| `- error: 'Font' is only available in macOS 10.15 or newer
36 |
37 | public init(text: String, color: Color, font: Font = .system(size: 16, weight: .bold)) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:37:36: error: 'Color' is only available in macOS 10.15 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
:
35 | public let font: Font
36 |
37 | public init(text: String, color: Color, font: Font = .system(size: 16, weight: .bold)) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
38 | self.text = text
39 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:37:49: error: 'Font' is only available in macOS 10.15 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
:
35 | public let font: Font
36 |
37 | public init(text: String, color: Color, font: Font = .system(size: 16, weight: .bold)) {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
38 | self.text = text
39 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftToastAlert/Models/AlertTextAppearance.swift:37:57: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
27 |
28 | /// This represent the text that will be displayed in the alert toast with it's properties.
29 | public struct AlertTextAppearance {
| `- note: add @available attribute to enclosing struct
30 | /// The displayed text in the toast alert.
31 | public let text: String
:
35 | public let font: Font
36 |
37 | public init(text: String, color: Color, font: Font = .system(size: 16, weight: .bold)) {
| | `- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add @available attribute to enclosing initializer
38 | self.text = text
39 | self.color = color
BUILD FAILURE 6.0 macosSpm