Build Information
Failed to build swift-awesome-button, reference v1.1.0 (f20e17), with Swift 6.2 for macOS (SPM) on 31 Aug 2026 19:21:13 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
| `- note: add '@available' attribute to enclosing struct
338 | /// The spinner and progress-indicator color.
339 | public var activityColor: Color?
:
386 |
387 | /// Creates sparse theme values that participate in precedence resolution.
388 | public init(
| `- note: add '@available' attribute to enclosing initializer
389 | borderRadius: CGFloat? = nil,
390 | borderBottomLeftRadius: CGFloat? = nil,
:
398 | raiseLevel: CGFloat? = nil,
399 | backgroundActive: Color? = nil,
400 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
401 | backgroundDarker: Color? = nil,
402 | backgroundPlaceholder: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:401:23: error: 'Color' is only available in macOS 10.15 or newer
335 |
336 | /// Sparse visual and geometry values stored by a theme variant.
337 | public struct ThemeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
338 | /// The spinner and progress-indicator color.
339 | public var activityColor: Color?
:
386 |
387 | /// Creates sparse theme values that participate in precedence resolution.
388 | public init(
| `- note: add '@available' attribute to enclosing initializer
389 | borderRadius: CGFloat? = nil,
390 | borderBottomLeftRadius: CGFloat? = nil,
:
399 | backgroundActive: Color? = nil,
400 | backgroundColor: Color? = nil,
401 | backgroundDarker: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
402 | backgroundPlaceholder: Color? = nil,
403 | backgroundProgress: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:402:28: error: 'Color' is only available in macOS 10.15 or newer
335 |
336 | /// Sparse visual and geometry values stored by a theme variant.
337 | public struct ThemeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
338 | /// The spinner and progress-indicator color.
339 | public var activityColor: Color?
:
386 |
387 | /// Creates sparse theme values that participate in precedence resolution.
388 | public init(
| `- note: add '@available' attribute to enclosing initializer
389 | borderRadius: CGFloat? = nil,
390 | borderBottomLeftRadius: CGFloat? = nil,
:
400 | backgroundColor: Color? = nil,
401 | backgroundDarker: Color? = nil,
402 | backgroundPlaceholder: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
403 | backgroundProgress: Color? = nil,
404 | backgroundShadow: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:403:25: error: 'Color' is only available in macOS 10.15 or newer
335 |
336 | /// Sparse visual and geometry values stored by a theme variant.
337 | public struct ThemeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
338 | /// The spinner and progress-indicator color.
339 | public var activityColor: Color?
:
386 |
387 | /// Creates sparse theme values that participate in precedence resolution.
388 | public init(
| `- note: add '@available' attribute to enclosing initializer
389 | borderRadius: CGFloat? = nil,
390 | borderBottomLeftRadius: CGFloat? = nil,
:
401 | backgroundDarker: Color? = nil,
402 | backgroundPlaceholder: Color? = nil,
403 | backgroundProgress: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
404 | backgroundShadow: Color? = nil,
405 | textColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:404:23: error: 'Color' is only available in macOS 10.15 or newer
335 |
336 | /// Sparse visual and geometry values stored by a theme variant.
337 | public struct ThemeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
338 | /// The spinner and progress-indicator color.
339 | public var activityColor: Color?
:
386 |
387 | /// Creates sparse theme values that participate in precedence resolution.
388 | public init(
| `- note: add '@available' attribute to enclosing initializer
389 | borderRadius: CGFloat? = nil,
390 | borderBottomLeftRadius: CGFloat? = nil,
:
402 | backgroundPlaceholder: Color? = nil,
403 | backgroundProgress: Color? = nil,
404 | backgroundShadow: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
405 | textColor: Color? = nil,
406 | borderWidth: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:405:16: error: 'Color' is only available in macOS 10.15 or newer
335 |
336 | /// Sparse visual and geometry values stored by a theme variant.
337 | public struct ThemeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
338 | /// The spinner and progress-indicator color.
339 | public var activityColor: Color?
:
386 |
387 | /// Creates sparse theme values that participate in precedence resolution.
388 | public init(
| `- note: add '@available' attribute to enclosing initializer
389 | borderRadius: CGFloat? = nil,
390 | borderBottomLeftRadius: CGFloat? = nil,
:
403 | backgroundProgress: Color? = nil,
404 | backgroundShadow: Color? = nil,
405 | textColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
406 | borderWidth: CGFloat? = nil,
407 | borderColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:407:18: error: 'Color' is only available in macOS 10.15 or newer
335 |
336 | /// Sparse visual and geometry values stored by a theme variant.
337 | public struct ThemeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
338 | /// The spinner and progress-indicator color.
339 | public var activityColor: Color?
:
386 |
387 | /// Creates sparse theme values that participate in precedence resolution.
388 | public init(
| `- note: add '@available' attribute to enclosing initializer
389 | borderRadius: CGFloat? = nil,
390 | borderBottomLeftRadius: CGFloat? = nil,
:
405 | textColor: Color? = nil,
406 | borderWidth: CGFloat? = nil,
407 | borderColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
408 | activityColor: Color? = nil,
409 | textFontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:408:20: error: 'Color' is only available in macOS 10.15 or newer
335 |
336 | /// Sparse visual and geometry values stored by a theme variant.
337 | public struct ThemeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
338 | /// The spinner and progress-indicator color.
339 | public var activityColor: Color?
:
386 |
387 | /// Creates sparse theme values that participate in precedence resolution.
388 | public init(
| `- note: add '@available' attribute to enclosing initializer
389 | borderRadius: CGFloat? = nil,
390 | borderBottomLeftRadius: CGFloat? = nil,
:
406 | borderWidth: CGFloat? = nil,
407 | borderColor: Color? = nil,
408 | activityColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
409 | textFontFamily: String? = nil,
410 | textLineHeight: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:502:26: error: 'Color' is only available in macOS 10.15 or newer
496 |
497 | /// A complete theme family containing variant and size records.
498 | public struct ThemeDefinition: Sendable {
| `- note: add '@available' attribute to enclosing struct
499 | /// The user-facing theme title.
500 | public var title: String
501 | /// The recommended showcase background color.
502 | public var background: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
503 | /// The recommended showcase foreground color.
504 | public var color: Color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:504:21: error: 'Color' is only available in macOS 10.15 or newer
496 |
497 | /// A complete theme family containing variant and size records.
498 | public struct ThemeDefinition: Sendable {
| `- note: add '@available' attribute to enclosing struct
499 | /// The user-facing theme title.
500 | public var title: String
:
502 | public var background: Color
503 | /// The recommended showcase foreground color.
504 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
505 | /// Variant-specific values keyed by semantic variant.
506 | public var buttons: [ButtonVariant: ThemeButtonStyle]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:513:17: error: 'Color' is only available in macOS 10.15 or newer
496 |
497 | /// A complete theme family containing variant and size records.
498 | public struct ThemeDefinition: Sendable {
| `- note: add '@available' attribute to enclosing struct
499 | /// The user-facing theme title.
500 | public var title: String
:
509 |
510 | /// Creates a complete theme family.
511 | public init(
| `- note: add '@available' attribute to enclosing initializer
512 | title: String,
513 | background: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
514 | color: Color,
515 | buttons: [ButtonVariant: ThemeButtonStyle],
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:514:12: error: 'Color' is only available in macOS 10.15 or newer
496 |
497 | /// A complete theme family containing variant and size records.
498 | public struct ThemeDefinition: Sendable {
| `- note: add '@available' attribute to enclosing struct
499 | /// The user-facing theme title.
500 | public var title: String
:
509 |
510 | /// Creates a complete theme family.
511 | public init(
| `- note: add '@available' attribute to enclosing initializer
512 | title: String,
513 | background: Color,
514 | color: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
515 | buttons: [ButtonVariant: ThemeButtonStyle],
516 | size: [ButtonSize: ThemeSizeStyle]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:531:26: error: 'Color' is only available in macOS 10.15 or newer
525 |
526 | /// A theme family enriched with registry navigation metadata.
527 | public struct RegisteredThemeDefinition: Sendable {
| `- note: add '@available' attribute to enclosing struct
528 | /// The user-facing theme title.
529 | public var title: String
530 | /// The recommended showcase background color.
531 | public var background: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
532 | /// The recommended showcase foreground color.
533 | public var color: Color
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:533:21: error: 'Color' is only available in macOS 10.15 or newer
525 |
526 | /// A theme family enriched with registry navigation metadata.
527 | public struct RegisteredThemeDefinition: Sendable {
| `- note: add '@available' attribute to enclosing struct
528 | /// The user-facing theme title.
529 | public var title: String
:
531 | public var background: Color
532 | /// The recommended showcase foreground color.
533 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
534 | /// Variant-specific theme values.
535 | public var buttons: [ButtonVariant: ThemeButtonStyle]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:548:17: error: 'Color' is only available in macOS 10.15 or newer
525 |
526 | /// A theme family enriched with registry navigation metadata.
527 | public struct RegisteredThemeDefinition: Sendable {
| `- note: add '@available' attribute to enclosing struct
528 | /// The user-facing theme title.
529 | public var title: String
:
544 |
545 | /// Creates a registry result with deterministic navigation metadata.
546 | public init(
| `- note: add '@available' attribute to enclosing initializer
547 | title: String,
548 | background: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
549 | color: Color,
550 | buttons: [ButtonVariant: ThemeButtonStyle],
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:549:12: error: 'Color' is only available in macOS 10.15 or newer
525 |
526 | /// A theme family enriched with registry navigation metadata.
527 | public struct RegisteredThemeDefinition: Sendable {
| `- note: add '@available' attribute to enclosing struct
528 | /// The user-facing theme title.
529 | public var title: String
:
544 |
545 | /// Creates a registry result with deterministic navigation metadata.
546 | public init(
| `- note: add '@available' attribute to enclosing initializer
547 | title: String,
548 | background: Color,
549 | color: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
550 | buttons: [ButtonVariant: ThemeButtonStyle],
551 | size: [ButtonSize: ThemeSizeStyle],
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:18:15: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
5 |
6 | /// Curves available for press-down and direct style transitions.
7 | public enum AwesomeButtonAnimationCurve: String, CaseIterable, Sendable {
| `- note: add '@available' attribute to enclosing enum
8 | /// A cubic ease-out curve with a fast response and soft arrival.
9 | case easeOutCubic
:
13 | case linear
14 |
15 | internal var animation: Animation {
| `- note: add '@available' attribute to enclosing property
16 | switch self {
17 | case .easeOutCubic:
18 | return .timingCurve(0.33, 1, 0.68, 1, duration: 0.14)
| |- error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | case .easeOut:
20 | return .easeOut(duration: 0.14)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:20:15: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
5 |
6 | /// Curves available for press-down and direct style transitions.
7 | public enum AwesomeButtonAnimationCurve: String, CaseIterable, Sendable {
| `- note: add '@available' attribute to enclosing enum
8 | /// A cubic ease-out curve with a fast response and soft arrival.
9 | case easeOutCubic
:
13 | case linear
14 |
15 | internal var animation: Animation {
| `- note: add '@available' attribute to enclosing property
16 | switch self {
17 | case .easeOutCubic:
18 | return .timingCurve(0.33, 1, 0.68, 1, duration: 0.14)
19 | case .easeOut:
20 | return .easeOut(duration: 0.14)
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | case .linear:
22 | return .linear(duration: 0.14)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:22:15: error: 'linear(duration:)' is only available in macOS 10.15 or newer
5 |
6 | /// Curves available for press-down and direct style transitions.
7 | public enum AwesomeButtonAnimationCurve: String, CaseIterable, Sendable {
| `- note: add '@available' attribute to enclosing enum
8 | /// A cubic ease-out curve with a fast response and soft arrival.
9 | case easeOutCubic
:
13 | case linear
14 |
15 | internal var animation: Animation {
| `- note: add '@available' attribute to enclosing property
16 | switch self {
17 | case .easeOutCubic:
:
20 | return .easeOut(duration: 0.14)
21 | case .linear:
22 | return .linear(duration: 0.14)
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:266:5: error: 'environment' is only available in macOS 10.15 or newer
261 | }
262 |
263 | extension View {
| `- note: add '@available' attribute to enclosing extension
264 | /// Supplies direct-button style defaults to this view hierarchy.
265 | public func awesomeButtonTheme(_ themeData: AwesomeButtonThemeData) -> some View {
| `- note: add '@available' attribute to enclosing instance method
266 | environment(\.awesomeButtonThemeData, themeData)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
267 | }
268 | }
[30/34] Compiling SwiftAwesomeButton AnimationUtilities.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: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
[31/34] 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: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
[32/34] 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: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
[33/34] Compiling SwiftAwesomeButton UIKitHostingSupport.swift
[34/34] Compiling SwiftAwesomeButton resource_bundle_accessor.swift
BUILD FAILURE 6.2 macosSpm