Build Information
Failed to build swift-awesome-button, reference v1.1.0 (f20e17), with Swift 6.1 for macOS (SPM) on 31 Aug 2026 19:20:27 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:225:38: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'opacity' is only available in macOS 10.15 or newer
226 | foregroundColor: .white,
227 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:226:23: error: 'white' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
226 | foregroundColor: .white,
| `- error: 'white' is only available in macOS 10.15 or newer
227 | textSize: 14,
228 | textLineHeight: 20,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:231:19: error: 'clear' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
229 | borderRadius: 18,
230 | borderWidth: 0,
231 | borderColor: .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
232 | raiseAmount: 6,
233 | contentGap: 10,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:236:30: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
234 | animationDuration: 0.14,
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
| `- error: 'Color' is only available in macOS 10.15 or newer
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:236:30: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
234 | animationDuration: 0.14,
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:237:25: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
| `- error: 'Color' is only available in macOS 10.15 or newer
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:237:25: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:238:26: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'Color' is only available in macOS 10.15 or newer
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:238:32: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'black' is only available in macOS 10.15 or newer
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:238:38: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'opacity' is only available in macOS 10.15 or newer
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:239:30: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
| `- error: 'Color' is only available in macOS 10.15 or newer
240 | disabledBorderColor: .clear
241 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:239:30: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
240 | disabledBorderColor: .clear
241 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:240:27: error: 'clear' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
241 | )
242 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:166:8: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
140 | }
141 |
142 | private struct AnimatableCompletionObserver: AnimatableModifier {
| `- note: add @available attribute to enclosing struct
143 | var targetValue: CGFloat
144 | var epsilon: CGFloat
:
162 | }
163 |
164 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
165 | content
166 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | notifyIfCompleted()
168 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:189:5: 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
180 | }
181 |
182 | extension View {
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
| `- note: add @available attribute to enclosing instance method
184 | of value: CGFloat,
185 | target targetValue: CGFloat,
:
187 | perform action: @escaping () -> Void
188 | ) -> some View {
189 | 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
190 | AnimatableCompletionObserver(
191 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:189:5: error: 'modifier' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension View {
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
| `- note: add @available attribute to enclosing instance method
184 | of value: CGFloat,
185 | target targetValue: CGFloat,
:
187 | perform action: @escaping () -> Void
188 | ) -> some View {
189 | modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
190 | AnimatableCompletionObserver(
191 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:7:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
5 | }
6 |
7 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
8 | var awesomeButtonStyleTransitionContext: AwesomeButtonStyleTransitionContext? {
9 | get { self[AwesomeButtonStyleTransitionContextKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:83:18: error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
81 | @Environment(\.awesomeButtonThemeData) private var themeData
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
| `- error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
85 | #if canImport(UIKit)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:84:18: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
| `- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
85 | #if canImport(UIKit)
86 | @Environment(\.awesomeButtonNativeControlContext) private var nativeControlContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:17:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
18 | private let beforeView: AnyView?
19 | private let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:18:27: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
18 | private let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
19 | private let afterView: AnyView?
20 | private let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:19:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
18 | private let beforeView: AnyView?
19 | private let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
20 | private let extraView: AnyView?
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:20:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
18 | private let beforeView: AnyView?
19 | private let afterView: AnyView?
20 | private let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
21 |
22 | /// Receives an accepted activation and, in progress mode, its one-shot completion handle.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:81:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
79 | public let onProgressEnd: (() -> Void)?
80 |
81 | @Environment(\.awesomeButtonThemeData) private var themeData
| `- error: 'Environment' is only available in macOS 10.15 or newer
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:82:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
80 |
81 | @Environment(\.awesomeButtonThemeData) private var themeData
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
| `- error: 'Environment' is only available in macOS 10.15 or newer
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:83:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
81 | @Environment(\.awesomeButtonThemeData) private var themeData
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
| `- error: 'Environment' is only available in macOS 10.15 or newer
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
85 | #if canImport(UIKit)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:84:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
85 | #if canImport(UIKit)
86 | @Environment(\.awesomeButtonNativeControlContext) private var nativeControlContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:88:4: error: 'StateObject' is only available in macOS 11.0 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
86 | @Environment(\.awesomeButtonNativeControlContext) private var nativeControlContext
87 | #endif
88 | @StateObject private var controller = AwesomeButtonController()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
89 |
90 | /// Creates a button whose primary label is an optional string.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:101:13: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
89 |
90 | /// Creates a button whose primary label is an optional string.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | child: String? = nil,
93 | onPress: AwesomeButtonPressCallback? = nil,
:
99 | paddingTop: CGFloat? = nil,
100 | paddingBottom: CGFloat? = nil,
101 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
102 | after: AnyView? = nil,
103 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:102:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
89 |
90 | /// Creates a button whose primary label is an optional string.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | child: String? = nil,
93 | onPress: AwesomeButtonPressCallback? = nil,
:
100 | paddingBottom: CGFloat? = nil,
101 | before: AnyView? = nil,
102 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
103 | extra: AnyView? = nil,
104 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:103:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
89 |
90 | /// Creates a button whose primary label is an optional string.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | child: String? = nil,
93 | onPress: AwesomeButtonPressCallback? = nil,
:
101 | before: AnyView? = nil,
102 | after: AnyView? = nil,
103 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
104 | stretch: Bool = false,
105 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:196:36: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
194 | onProgressStart: (() -> Void)? = nil,
195 | onProgressEnd: (() -> Void)? = nil,
196 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
197 | ) {
198 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:172:13: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
170 | paddingTop: CGFloat? = nil,
171 | paddingBottom: CGFloat? = nil,
172 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
173 | after: AnyView? = nil,
174 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:173:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
171 | paddingBottom: CGFloat? = nil,
172 | before: AnyView? = nil,
173 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
174 | extra: AnyView? = nil,
175 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:174:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
172 | before: AnyView? = nil,
173 | after: AnyView? = nil,
174 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
175 | stretch: Bool = false,
176 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:196:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
194 | onProgressStart: (() -> Void)? = nil,
195 | onProgressEnd: (() -> Void)? = nil,
196 | @ViewBuilder label: () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
197 | ) {
198 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:196:36: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
194 | onProgressStart: (() -> Void)? = nil,
195 | onProgressEnd: (() -> Void)? = nil,
196 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
197 | ) {
198 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:235:25: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
233 |
234 | /// The SwiftUI representation of the resolved button configuration.
235 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
236 | let normalizedThemeStyle =
237 | AwesomeButtonNormalization.style(themeData.style) ?? AwesomeButtonStyle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:199:22: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
197 | ) {
198 | self.childText = nil
199 | self.labelView = AnyView(label())
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
200 | self.beforeView = before
201 | self.afterView = after
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:281:28: error: cannot find 'nativeControlContext' in scope
279 | reduceMotion: reduceMotion,
280 | dynamicTypeSize: dynamicTypeSize,
281 | nativeControlBridge: nativeControlContext?.bridge,
| `- error: cannot find 'nativeControlContext' in scope
282 | externallyHighlighted: nativeControlContext?.externallyHighlighted ?? false
283 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:282:30: error: cannot find 'nativeControlContext' in scope
280 | dynamicTypeSize: dynamicTypeSize,
281 | nativeControlBridge: nativeControlContext?.bridge,
282 | externallyHighlighted: nativeControlContext?.externallyHighlighted ?? false
| `- error: cannot find 'nativeControlContext' in scope
283 | )
284 | return AwesomeButtonBody(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:136:26: error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
| `- error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
137 | externallyHighlighted: Bool = false
138 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:239:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
237 | AwesomeButtonNormalization.style(themeData.style) ?? AwesomeButtonStyle()
238 | let resolvedStyle = normalizedThemeStyle.merge(AwesomeButtonNormalization.style(style))
239 | let configuration = AwesomeButtonResolvedConfiguration(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
240 | childText: childText,
241 | labelView: labelView,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:288:41: error: cannot infer contextual base in reference to member 'auto'
286 | configuration: configuration,
287 | targetWidth: controller.resolvedWidth
288 | ?? (configuration.widthMode == .auto ? configuration.height : configuration.width),
| `- error: cannot infer contextual base in reference to member 'auto'
289 | targetHeight: controller.resolvedHeight,
290 | targetPressProgress: controller.pressProgress
[27/31] Compiling SwiftAwesomeButton AutoWidthMeasurement.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:164:39: error: 'View' is only available in macOS 10.15 or newer
140 | }
141 |
142 | private struct AnimatableCompletionObserver: AnimatableModifier {
| `- note: add @available attribute to enclosing struct
143 | var targetValue: CGFloat
144 | var epsilon: CGFloat
:
162 | }
163 |
164 | 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
165 | content
166 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:188:13: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension View {
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
| `- note: add @available attribute to enclosing instance method
184 | of value: CGFloat,
185 | target targetValue: CGFloat,
186 | epsilon: CGFloat = 0.001,
187 | perform action: @escaping () -> Void
188 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
189 | modifier(
190 | AnimatableCompletionObserver(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:182:11: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
184 | of value: CGFloat,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:219:22: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
| `- error: 'Color' is only available in macOS 10.15 or newer
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:219:22: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:220:28: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:220:34: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:220:40: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:221:25: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:221:31: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:221:37: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:222:17: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
| `- error: 'Color' is only available in macOS 10.15 or newer
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:222:17: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:223:18: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:223:24: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:223:30: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:224:21: error: 'white' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
| `- error: 'white' is only available in macOS 10.15 or newer
225 | pressedOverlayColor: Color.black.opacity(0.08),
226 | foregroundColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:225:26: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'Color' is only available in macOS 10.15 or newer
226 | foregroundColor: .white,
227 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:225:32: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'black' is only available in macOS 10.15 or newer
226 | foregroundColor: .white,
227 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:225:38: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'opacity' is only available in macOS 10.15 or newer
226 | foregroundColor: .white,
227 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:226:23: error: 'white' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
226 | foregroundColor: .white,
| `- error: 'white' is only available in macOS 10.15 or newer
227 | textSize: 14,
228 | textLineHeight: 20,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:231:19: error: 'clear' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
229 | borderRadius: 18,
230 | borderWidth: 0,
231 | borderColor: .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
232 | raiseAmount: 6,
233 | contentGap: 10,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:236:30: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
234 | animationDuration: 0.14,
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
| `- error: 'Color' is only available in macOS 10.15 or newer
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:236:30: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
234 | animationDuration: 0.14,
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:237:25: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
| `- error: 'Color' is only available in macOS 10.15 or newer
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:237:25: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:238:26: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'Color' is only available in macOS 10.15 or newer
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:238:32: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'black' is only available in macOS 10.15 or newer
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:238:38: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'opacity' is only available in macOS 10.15 or newer
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:239:30: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
| `- error: 'Color' is only available in macOS 10.15 or newer
240 | disabledBorderColor: .clear
241 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:239:30: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
240 | disabledBorderColor: .clear
241 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:240:27: error: 'clear' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
241 | )
242 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:166:8: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
140 | }
141 |
142 | private struct AnimatableCompletionObserver: AnimatableModifier {
| `- note: add @available attribute to enclosing struct
143 | var targetValue: CGFloat
144 | var epsilon: CGFloat
:
162 | }
163 |
164 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
165 | content
166 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | notifyIfCompleted()
168 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:189:5: 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
180 | }
181 |
182 | extension View {
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
| `- note: add @available attribute to enclosing instance method
184 | of value: CGFloat,
185 | target targetValue: CGFloat,
:
187 | perform action: @escaping () -> Void
188 | ) -> some View {
189 | 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
190 | AnimatableCompletionObserver(
191 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:189:5: error: 'modifier' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension View {
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
| `- note: add @available attribute to enclosing instance method
184 | of value: CGFloat,
185 | target targetValue: CGFloat,
:
187 | perform action: @escaping () -> Void
188 | ) -> some View {
189 | modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
190 | AnimatableCompletionObserver(
191 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:7:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
5 | }
6 |
7 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
8 | var awesomeButtonStyleTransitionContext: AwesomeButtonStyleTransitionContext? {
9 | get { self[AwesomeButtonStyleTransitionContextKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:83:18: error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
81 | @Environment(\.awesomeButtonThemeData) private var themeData
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
| `- error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
85 | #if canImport(UIKit)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:84:18: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
| `- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
85 | #if canImport(UIKit)
86 | @Environment(\.awesomeButtonNativeControlContext) private var nativeControlContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:17:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
18 | private let beforeView: AnyView?
19 | private let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:18:27: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
18 | private let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
19 | private let afterView: AnyView?
20 | private let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:19:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
18 | private let beforeView: AnyView?
19 | private let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
20 | private let extraView: AnyView?
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:20:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
18 | private let beforeView: AnyView?
19 | private let afterView: AnyView?
20 | private let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
21 |
22 | /// Receives an accepted activation and, in progress mode, its one-shot completion handle.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:81:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
79 | public let onProgressEnd: (() -> Void)?
80 |
81 | @Environment(\.awesomeButtonThemeData) private var themeData
| `- error: 'Environment' is only available in macOS 10.15 or newer
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:82:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
80 |
81 | @Environment(\.awesomeButtonThemeData) private var themeData
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
| `- error: 'Environment' is only available in macOS 10.15 or newer
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:83:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
81 | @Environment(\.awesomeButtonThemeData) private var themeData
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
| `- error: 'Environment' is only available in macOS 10.15 or newer
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
85 | #if canImport(UIKit)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:84:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
85 | #if canImport(UIKit)
86 | @Environment(\.awesomeButtonNativeControlContext) private var nativeControlContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:88:4: error: 'StateObject' is only available in macOS 11.0 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
86 | @Environment(\.awesomeButtonNativeControlContext) private var nativeControlContext
87 | #endif
88 | @StateObject private var controller = AwesomeButtonController()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
89 |
90 | /// Creates a button whose primary label is an optional string.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:101:13: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
89 |
90 | /// Creates a button whose primary label is an optional string.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | child: String? = nil,
93 | onPress: AwesomeButtonPressCallback? = nil,
:
99 | paddingTop: CGFloat? = nil,
100 | paddingBottom: CGFloat? = nil,
101 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
102 | after: AnyView? = nil,
103 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:102:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
89 |
90 | /// Creates a button whose primary label is an optional string.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | child: String? = nil,
93 | onPress: AwesomeButtonPressCallback? = nil,
:
100 | paddingBottom: CGFloat? = nil,
101 | before: AnyView? = nil,
102 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
103 | extra: AnyView? = nil,
104 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:103:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
89 |
90 | /// Creates a button whose primary label is an optional string.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | child: String? = nil,
93 | onPress: AwesomeButtonPressCallback? = nil,
:
101 | before: AnyView? = nil,
102 | after: AnyView? = nil,
103 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
104 | stretch: Bool = false,
105 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:196:36: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
194 | onProgressStart: (() -> Void)? = nil,
195 | onProgressEnd: (() -> Void)? = nil,
196 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
197 | ) {
198 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:172:13: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
170 | paddingTop: CGFloat? = nil,
171 | paddingBottom: CGFloat? = nil,
172 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
173 | after: AnyView? = nil,
174 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:173:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
171 | paddingBottom: CGFloat? = nil,
172 | before: AnyView? = nil,
173 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
174 | extra: AnyView? = nil,
175 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:174:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
172 | before: AnyView? = nil,
173 | after: AnyView? = nil,
174 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
175 | stretch: Bool = false,
176 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:196:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
194 | onProgressStart: (() -> Void)? = nil,
195 | onProgressEnd: (() -> Void)? = nil,
196 | @ViewBuilder label: () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
197 | ) {
198 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:196:36: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
194 | onProgressStart: (() -> Void)? = nil,
195 | onProgressEnd: (() -> Void)? = nil,
196 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
197 | ) {
198 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:235:25: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
233 |
234 | /// The SwiftUI representation of the resolved button configuration.
235 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
236 | let normalizedThemeStyle =
237 | AwesomeButtonNormalization.style(themeData.style) ?? AwesomeButtonStyle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:199:22: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
197 | ) {
198 | self.childText = nil
199 | self.labelView = AnyView(label())
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
200 | self.beforeView = before
201 | self.afterView = after
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:281:28: error: cannot find 'nativeControlContext' in scope
279 | reduceMotion: reduceMotion,
280 | dynamicTypeSize: dynamicTypeSize,
281 | nativeControlBridge: nativeControlContext?.bridge,
| `- error: cannot find 'nativeControlContext' in scope
282 | externallyHighlighted: nativeControlContext?.externallyHighlighted ?? false
283 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:282:30: error: cannot find 'nativeControlContext' in scope
280 | dynamicTypeSize: dynamicTypeSize,
281 | nativeControlBridge: nativeControlContext?.bridge,
282 | externallyHighlighted: nativeControlContext?.externallyHighlighted ?? false
| `- error: cannot find 'nativeControlContext' in scope
283 | )
284 | return AwesomeButtonBody(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:136:26: error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
| `- error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
137 | externallyHighlighted: Bool = false
138 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:239:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
237 | AwesomeButtonNormalization.style(themeData.style) ?? AwesomeButtonStyle()
238 | let resolvedStyle = normalizedThemeStyle.merge(AwesomeButtonNormalization.style(style))
239 | let configuration = AwesomeButtonResolvedConfiguration(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
240 | childText: childText,
241 | labelView: labelView,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:288:41: error: cannot infer contextual base in reference to member 'auto'
286 | configuration: configuration,
287 | targetWidth: controller.resolvedWidth
288 | ?? (configuration.widthMode == .auto ? configuration.height : configuration.width),
| `- error: cannot infer contextual base in reference to member 'auto'
289 | targetHeight: controller.resolvedHeight,
290 | targetPressProgress: controller.pressProgress
[28/31] Compiling SwiftAwesomeButton AwesomeButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:164:39: error: 'View' is only available in macOS 10.15 or newer
140 | }
141 |
142 | private struct AnimatableCompletionObserver: AnimatableModifier {
| `- note: add @available attribute to enclosing struct
143 | var targetValue: CGFloat
144 | var epsilon: CGFloat
:
162 | }
163 |
164 | 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
165 | content
166 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:188:13: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension View {
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
| `- note: add @available attribute to enclosing instance method
184 | of value: CGFloat,
185 | target targetValue: CGFloat,
186 | epsilon: CGFloat = 0.001,
187 | perform action: @escaping () -> Void
188 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
189 | modifier(
190 | AnimatableCompletionObserver(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:182:11: error: 'View' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
184 | of value: CGFloat,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:219:22: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
| `- error: 'Color' is only available in macOS 10.15 or newer
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:219:22: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:220:28: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:220:34: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:220:40: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:221:25: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:221:31: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:221:37: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:222:17: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
| `- error: 'Color' is only available in macOS 10.15 or newer
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:222:17: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:223:18: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:223:24: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:223:30: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
221 | backgroundProgress: Color.black.opacity(0.15),
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:224:21: error: 'white' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
222 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
| `- error: 'white' is only available in macOS 10.15 or newer
225 | pressedOverlayColor: Color.black.opacity(0.08),
226 | foregroundColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:225:26: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'Color' is only available in macOS 10.15 or newer
226 | foregroundColor: .white,
227 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:225:32: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'black' is only available in macOS 10.15 or newer
226 | foregroundColor: .white,
227 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:225:38: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
223 | shadowColor: Color.black.opacity(0.15),
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'opacity' is only available in macOS 10.15 or newer
226 | foregroundColor: .white,
227 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:226:23: error: 'white' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
224 | activityColor: .white,
225 | pressedOverlayColor: Color.black.opacity(0.08),
226 | foregroundColor: .white,
| `- error: 'white' is only available in macOS 10.15 or newer
227 | textSize: 14,
228 | textLineHeight: 20,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:231:19: error: 'clear' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
229 | borderRadius: 18,
230 | borderWidth: 0,
231 | borderColor: .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
232 | raiseAmount: 6,
233 | contentGap: 10,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:236:30: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
234 | animationDuration: 0.14,
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
| `- error: 'Color' is only available in macOS 10.15 or newer
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:236:30: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
234 | animationDuration: 0.14,
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:237:25: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
| `- error: 'Color' is only available in macOS 10.15 or newer
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:237:25: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
235 | animationCurve: .easeOutCubic,
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:238:26: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'Color' is only available in macOS 10.15 or newer
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:238:32: error: 'black' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'black' is only available in macOS 10.15 or newer
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:238:38: error: 'opacity' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
236 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'opacity' is only available in macOS 10.15 or newer
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:239:30: error: 'Color' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
| `- error: 'Color' is only available in macOS 10.15 or newer
240 | disabledBorderColor: .clear
241 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:239:30: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
237 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
| `- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
240 | disabledBorderColor: .clear
241 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:240:27: error: 'clear' is only available in macOS 10.15 or newer
206 |
207 | /// Environment-provided defaults for direct ``AwesomeButton`` instances.
208 | public struct AwesomeButtonThemeData: Sendable {
| `- note: add @available attribute to enclosing struct
209 | /// The environment's base style.
210 | public var style: AwesomeButtonStyle
:
216 |
217 | /// The package fallback used after all explicit and themed sources are exhausted.
218 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add @available attribute to enclosing static property
219 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
220 | backgroundPlaceholder: Color.black.opacity(0.15),
:
238 | disabledShadowColor: Color.black.opacity(0.10),
239 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
240 | disabledBorderColor: .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
241 | )
242 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:166:8: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
140 | }
141 |
142 | private struct AnimatableCompletionObserver: AnimatableModifier {
| `- note: add @available attribute to enclosing struct
143 | var targetValue: CGFloat
144 | var epsilon: CGFloat
:
162 | }
163 |
164 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
165 | content
166 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | notifyIfCompleted()
168 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:189:5: 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
180 | }
181 |
182 | extension View {
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
| `- note: add @available attribute to enclosing instance method
184 | of value: CGFloat,
185 | target targetValue: CGFloat,
:
187 | perform action: @escaping () -> Void
188 | ) -> some View {
189 | 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
190 | AnimatableCompletionObserver(
191 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:189:5: error: 'modifier' is only available in macOS 10.15 or newer
180 | }
181 |
182 | extension View {
| `- note: add @available attribute to enclosing extension
183 | fileprivate func onAnimatableCompletion(
| `- note: add @available attribute to enclosing instance method
184 | of value: CGFloat,
185 | target targetValue: CGFloat,
:
187 | perform action: @escaping () -> Void
188 | ) -> some View {
189 | modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
190 | AnimatableCompletionObserver(
191 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:7:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
5 | }
6 |
7 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
8 | var awesomeButtonStyleTransitionContext: AwesomeButtonStyleTransitionContext? {
9 | get { self[AwesomeButtonStyleTransitionContextKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:83:18: error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
81 | @Environment(\.awesomeButtonThemeData) private var themeData
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
| `- error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
85 | #if canImport(UIKit)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:84:18: error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
| `- error: 'dynamicTypeSize' is only available in macOS 12.0 or newer
85 | #if canImport(UIKit)
86 | @Environment(\.awesomeButtonNativeControlContext) private var nativeControlContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:17:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
18 | private let beforeView: AnyView?
19 | private let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:18:27: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
18 | private let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
19 | private let afterView: AnyView?
20 | private let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:19:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
18 | private let beforeView: AnyView?
19 | private let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
20 | private let extraView: AnyView?
21 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:20:26: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
18 | private let beforeView: AnyView?
19 | private let afterView: AnyView?
20 | private let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
21 |
22 | /// Receives an accepted activation and, in progress mode, its one-shot completion handle.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:81:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
79 | public let onProgressEnd: (() -> Void)?
80 |
81 | @Environment(\.awesomeButtonThemeData) private var themeData
| `- error: 'Environment' is only available in macOS 10.15 or newer
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:82:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
80 |
81 | @Environment(\.awesomeButtonThemeData) private var themeData
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
| `- error: 'Environment' is only available in macOS 10.15 or newer
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:83:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
81 | @Environment(\.awesomeButtonThemeData) private var themeData
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
| `- error: 'Environment' is only available in macOS 10.15 or newer
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
85 | #if canImport(UIKit)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:84:4: error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
82 | @Environment(\.awesomeButtonStyleTransitionContext) private var styleTransitionContext
83 | @Environment(\.accessibilityReduceMotion) private var reduceMotion
84 | @Environment(\.dynamicTypeSize) private var dynamicTypeSize
| `- error: 'Environment' is only available in macOS 10.15 or newer
85 | #if canImport(UIKit)
86 | @Environment(\.awesomeButtonNativeControlContext) private var nativeControlContext
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:88:4: error: 'StateObject' is only available in macOS 11.0 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
86 | @Environment(\.awesomeButtonNativeControlContext) private var nativeControlContext
87 | #endif
88 | @StateObject private var controller = AwesomeButtonController()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
89 |
90 | /// Creates a button whose primary label is an optional string.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:101:13: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
89 |
90 | /// Creates a button whose primary label is an optional string.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | child: String? = nil,
93 | onPress: AwesomeButtonPressCallback? = nil,
:
99 | paddingTop: CGFloat? = nil,
100 | paddingBottom: CGFloat? = nil,
101 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
102 | after: AnyView? = nil,
103 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:102:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
89 |
90 | /// Creates a button whose primary label is an optional string.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | child: String? = nil,
93 | onPress: AwesomeButtonPressCallback? = nil,
:
100 | paddingBottom: CGFloat? = nil,
101 | before: AnyView? = nil,
102 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
103 | extra: AnyView? = nil,
104 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:103:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
89 |
90 | /// Creates a button whose primary label is an optional string.
91 | public init(
| `- note: add @available attribute to enclosing initializer
92 | child: String? = nil,
93 | onPress: AwesomeButtonPressCallback? = nil,
:
101 | before: AnyView? = nil,
102 | after: AnyView? = nil,
103 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
104 | stretch: Bool = false,
105 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:196:36: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
194 | onProgressStart: (() -> Void)? = nil,
195 | onProgressEnd: (() -> Void)? = nil,
196 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
197 | ) {
198 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:172:13: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
170 | paddingTop: CGFloat? = nil,
171 | paddingBottom: CGFloat? = nil,
172 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
173 | after: AnyView? = nil,
174 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:173:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
171 | paddingBottom: CGFloat? = nil,
172 | before: AnyView? = nil,
173 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
174 | extra: AnyView? = nil,
175 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:174:12: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
172 | before: AnyView? = nil,
173 | after: AnyView? = nil,
174 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
175 | stretch: Bool = false,
176 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:196:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
194 | onProgressStart: (() -> Void)? = nil,
195 | onProgressEnd: (() -> Void)? = nil,
196 | @ViewBuilder label: () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
197 | ) {
198 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:196:36: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
194 | onProgressStart: (() -> Void)? = nil,
195 | onProgressEnd: (() -> Void)? = nil,
196 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
197 | ) {
198 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:235:25: error: 'View' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
233 |
234 | /// The SwiftUI representation of the resolved button configuration.
235 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
236 | let normalizedThemeStyle =
237 | AwesomeButtonNormalization.style(themeData.style) ?? AwesomeButtonStyle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:199:22: error: 'AnyView' is only available in macOS 10.15 or newer
13 |
14 | /// A SwiftUI control with a raised face, native interaction ownership, and optional progress.
15 | public struct AwesomeButton: View {
| `- note: add @available attribute to enclosing struct
16 | private let childText: String?
17 | private let labelView: AnyView?
:
161 |
162 | /// Creates a button with arbitrary SwiftUI label content.
163 | public init(
| `- note: add @available attribute to enclosing initializer
164 | onPress: AwesomeButtonPressCallback? = nil,
165 | onLongPress: (() -> Void)? = nil,
:
197 | ) {
198 | self.childText = nil
199 | self.labelView = AnyView(label())
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
200 | self.beforeView = before
201 | self.afterView = after
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:281:28: error: cannot find 'nativeControlContext' in scope
279 | reduceMotion: reduceMotion,
280 | dynamicTypeSize: dynamicTypeSize,
281 | nativeControlBridge: nativeControlContext?.bridge,
| `- error: cannot find 'nativeControlContext' in scope
282 | externallyHighlighted: nativeControlContext?.externallyHighlighted ?? false
283 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:282:30: error: cannot find 'nativeControlContext' in scope
280 | dynamicTypeSize: dynamicTypeSize,
281 | nativeControlBridge: nativeControlContext?.bridge,
282 | externallyHighlighted: nativeControlContext?.externallyHighlighted ?? false
| `- error: cannot find 'nativeControlContext' in scope
283 | )
284 | return AwesomeButtonBody(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:136:26: error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
| `- error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
137 | externallyHighlighted: Bool = false
138 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:239:9: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
237 | AwesomeButtonNormalization.style(themeData.style) ?? AwesomeButtonStyle()
238 | let resolvedStyle = normalizedThemeStyle.merge(AwesomeButtonNormalization.style(style))
239 | let configuration = AwesomeButtonResolvedConfiguration(
| `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
240 | childText: childText,
241 | labelView: labelView,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:288:41: error: cannot infer contextual base in reference to member 'auto'
286 | configuration: configuration,
287 | targetWidth: controller.resolvedWidth
288 | ?? (configuration.widthMode == .auto ? configuration.height : configuration.width),
| `- error: cannot infer contextual base in reference to member 'auto'
289 | targetHeight: controller.resolvedHeight,
290 | targetPressProgress: controller.pressProgress
[29/31] Compiling SwiftAwesomeButton AwesomeButtonReleasePlanning.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:20:25: error: 'Alignment' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add @available attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
21 | switch self {
22 | case .center:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:55:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:56:19: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
57 | let afterView: AnyView?
58 | let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:57:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
58 | let extraView: AnyView?
59 | let onPress: AwesomeButtonPressCallback?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:58:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
58 | let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
59 | let onPress: AwesomeButtonPressCallback?
60 | let onLongPress: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:91:24: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
89 | let styleTransitionContext: AwesomeButtonStyleTransitionContext?
90 | let reduceMotion: Bool
91 | let dynamicTypeSize: DynamicTypeSize
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
92 | #if canImport(UIKit)
93 | let nativeControlBridge: AwesomeButtonNativeControlBridge?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:136:26: error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
| `- error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
137 | externallyHighlighted: Bool = false
138 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:99:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:100:17: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
101 | afterView: AnyView?,
102 | extraView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:101:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
102 | extraView: AnyView?,
103 | onPress: AwesomeButtonPressCallback?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:102:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
102 | extraView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
103 | onPress: AwesomeButtonPressCallback?,
104 | onLongPress: (() -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:135:22: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
:
133 | styleTransitionContext: AwesomeButtonStyleTransitionContext? = nil,
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
137 | externallyHighlighted: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:23:15: error: 'center' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add @available attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add @available attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | case .leading:
25 | return .leading
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:25:15: error: 'leading' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add @available attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add @available attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
24 | case .leading:
25 | return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:177:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
175 | self.reduceMotion = reduceMotion
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
178 | self.externallyHighlighted = externallyHighlighted
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:178:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
178 | self.externallyHighlighted = externallyHighlighted
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:87:74: error: 'Animation' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:88:4: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| `- note: add @available attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
| |- error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 |
[30/31] Compiling SwiftAwesomeButton AwesomeButtonResolvedConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:20:25: error: 'Alignment' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add @available attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
21 | switch self {
22 | case .center:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:55:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:56:19: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
57 | let afterView: AnyView?
58 | let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:57:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
58 | let extraView: AnyView?
59 | let onPress: AwesomeButtonPressCallback?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:58:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
58 | let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
59 | let onPress: AwesomeButtonPressCallback?
60 | let onLongPress: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:91:24: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
89 | let styleTransitionContext: AwesomeButtonStyleTransitionContext?
90 | let reduceMotion: Bool
91 | let dynamicTypeSize: DynamicTypeSize
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
92 | #if canImport(UIKit)
93 | let nativeControlBridge: AwesomeButtonNativeControlBridge?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:136:26: error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
| `- error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
137 | externallyHighlighted: Bool = false
138 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:99:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:100:17: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
101 | afterView: AnyView?,
102 | extraView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:101:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
102 | extraView: AnyView?,
103 | onPress: AwesomeButtonPressCallback?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:102:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
102 | extraView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
103 | onPress: AwesomeButtonPressCallback?,
104 | onLongPress: (() -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:135:22: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
:
133 | styleTransitionContext: AwesomeButtonStyleTransitionContext? = nil,
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
137 | externallyHighlighted: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:23:15: error: 'center' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add @available attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add @available attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | case .leading:
25 | return .leading
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:25:15: error: 'leading' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add @available attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add @available attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
24 | case .leading:
25 | return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:177:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
175 | self.reduceMotion = reduceMotion
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
178 | self.externallyHighlighted = externallyHighlighted
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:178:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
178 | self.externallyHighlighted = externallyHighlighted
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:87:74: error: 'Animation' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:88:4: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| `- note: add @available attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
| |- error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 |
[31/31] Compiling SwiftAwesomeButton AwesomeButtonShellGeometry.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:20:25: error: 'Alignment' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add @available attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
21 | switch self {
22 | case .center:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:55:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:56:19: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
57 | let afterView: AnyView?
58 | let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:57:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
58 | let extraView: AnyView?
59 | let onPress: AwesomeButtonPressCallback?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:58:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
58 | let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
59 | let onPress: AwesomeButtonPressCallback?
60 | let onLongPress: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:91:24: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
89 | let styleTransitionContext: AwesomeButtonStyleTransitionContext?
90 | let reduceMotion: Bool
91 | let dynamicTypeSize: DynamicTypeSize
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
92 | #if canImport(UIKit)
93 | let nativeControlBridge: AwesomeButtonNativeControlBridge?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:136:26: error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
| `- error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
137 | externallyHighlighted: Bool = false
138 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:99:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:100:17: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
101 | afterView: AnyView?,
102 | extraView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:101:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
102 | extraView: AnyView?,
103 | onPress: AwesomeButtonPressCallback?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:102:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
102 | extraView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
103 | onPress: AwesomeButtonPressCallback?,
104 | onLongPress: (() -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:135:22: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add @available attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add @available attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
:
133 | styleTransitionContext: AwesomeButtonStyleTransitionContext? = nil,
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
137 | externallyHighlighted: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:23:15: error: 'center' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add @available attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add @available attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | case .leading:
25 | return .leading
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:25:15: error: 'leading' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add @available attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add @available attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
24 | case .leading:
25 | return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:177:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
175 | self.reduceMotion = reduceMotion
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
178 | self.externallyHighlighted = externallyHighlighted
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:178:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
178 | self.externallyHighlighted = externallyHighlighted
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:87:74: error: 'Animation' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:88:4: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| `- note: add @available attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
| |- error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 |
BUILD FAILURE 6.1 macosSpm