Build Information
Failed to build swift-awesome-button, reference main (3b4fc9), with Swift 6.2 for macOS (SPM) on 2 Sep 2026 20:00:58 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
348 | /// The progress face color.
349 | public var backgroundProgress: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:349:34: 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?
:
347 | public var backgroundPlaceholder: Color?
348 | /// The progress face color.
349 | public var backgroundProgress: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
350 | /// The ambient shadow color.
351 | public var backgroundShadow: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:351:32: 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?
:
349 | public var backgroundProgress: Color?
350 | /// The ambient shadow color.
351 | public var backgroundShadow: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
352 | /// The inset border color.
353 | public var borderColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:353:27: 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?
:
351 | public var backgroundShadow: Color?
352 | /// The inset border color.
353 | public var borderColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
354 | /// The fallback radius for corners without a physical override.
355 | public var borderRadius: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:377: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?
:
375 | public var raiseLevel: CGFloat?
376 | /// The label and icon color.
377 | public var textColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
378 | /// The PostScript name of an optional custom label font.
379 | public var textFontFamily: String?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:399: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,
:
397 | paddingTop: CGFloat? = nil,
398 | raiseLevel: CGFloat? = nil,
399 | backgroundActive: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
400 | backgroundColor: Color? = nil,
401 | backgroundDarker: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:400:22: 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,
:
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 | }
[26/34] Compiling SwiftAwesomeButton Models.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:12:46: error: 'Animation' is only available in macOS 10.15 or newer
9 | #endif
10 |
11 | extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
12 | func animation(duration: TimeInterval?) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
13 | let resolvedDuration = duration ?? 0.14
14 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:125:17: error: 'Color' is only available in macOS 10.15 or newer
121 | }
122 |
123 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
124 | _ percentage: CGFloat,
125 | _ startColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
126 | toward endColor: Color? = nil,
127 | linear: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:126:20: error: 'Color' is only available in macOS 10.15 or newer
121 | }
122 |
123 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
124 | _ percentage: CGFloat,
125 | _ startColor: Color,
126 | toward endColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
127 | linear: Bool = false
128 | ) -> Color {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:128:6: error: 'Color' is only available in macOS 10.15 or newer
121 | }
122 |
123 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
124 | _ percentage: CGFloat,
125 | _ startColor: Color,
126 | toward endColor: Color? = nil,
127 | linear: Bool = false
128 | ) -> Color {
| `- error: 'Color' is only available in macOS 10.15 or newer
129 | let start = PlatformColor(startColor)
130 | let target = PlatformColor(endColor ?? (percentage < 0 ? .black : .white))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:163:40: error: 'Color' is only available in macOS 10.15 or newer
161 | }
162 |
163 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
164 | switch (from, to) {
165 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:163:54: error: 'Color' is only available in macOS 10.15 or newer
161 | }
162 |
163 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
164 | switch (from, to) {
165 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:163:84: error: 'Color' is only available in macOS 10.15 or newer
161 | }
162 |
163 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
164 | switch (from, to) {
165 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:303:34: error: 'Color' is only available in macOS 10.15 or newer
301 | }
302 |
303 | internal func colorsEqual(_ lhs: Color?, _ rhs: Color?) -> Bool {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
304 | switch (lhs, rhs) {
305 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:303:49: error: 'Color' is only available in macOS 10.15 or newer
301 | }
302 |
303 | internal func colorsEqual(_ lhs: Color?, _ rhs: Color?) -> Bool {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
304 | switch (lhs, rhs) {
305 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:339:30: error: 'Color' is only available in macOS 10.15 or newer
337 | }
338 |
339 | internal func combine(color: Color?, into hasher: inout Hasher) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
340 | guard let color else {
341 | hasher.combine(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:353:44: error: 'Color' is only available in macOS 10.15 or newer
351 | }
352 |
353 | internal func compositeColor(_ foreground: Color, over background: Color) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
354 | let foregroundComponents = rgbaComponents(for: foreground)
355 | let backgroundComponents = rgbaComponents(for: background)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:353:68: error: 'Color' is only available in macOS 10.15 or newer
351 | }
352 |
353 | internal func compositeColor(_ foreground: Color, over background: Color) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
354 | let foregroundComponents = rgbaComponents(for: foreground)
355 | let backgroundComponents = rgbaComponents(for: background)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:353:78: error: 'Color' is only available in macOS 10.15 or newer
351 | }
352 |
353 | internal func compositeColor(_ foreground: Color, over background: Color) -> Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
354 | let foregroundComponents = rgbaComponents(for: foreground)
355 | let backgroundComponents = rgbaComponents(for: background)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:378:22: error: 'Color' is only available in macOS 10.15 or newer
374 | }
375 |
376 | internal func resolvedPressedFaceColor(
| `- note: add '@available' attribute to enclosing global function
377 | style: AwesomeButtonStyle,
378 | restingBackground: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
379 | ) -> Color {
380 | if let backgroundActive = style.backgroundActive {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:379:6: error: 'Color' is only available in macOS 10.15 or newer
374 | }
375 |
376 | internal func resolvedPressedFaceColor(
| `- note: add '@available' attribute to enclosing global function
377 | style: AwesomeButtonStyle,
378 | restingBackground: Color
379 | ) -> Color {
| `- error: 'Color' is only available in macOS 10.15 or newer
380 | if let backgroundActive = style.backgroundActive {
381 | return backgroundActive
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:390:22: error: 'LayoutDirection' is only available in macOS 10.15 or newer
386 | }
387 |
388 | internal func resolvedCornerRadii(
| `- note: add '@available' attribute to enclosing global function
389 | style: AwesomeButtonStyle,
390 | layoutDirection _: LayoutDirection = .leftToRight
| `- error: 'LayoutDirection' is only available in macOS 10.15 or newer
391 | ) -> ResolvedCornerRadii {
392 | let radius = style.borderRadius ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:407:22: error: 'LayoutDirection' is only available in macOS 10.15 or newer
403 | }
404 |
405 | internal func resolvedCornerRadii(
| `- note: add '@available' attribute to enclosing global function
406 | style: ThemeButtonStyle,
407 | layoutDirection _: LayoutDirection = .leftToRight
| `- error: 'LayoutDirection' is only available in macOS 10.15 or newer
408 | ) -> ResolvedCornerRadii {
409 | let fallback = style.borderRadius ?? 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:433:33: error: 'Color' is only available in macOS 10.15 or newer
431 | }
432 |
433 | private func cgColor(for color: Color) -> CGColor {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
434 | #if canImport(UIKit)
435 | return UIColor(color).cgColor
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:441:40: error: 'Color' is only available in macOS 10.15 or newer
439 | }
440 |
441 | private func rgbaComponents(for color: Color) -> (
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
442 | red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat
443 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:469:32: error: 'LayoutDirectionBehavior' is only available in macOS 14.0 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
467 | // iOS version and in both layout directions.
468 | @available(iOS 17.0, *)
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
| | `- error: 'LayoutDirectionBehavior' is only available in macOS 14.0 or newer
| `- note: add '@available' attribute to enclosing property
470 |
471 | func path(in rect: CGRect) -> Path {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:471:33: error: 'Path' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:519:42: error: 'InsettableShape' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
517 | }
518 |
519 | func inset(by amount: CGFloat) -> some InsettableShape {
| | `- error: 'InsettableShape' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
520 | var copy = self
521 | copy.insetAmount += amount
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:16:15: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
9 | #endif
10 |
11 | extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
12 | func animation(duration: TimeInterval?) -> Animation {
| `- note: add '@available' attribute to enclosing instance method
13 | let resolvedDuration = duration ?? 0.14
14 | switch self {
15 | case .easeOutCubic:
16 | return .timingCurve(0.33, 1, 0.68, 1, duration: resolvedDuration)
| |- error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | case .easeOut:
18 | return .easeOut(duration: resolvedDuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:18:15: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
9 | #endif
10 |
11 | extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
12 | func animation(duration: TimeInterval?) -> Animation {
| `- note: add '@available' attribute to enclosing instance method
13 | let resolvedDuration = duration ?? 0.14
14 | switch self {
:
16 | return .timingCurve(0.33, 1, 0.68, 1, duration: resolvedDuration)
17 | case .easeOut:
18 | return .easeOut(duration: resolvedDuration)
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | case .linear:
20 | return .linear(duration: resolvedDuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:20:15: error: 'linear(duration:)' is only available in macOS 10.15 or newer
9 | #endif
10 |
11 | extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
12 | func animation(duration: TimeInterval?) -> Animation {
| `- note: add '@available' attribute to enclosing instance method
13 | let resolvedDuration = duration ?? 0.14
14 | switch self {
:
18 | return .easeOut(duration: resolvedDuration)
19 | case .linear:
20 | return .linear(duration: resolvedDuration)
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | }
22 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:129:15: error: 'init(_:)' is only available in macOS 11.0 or newer
121 | }
122 |
123 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
124 | _ percentage: CGFloat,
125 | _ startColor: Color,
:
127 | linear: Bool = false
128 | ) -> Color {
129 | let start = PlatformColor(startColor)
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
130 | let target = PlatformColor(endColor ?? (percentage < 0 ? .black : .white))
131 | let ratio = abs(percentage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:130:16: error: 'init(_:)' is only available in macOS 11.0 or newer
121 | }
122 |
123 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
124 | _ percentage: CGFloat,
125 | _ startColor: Color,
:
128 | ) -> Color {
129 | let start = PlatformColor(startColor)
130 | let target = PlatformColor(endColor ?? (percentage < 0 ? .black : .white))
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
131 | let ratio = abs(percentage)
132 | let inverse = 1 - ratio
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:130:61: error: 'black' is only available in macOS 10.15 or newer
121 | }
122 |
123 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
124 | _ percentage: CGFloat,
125 | _ startColor: Color,
:
128 | ) -> Color {
129 | let start = PlatformColor(startColor)
130 | let target = PlatformColor(endColor ?? (percentage < 0 ? .black : .white))
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
131 | let ratio = abs(percentage)
132 | let inverse = 1 - ratio
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:130:70: error: 'white' is only available in macOS 10.15 or newer
121 | }
122 |
123 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
124 | _ percentage: CGFloat,
125 | _ startColor: Color,
:
128 | ) -> Color {
129 | let start = PlatformColor(startColor)
130 | let target = PlatformColor(endColor ?? (percentage < 0 ? .black : .white))
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
131 | let ratio = abs(percentage)
132 | let inverse = 1 - ratio
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:155:10: error: 'Color' is only available in macOS 10.15 or newer
121 | }
122 |
123 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
124 | _ percentage: CGFloat,
125 | _ startColor: Color,
:
153 |
154 | let alpha = (sa == 1 && ta == 1) ? 1 : ((inverse * sa) + (ratio * ta))
155 | return Color(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | red: mix(sr, tr),
157 | green: mix(sg, tg),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:155:10: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
121 | }
122 |
123 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
124 | _ percentage: CGFloat,
125 | _ startColor: Color,
:
153 |
154 | let alpha = (sa == 1 && ta == 1) ? 1 : ((inverse * sa) + (ratio * ta))
155 | return Color(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
156 | red: mix(sr, tr),
157 | green: mix(sg, tg),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:168:35: error: 'clear' is only available in macOS 10.15 or newer
161 | }
162 |
163 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
164 | switch (from, to) {
165 | case (nil, nil):
166 | return nil
167 | case (let lhs?, nil):
168 | return interpolateColor(lhs, .clear, progress: progress)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | case (nil, let rhs?):
170 | return interpolateColor(.clear, rhs, progress: progress)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:170:30: error: 'clear' is only available in macOS 10.15 or newer
161 | }
162 |
163 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
164 | switch (from, to) {
165 | case (nil, nil):
:
168 | return interpolateColor(lhs, .clear, progress: progress)
169 | case (nil, let rhs?):
170 | return interpolateColor(.clear, rhs, progress: progress)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
171 | case (let lhs?, let rhs?):
172 | let left = rgbaComponents(for: lhs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:175:12: error: 'Color' is only available in macOS 10.15 or newer
161 | }
162 |
163 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
164 | switch (from, to) {
165 | case (nil, nil):
:
173 | let right = rgbaComponents(for: rhs)
174 | let t = max(0, min(progress, 1))
175 | return Color(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
176 | red: left.red + ((right.red - left.red) * t),
177 | green: left.green + ((right.green - left.green) * t),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:175:12: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
161 | }
162 |
163 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
164 | switch (from, to) {
165 | case (nil, nil):
:
173 | let right = rgbaComponents(for: rhs)
174 | let t = max(0, min(progress, 1))
175 | return Color(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
176 | red: left.red + ((right.red - left.red) * t),
177 | green: left.green + ((right.green - left.green) * t),
/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/ColorHelpers.swift:359:13: error: 'clear' is only available in macOS 10.15 or newer
351 | }
352 |
353 | internal func compositeColor(_ foreground: Color, over background: Color) -> Color {
| `- note: add '@available' attribute to enclosing global function
354 | let foregroundComponents = rgbaComponents(for: foreground)
355 | let backgroundComponents = rgbaComponents(for: background)
:
357 | foregroundComponents.alpha + (backgroundComponents.alpha * (1 - foregroundComponents.alpha))
358 | guard outputAlpha > 0 else {
359 | return .clear
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 | }
361 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:368:10: error: 'Color' is only available in macOS 10.15 or newer
351 | }
352 |
353 | internal func compositeColor(_ foreground: Color, over background: Color) -> Color {
| `- note: add '@available' attribute to enclosing global function
354 | let foregroundComponents = rgbaComponents(for: foreground)
355 | let backgroundComponents = rgbaComponents(for: background)
:
366 | }
367 |
368 | return Color(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | red: composite(foregroundComponents.red, backgroundComponents.red),
370 | green: composite(foregroundComponents.green, backgroundComponents.green),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:368:10: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
351 | }
352 |
353 | internal func compositeColor(_ foreground: Color, over background: Color) -> Color {
| `- note: add '@available' attribute to enclosing global function
354 | let foregroundComponents = rgbaComponents(for: foreground)
355 | let backgroundComponents = rgbaComponents(for: background)
:
366 | }
367 |
368 | return Color(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
369 | red: composite(foregroundComponents.red, backgroundComponents.red),
370 | green: composite(foregroundComponents.green, backgroundComponents.green),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:437:12: error: 'init(_:)' is only available in macOS 11.0 or newer
431 | }
432 |
433 | private func cgColor(for color: Color) -> CGColor {
| `- note: add '@available' attribute to enclosing global function
434 | #if canImport(UIKit)
435 | return UIColor(color).cgColor
436 | #elseif canImport(AppKit)
437 | return NSColor(color).cgColor
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
438 | #endif
439 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:453:25: error: 'init(_:)' is only available in macOS 11.0 or newer
439 | }
440 |
441 | private func rgbaComponents(for color: Color) -> (
| `- note: add '@available' attribute to enclosing global function
442 | red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat
443 | ) {
:
451 | return (red, green, blue, alpha)
452 | #elseif canImport(AppKit)
453 | let platformColor = NSColor(color).usingColorSpace(.deviceRGB) ?? .clear
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
454 | return (
455 | platformColor.redComponent, platformColor.greenComponent, platformColor.blueComponent,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:481:16: error: 'Path' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
479 | let bottomLeft = min(min(radii.bottomLeft, height / 2), width / 2)
480 |
481 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
482 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
483 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:482:10: error: 'move(to:)' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
480 |
481 | var path = Path()
482 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
483 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
484 | path.addArc(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:483:10: error: 'addLine(to:)' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
481 | var path = Path()
482 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
483 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
484 | path.addArc(
485 | center: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY + topRight),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:484:10: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
482 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
483 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
484 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
485 | center: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY + topRight),
486 | radius: topRight,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:491:10: error: 'addLine(to:)' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
489 | clockwise: false
490 | )
491 | path.addLine(to: CGPoint(x: insetRect.maxX, y: insetRect.maxY - bottomRight))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
492 | path.addArc(
493 | center: CGPoint(x: insetRect.maxX - bottomRight, y: insetRect.maxY - bottomRight),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:492:10: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
490 | )
491 | path.addLine(to: CGPoint(x: insetRect.maxX, y: insetRect.maxY - bottomRight))
492 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
493 | center: CGPoint(x: insetRect.maxX - bottomRight, y: insetRect.maxY - bottomRight),
494 | radius: bottomRight,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:499:10: error: 'addLine(to:)' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
497 | clockwise: false
498 | )
499 | path.addLine(to: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
500 | path.addArc(
501 | center: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY - bottomLeft),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:500:10: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
498 | )
499 | path.addLine(to: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY))
500 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
501 | center: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY - bottomLeft),
502 | radius: bottomLeft,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:507:10: error: 'addLine(to:)' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
505 | clockwise: false
506 | )
507 | path.addLine(to: CGPoint(x: insetRect.minX, y: insetRect.minY + topLeft))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
508 | path.addArc(
509 | center: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY + topLeft),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:508:10: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
506 | )
507 | path.addLine(to: CGPoint(x: insetRect.minX, y: insetRect.minY + topLeft))
508 | path.addArc(
| |- error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
509 | center: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY + topLeft),
510 | radius: topLeft,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:515:10: error: 'closeSubpath()' is only available in macOS 10.15 or newer
459 | }
460 |
461 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
462 | var radii: ResolvedCornerRadii
463 | var insetAmount: CGFloat = 0
:
469 | var layoutDirectionBehavior: LayoutDirectionBehavior { .fixed }
470 |
471 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
472 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
473 | let radii = radii.clamped
:
513 | clockwise: false
514 | )
515 | path.closeSubpath()
| |- error: 'closeSubpath()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
516 | return path
517 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:15:27: error: 'Animation' 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 {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
16 | switch self {
17 | case .easeOutCubic:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:44:31: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
45 | /// The face color while pressed.
46 | public var backgroundActive: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:46:32: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
45 | /// The face color while pressed.
46 | public var backgroundActive: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
47 | /// The face color used for placeholder content.
48 | public var backgroundPlaceholder: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:48:37: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
46 | public var backgroundActive: Color?
47 | /// The face color used for placeholder content.
48 | public var backgroundPlaceholder: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
49 | /// The face color used while progress is active.
50 | public var backgroundProgress: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:50:34: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
48 | public var backgroundPlaceholder: Color?
49 | /// The face color used while progress is active.
50 | public var backgroundProgress: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
51 | /// The lower depth-layer color.
52 | public var depthColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:52:26: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
50 | public var backgroundProgress: Color?
51 | /// The lower depth-layer color.
52 | public var depthColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
53 | /// The ambient shadow color.
54 | public var shadowColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:54:27: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
52 | public var depthColor: Color?
53 | /// The ambient shadow color.
54 | public var shadowColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
55 | /// The spinner and progress-indicator color.
56 | public var activityColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:56:29: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
54 | public var shadowColor: Color?
55 | /// The spinner and progress-indicator color.
56 | public var activityColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
57 | /// The overlay color blended over the face while pressed.
58 | public var pressedOverlayColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:58:35: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
56 | public var activityColor: Color?
57 | /// The overlay color blended over the face while pressed.
58 | public var pressedOverlayColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
59 | /// The label and icon color.
60 | public var foregroundColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:60:31: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
58 | public var pressedOverlayColor: Color?
59 | /// The label and icon color.
60 | public var foregroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
61 | /// The label font size in points.
62 | public var textSize: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:80:27: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
78 | public var borderWidth: CGFloat?
79 | /// The inset border color.
80 | public var borderColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
81 | /// The resting separation between the face and depth layers.
82 | public var raiseAmount: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:94:39: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
92 | public var pressInAnimationDuration: TimeInterval?
93 | /// The disabled face color.
94 | public var disabledBackgroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
95 | /// The disabled depth-layer color.
96 | public var disabledDepthColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:96:34: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
94 | public var disabledBackgroundColor: Color?
95 | /// The disabled depth-layer color.
96 | public var disabledDepthColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
97 | /// The disabled shadow color.
98 | public var disabledShadowColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:98:35: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
96 | public var disabledDepthColor: Color?
97 | /// The disabled shadow color.
98 | public var disabledShadowColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
99 | /// The disabled label and icon color.
100 | public var disabledForegroundColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:100:39: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
98 | public var disabledShadowColor: Color?
99 | /// The disabled label and icon color.
100 | public var disabledForegroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
101 | /// The disabled border color.
102 | public var disabledBorderColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:102:35: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
100 | public var disabledForegroundColor: Color?
101 | /// The disabled border color.
102 | public var disabledBorderColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:106:22: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
107 | backgroundActive: Color? = nil,
108 | backgroundPlaceholder: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:107:23: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
108 | backgroundPlaceholder: Color? = nil,
109 | backgroundProgress: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:108:28: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
108 | backgroundPlaceholder: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
109 | backgroundProgress: Color? = nil,
110 | depthColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:109:25: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
108 | backgroundPlaceholder: Color? = nil,
109 | backgroundProgress: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
110 | depthColor: Color? = nil,
111 | shadowColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:110:17: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
108 | backgroundPlaceholder: Color? = nil,
109 | backgroundProgress: Color? = nil,
110 | depthColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
111 | shadowColor: Color? = nil,
112 | activityColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:111:18: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
109 | backgroundProgress: Color? = nil,
110 | depthColor: Color? = nil,
111 | shadowColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
112 | activityColor: Color? = nil,
113 | pressedOverlayColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:112:20: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
110 | depthColor: Color? = nil,
111 | shadowColor: Color? = nil,
112 | activityColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
113 | pressedOverlayColor: Color? = nil,
114 | foregroundColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:113:26: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
111 | shadowColor: Color? = nil,
112 | activityColor: Color? = nil,
113 | pressedOverlayColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
114 | foregroundColor: Color? = nil,
115 | textSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:114:22: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
112 | activityColor: Color? = nil,
113 | pressedOverlayColor: Color? = nil,
114 | foregroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
115 | textSize: CGFloat? = nil,
116 | textLineHeight: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:124:18: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
122 | borderTopRightRadius: CGFloat? = nil,
123 | borderWidth: CGFloat? = nil,
124 | borderColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
125 | raiseAmount: CGFloat? = nil,
126 | contentGap: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:130:30: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
128 | animationCurve: AwesomeButtonAnimationCurve? = nil,
129 | pressInAnimationDuration: TimeInterval? = nil,
130 | disabledBackgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
131 | disabledDepthColor: Color? = nil,
132 | disabledShadowColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:131:25: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
129 | pressInAnimationDuration: TimeInterval? = nil,
130 | disabledBackgroundColor: Color? = nil,
131 | disabledDepthColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
132 | disabledShadowColor: Color? = nil,
133 | disabledForegroundColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:132:26: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
130 | disabledBackgroundColor: Color? = nil,
131 | disabledDepthColor: Color? = nil,
132 | disabledShadowColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
133 | disabledForegroundColor: Color? = nil,
134 | disabledBorderColor: Color? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:133:30: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
131 | disabledDepthColor: Color? = nil,
132 | disabledShadowColor: Color? = nil,
133 | disabledForegroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
134 | disabledBorderColor: Color? = nil
135 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:134:26: error: 'Color' is only available in macOS 10.15 or newer
40 |
41 | /// Optional visual overrides for a direct or resolved themed button.
42 | public struct AwesomeButtonStyle: Sendable {
| `- note: add '@available' attribute to enclosing struct
43 | /// The resting face color.
44 | public var backgroundColor: Color?
:
103 |
104 | /// Creates a sparse style whose non-`nil` values override lower-precedence sources.
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | backgroundColor: Color? = nil,
107 | backgroundActive: Color? = nil,
:
132 | disabledShadowColor: Color? = nil,
133 | disabledForegroundColor: Color? = nil,
134 | disabledBorderColor: Color? = nil
| `- error: 'Color' is only available in macOS 10.15 or newer
135 | ) {
136 | self.backgroundColor = backgroundColor
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:256:11: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
254 | }
255 |
256 | extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
257 | public var awesomeButtonThemeData: AwesomeButtonThemeData {
258 | get { self[AwesomeButtonThemeDataKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:265:79: error: 'View' 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 {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
266 | environment(\.awesomeButtonThemeData, themeData)
267 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:263:11: error: 'View' is only available in macOS 10.15 or newer
261 | }
262 |
263 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- 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 {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:339:29: 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?
| `- error: 'Color' is only available in macOS 10.15 or newer
340 | /// The face color while pressed.
341 | public var backgroundActive: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:341:32: 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?
340 | /// The face color while pressed.
341 | public var backgroundActive: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
342 | /// The resting face color.
343 | public var backgroundColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:343:31: 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?
:
341 | public var backgroundActive: Color?
342 | /// The resting face color.
343 | public var backgroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
344 | /// The lower depth-layer color.
345 | public var backgroundDarker: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:345:32: 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?
:
343 | public var backgroundColor: Color?
344 | /// The lower depth-layer color.
345 | public var backgroundDarker: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
346 | /// The placeholder face color.
347 | public var backgroundPlaceholder: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:347:37: 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?
:
345 | public var backgroundDarker: Color?
346 | /// The placeholder face color.
347 | public var backgroundPlaceholder: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
348 | /// The progress face color.
349 | public var backgroundProgress: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:349:34: 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?
:
347 | public var backgroundPlaceholder: Color?
348 | /// The progress face color.
349 | public var backgroundProgress: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
350 | /// The ambient shadow color.
351 | public var backgroundShadow: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:351:32: 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?
:
349 | public var backgroundProgress: Color?
350 | /// The ambient shadow color.
351 | public var backgroundShadow: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
352 | /// The inset border color.
353 | public var borderColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:353:27: 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?
:
351 | public var backgroundShadow: Color?
352 | /// The inset border color.
353 | public var borderColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
354 | /// The fallback radius for corners without a physical override.
355 | public var borderRadius: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:377: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?
:
375 | public var raiseLevel: CGFloat?
376 | /// The label and icon color.
377 | public var textColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
378 | /// The PostScript name of an optional custom label font.
379 | public var textFontFamily: String?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:399: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,
:
397 | paddingTop: CGFloat? = nil,
398 | raiseLevel: CGFloat? = nil,
399 | backgroundActive: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
400 | backgroundColor: Color? = nil,
401 | backgroundDarker: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:400:22: 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,
:
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 | }
[27/34] Compiling SwiftAwesomeButton AwesomeButtonReleasePlanning.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:20:25: error: 'Alignment' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add '@available' attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
21 | switch self {
22 | case .center:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:55:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:56:19: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
57 | let afterView: AnyView?
58 | let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:57:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
58 | let extraView: AnyView?
59 | let onPress: AwesomeButtonPressCallback?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:58:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
58 | let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
59 | let onPress: AwesomeButtonPressCallback?
60 | let onLongPress: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:91:24: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
89 | let styleTransitionContext: AwesomeButtonStyleTransitionContext?
90 | let reduceMotion: Bool
91 | let dynamicTypeSize: DynamicTypeSize
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
92 | #if canImport(UIKit)
93 | let nativeControlBridge: AwesomeButtonNativeControlBridge?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:136:26: error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
| `- error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
137 | externallyHighlighted: Bool = false
138 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:99:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:100:17: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
101 | afterView: AnyView?,
102 | extraView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:101:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
102 | extraView: AnyView?,
103 | onPress: AwesomeButtonPressCallback?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:102:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
102 | extraView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
103 | onPress: AwesomeButtonPressCallback?,
104 | onLongPress: (() -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:135:22: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
:
133 | styleTransitionContext: AwesomeButtonStyleTransitionContext? = nil,
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
137 | externallyHighlighted: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:23:15: error: 'center' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add '@available' attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | case .leading:
25 | return .leading
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:25:15: error: 'leading' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add '@available' attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
24 | case .leading:
25 | return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:177:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
175 | self.reduceMotion = reduceMotion
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
178 | self.externallyHighlighted = externallyHighlighted
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:178:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
178 | self.externallyHighlighted = externallyHighlighted
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:87:74: error: 'Animation' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:88:4: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| `- note: add '@available' attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
| |- error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 |
[28/34] Compiling SwiftAwesomeButton AwesomeButtonResolvedConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:20:25: error: 'Alignment' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add '@available' attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
21 | switch self {
22 | case .center:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:55:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:56:19: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
57 | let afterView: AnyView?
58 | let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:57:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
58 | let extraView: AnyView?
59 | let onPress: AwesomeButtonPressCallback?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:58:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
58 | let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
59 | let onPress: AwesomeButtonPressCallback?
60 | let onLongPress: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:91:24: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
89 | let styleTransitionContext: AwesomeButtonStyleTransitionContext?
90 | let reduceMotion: Bool
91 | let dynamicTypeSize: DynamicTypeSize
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
92 | #if canImport(UIKit)
93 | let nativeControlBridge: AwesomeButtonNativeControlBridge?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:136:26: error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
| `- error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
137 | externallyHighlighted: Bool = false
138 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:99:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:100:17: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
101 | afterView: AnyView?,
102 | extraView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:101:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
102 | extraView: AnyView?,
103 | onPress: AwesomeButtonPressCallback?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:102:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
102 | extraView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
103 | onPress: AwesomeButtonPressCallback?,
104 | onLongPress: (() -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:135:22: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
:
133 | styleTransitionContext: AwesomeButtonStyleTransitionContext? = nil,
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
137 | externallyHighlighted: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:23:15: error: 'center' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add '@available' attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | case .leading:
25 | return .leading
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:25:15: error: 'leading' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add '@available' attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
24 | case .leading:
25 | return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:177:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
175 | self.reduceMotion = reduceMotion
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
178 | self.externallyHighlighted = externallyHighlighted
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:178:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
178 | self.externallyHighlighted = externallyHighlighted
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:87:74: error: 'Animation' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:88:4: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| `- note: add '@available' attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
| |- error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 |
[29/34] Compiling SwiftAwesomeButton AwesomeButtonShellGeometry.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:20:25: error: 'Alignment' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add '@available' attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| | `- error: 'Alignment' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
21 | switch self {
22 | case .center:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:55:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:56:19: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
57 | let afterView: AnyView?
58 | let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:57:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
58 | let extraView: AnyView?
59 | let onPress: AwesomeButtonPressCallback?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:58:18: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
56 | let beforeView: AnyView?
57 | let afterView: AnyView?
58 | let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
59 | let onPress: AwesomeButtonPressCallback?
60 | let onLongPress: (() -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:91:24: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
89 | let styleTransitionContext: AwesomeButtonStyleTransitionContext?
90 | let reduceMotion: Bool
91 | let dynamicTypeSize: DynamicTypeSize
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
92 | #if canImport(UIKit)
93 | let nativeControlBridge: AwesomeButtonNativeControlBridge?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:136:26: error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
| `- error: cannot find type 'AwesomeButtonNativeControlBridge' in scope
137 | externallyHighlighted: Bool = false
138 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:99:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:100:17: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
101 | afterView: AnyView?,
102 | extraView: AnyView?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:101:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
102 | extraView: AnyView?,
103 | onPress: AwesomeButtonPressCallback?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:102:16: error: 'AnyView' is only available in macOS 10.15 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
100 | beforeView: AnyView?,
101 | afterView: AnyView?,
102 | extraView: AnyView?,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
103 | onPress: AwesomeButtonPressCallback?,
104 | onLongPress: (() -> Void)?,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:135:22: error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
51 | }
52 |
53 | internal struct AwesomeButtonResolvedConfiguration {
| `- note: add '@available' attribute to enclosing struct
54 | let childText: String?
55 | let labelView: AnyView?
:
95 | #endif
96 |
97 | init(
| `- note: add '@available' attribute to enclosing initializer
98 | childText: String?,
99 | labelView: AnyView?,
:
133 | styleTransitionContext: AwesomeButtonStyleTransitionContext? = nil,
134 | reduceMotion: Bool = false,
135 | dynamicTypeSize: DynamicTypeSize = .large,
| `- error: 'DynamicTypeSize' is only available in macOS 12.0 or newer
136 | nativeControlBridge: AwesomeButtonNativeControlBridge? = nil,
137 | externallyHighlighted: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:23:15: error: 'center' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add '@available' attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | case .leading:
25 | return .leading
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:25:15: error: 'leading' is only available in macOS 10.15 or newer
14 | }
15 |
16 | internal enum ContentClipAlignment: Equatable, Hashable {
| `- note: add '@available' attribute to enclosing enum
17 | case center
18 | case leading
19 |
20 | var swiftUIAlignment: Alignment {
| `- note: add '@available' attribute to enclosing property
21 | switch self {
22 | case .center:
23 | return .center
24 | case .leading:
25 | return .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:177:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
175 | self.reduceMotion = reduceMotion
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'nativeControlBridge'
178 | self.externallyHighlighted = externallyHighlighted
179 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:178:10: error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
176 | self.dynamicTypeSize = dynamicTypeSize
177 | self.nativeControlBridge = nativeControlBridge
178 | self.externallyHighlighted = externallyHighlighted
| `- error: value of type 'AwesomeButtonResolvedConfiguration' has no member 'externallyHighlighted'
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:87:74: error: 'Animation' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:88:4: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
85 | }
86 |
87 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| `- note: add '@available' attribute to enclosing global function
88 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
| |- error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | }
90 |
[30/34] Compiling SwiftAwesomeButton AwesomeButtonNativeControlBridge.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:121:11: error: 'MainActor' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
119 | let handle = AwesomeButtonProgressHandle { [weak self] callback in
120 | if Thread.isMainThread {
121 | MainActor.assumeIsolated {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self?.acceptCompletion(callback, generation: generation)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:121:21: error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
119 | let handle = AwesomeButtonProgressHandle { [weak self] callback in
120 | if Thread.isMainThread {
121 | MainActor.assumeIsolated {
| |- error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self?.acceptCompletion(callback, generation: generation)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:126:13: error: 'MainActor' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
124 | } else {
125 | DispatchQueue.main.sync {
126 | MainActor.assumeIsolated {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | self?.acceptCompletion(callback, generation: generation)
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:126:23: error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
124 | } else {
125 | DispatchQueue.main.sync {
126 | MainActor.assumeIsolated {
| |- error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | self?.acceptCompletion(callback, generation: generation)
128 | }
[31/34] Compiling SwiftAwesomeButton AwesomeButtonNormalization.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:121:11: error: 'MainActor' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
119 | let handle = AwesomeButtonProgressHandle { [weak self] callback in
120 | if Thread.isMainThread {
121 | MainActor.assumeIsolated {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self?.acceptCompletion(callback, generation: generation)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:121:21: error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
119 | let handle = AwesomeButtonProgressHandle { [weak self] callback in
120 | if Thread.isMainThread {
121 | MainActor.assumeIsolated {
| |- error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self?.acceptCompletion(callback, generation: generation)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:126:13: error: 'MainActor' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
124 | } else {
125 | DispatchQueue.main.sync {
126 | MainActor.assumeIsolated {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | self?.acceptCompletion(callback, generation: generation)
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:126:23: error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
124 | } else {
125 | DispatchQueue.main.sync {
126 | MainActor.assumeIsolated {
| |- error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | self?.acceptCompletion(callback, generation: generation)
128 | }
[32/34] Compiling SwiftAwesomeButton AwesomeButtonProgressOwner.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:121:11: error: 'MainActor' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
119 | let handle = AwesomeButtonProgressHandle { [weak self] callback in
120 | if Thread.isMainThread {
121 | MainActor.assumeIsolated {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self?.acceptCompletion(callback, generation: generation)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:121:21: error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
119 | let handle = AwesomeButtonProgressHandle { [weak self] callback in
120 | if Thread.isMainThread {
121 | MainActor.assumeIsolated {
| |- error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
122 | self?.acceptCompletion(callback, generation: generation)
123 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:126:13: error: 'MainActor' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
124 | } else {
125 | DispatchQueue.main.sync {
126 | MainActor.assumeIsolated {
| |- error: 'MainActor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | self?.acceptCompletion(callback, generation: generation)
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonProgressOwner.swift:126:23: error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
55 |
56 | @MainActor
57 | internal final class AwesomeButtonProgressOwner {
| `- note: add '@available' attribute to enclosing class
58 | private weak var sink: AwesomeButtonControllerCommandSink?
59 | private var deferredActivationWorkItem: DispatchWorkItem?
:
84 | }
85 |
86 | func start(
| `- note: add '@available' attribute to enclosing instance method
87 | input: AwesomeButtonProgressInput,
88 | physicalLifecycle: Bool
:
124 | } else {
125 | DispatchQueue.main.sync {
126 | MainActor.assumeIsolated {
| |- error: 'assumeIsolated(_:file:line:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | self?.acceptCompletion(callback, generation: generation)
128 | }
[33/34] Compiling SwiftAwesomeButton UIKitHostingSupport.swift
[34/34] Compiling SwiftAwesomeButton resource_bundle_accessor.swift
BUILD FAILURE 6.2 macosSpm