Build Information
Failed to build swift-awesome-button, reference v1.0.0 (c296ea), with Swift 6.3 for macOS (SPM) on 23 Apr 2026 06:01:40 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
674 | withAnimation(sizeAnimation(duration: timing.widthDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
675 | resolvedWidth = targetWidth
676 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:675:25: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
673 | if animateText {
674 | withAnimation(sizeAnimation(duration: timing.widthDuration)) {
675 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
676 | }
677 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:678:21: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
676 | }
677 | } else {
678 | withAnimation(sizeAnimation()) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
679 | resolvedWidth = targetWidth
680 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:679:25: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
677 | } else {
678 | withAnimation(sizeAnimation()) {
679 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
680 | }
681 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:683:17: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
681 | }
682 | } else {
683 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
684 | }
685 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:697:21: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
695 | let workItem = DispatchWorkItem { [weak self] in
696 | guard let self, self.sizeRunID == runID else { return }
697 | self.displayedText = targetText
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
698 | }
699 | delayedTextWorkItem = workItem
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:706:17: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
704 | currentTextTarget = targetText
705 | if animateText {
706 | contentClipAlignment = .leading
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
707 | runStringTransition(
708 | from: sourceText,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:713:25: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
711 | onComplete: { [weak self] in
712 | guard let self, self.sizeRunID == runID, animateSize == false else { return }
713 | self.contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
714 | }
715 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:719:25: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
717 | guard let self, self.sizeRunID == runID else { return }
718 | if animateSize {
719 | withAnimation(sizeAnimation(duration: timing.widthDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
720 | self.resolvedWidth = targetWidth
721 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:720:29: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
718 | if animateSize {
719 | withAnimation(sizeAnimation(duration: timing.widthDuration)) {
720 | self.resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
721 | }
722 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:723:25: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
721 | }
722 | } else {
723 | self.resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
724 | }
725 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:732:25: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
730 | let resetWorkItem = DispatchWorkItem { [weak self] in
731 | guard let self, self.sizeRunID == runID else { return }
732 | self.contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
733 | }
734 | delayedClipAlignmentResetWorkItem = resetWorkItem
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:741:17: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
739 | }
740 | } else {
741 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
742 | displayedText = targetText
743 | if animateSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:742:17: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
740 | } else {
741 | contentClipAlignment = .center
742 | displayedText = targetText
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
743 | if animateSize {
744 | withAnimation(sizeAnimation()) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:744:21: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
742 | displayedText = targetText
743 | if animateSize {
744 | withAnimation(sizeAnimation()) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
745 | resolvedWidth = targetWidth
746 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:745:25: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
743 | if animateSize {
744 | withAnimation(sizeAnimation()) {
745 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
746 | }
747 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:748:21: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add '@available' attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
746 | }
747 | } else {
748 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
749 | }
750 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:755:9: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
752 | }
753 |
754 | private func syncTextTransitionState(_ configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add '@available' attribute to enclosing instance method
755 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
756 | switch resolveButtonTextUpdatePlan(
757 | textTransitionEnabled: configuration.textTransition,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:764:13: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
752 | }
753 |
754 | private func syncTextTransitionState(_ configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add '@available' attribute to enclosing instance method
755 | contentClipAlignment = .center
756 | switch resolveButtonTextUpdatePlan(
:
762 | case let .assign(nextText):
763 | currentTextTarget = nextText
764 | displayedText = nextText
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
765 | case .keep:
766 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:789:13: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
773 | }
774 |
775 | private func runStringTransition(
| `- note: add '@available' attribute to enclosing instance method
776 | from source: String,
777 | to target: String,
:
787 | ) { [weak self] current in
788 | guard let self, self.sizeRunID == runID else { return }
789 | self.displayedText = current
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
790 | } onComplete: { [weak self] in
791 | guard let self, self.sizeRunID == runID else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:792:13: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add '@available' attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
773 | }
774 |
775 | private func runStringTransition(
| `- note: add '@available' attribute to enclosing instance method
776 | from source: String,
777 | to target: String,
:
790 | } onComplete: { [weak self] in
791 | guard let self, self.sizeRunID == runID else { return }
792 | self.displayedText = target
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
793 | onComplete?()
794 | }
[12/22] Compiling SwiftAwesomeButton ButtonTouchSurface.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:11:48: error: 'Animation' is only available in macOS 10.15 or newer
8 | #endif
9 |
10 | internal extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
11 | func animation(duration: TimeInterval?) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | let resolvedDuration = duration ?? 0.14
13 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:116:19: error: 'Color' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
117 | toward endColor: Color? = nil,
118 | linear: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:117:22: error: 'Color' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
117 | toward endColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
118 | linear: Bool = false
119 | ) -> Color {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:119:6: error: 'Color' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
117 | toward endColor: Color? = nil,
118 | linear: Bool = false
119 | ) -> Color {
| `- error: 'Color' is only available in macOS 10.15 or newer
120 | let start = PlatformColor(startColor)
121 | let target = PlatformColor(endColor ?? (percentage < 0 ? .black : .white))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:154:40: error: 'Color' is only available in macOS 10.15 or newer
152 | }
153 |
154 | 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
155 | switch (from, to) {
156 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:154:54: error: 'Color' is only available in macOS 10.15 or newer
152 | }
153 |
154 | 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
155 | switch (from, to) {
156 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:154:84: error: 'Color' is only available in macOS 10.15 or newer
152 | }
153 |
154 | 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
155 | switch (from, to) {
156 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:259:34: error: 'Color' is only available in macOS 10.15 or newer
257 | }
258 |
259 | 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
260 | switch (lhs, rhs) {
261 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:259:49: error: 'Color' is only available in macOS 10.15 or newer
257 | }
258 |
259 | 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
260 | switch (lhs, rhs) {
261 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:290:30: error: 'Color' is only available in macOS 10.15 or newer
288 | }
289 |
290 | 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
291 | guard let color else {
292 | hasher.combine(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:335:33: error: 'Color' is only available in macOS 10.15 or newer
333 | }
334 |
335 | 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
336 | #if canImport(UIKit)
337 | return UIColor(color).cgColor
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:343:40: error: 'Color' is only available in macOS 10.15 or newer
341 | }
342 |
343 | private func rgbaComponents(for color: Color) -> (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
344 | #if canImport(UIKit)
345 | let platformColor = UIColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:362:35: error: 'Path' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | 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
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:410:44: error: 'InsettableShape' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
:
408 | }
409 |
410 | 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
411 | var copy = self
412 | copy.insetAmount += amount
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:15:21: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
8 | #endif
9 |
10 | internal extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
11 | func animation(duration: TimeInterval?) -> Animation {
| `- note: add '@available' attribute to enclosing instance method
12 | let resolvedDuration = duration ?? 0.14
13 | switch self {
14 | case .easeOutCubic:
15 | 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
16 | case .easeOut:
17 | return .easeOut(duration: resolvedDuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:17:21: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
8 | #endif
9 |
10 | internal extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
11 | func animation(duration: TimeInterval?) -> Animation {
| `- note: add '@available' attribute to enclosing instance method
12 | let resolvedDuration = duration ?? 0.14
13 | switch self {
:
15 | return .timingCurve(0.33, 1, 0.68, 1, duration: resolvedDuration)
16 | case .easeOut:
17 | return .easeOut(duration: resolvedDuration)
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | case .linear:
19 | return .linear(duration: resolvedDuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:19:21: error: 'linear(duration:)' is only available in macOS 10.15 or newer
8 | #endif
9 |
10 | internal extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
11 | func animation(duration: TimeInterval?) -> Animation {
| `- note: add '@available' attribute to enclosing instance method
12 | let resolvedDuration = duration ?? 0.14
13 | switch self {
:
17 | return .easeOut(duration: resolvedDuration)
18 | case .linear:
19 | return .linear(duration: resolvedDuration)
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:120:17: error: 'init(_:)' is only available in macOS 11.0 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
118 | linear: Bool = false
119 | ) -> Color {
120 | let start = PlatformColor(startColor)
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
121 | let target = PlatformColor(endColor ?? (percentage < 0 ? .black : .white))
122 | let ratio = abs(percentage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:121:18: error: 'init(_:)' is only available in macOS 11.0 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
119 | ) -> Color {
120 | let start = PlatformColor(startColor)
121 | 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
122 | let ratio = abs(percentage)
123 | let inverse = 1 - ratio
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:121:63: error: 'black' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
119 | ) -> Color {
120 | let start = PlatformColor(startColor)
121 | 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
122 | let ratio = abs(percentage)
123 | let inverse = 1 - ratio
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:121:72: error: 'white' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
119 | ) -> Color {
120 | let start = PlatformColor(startColor)
121 | 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
122 | let ratio = abs(percentage)
123 | let inverse = 1 - ratio
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:146:12: error: 'Color' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
144 |
145 | let alpha = (sa == 1 && ta == 1) ? 1 : ((inverse * sa) + (ratio * ta))
146 | return Color(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | red: mix(sr, tr),
148 | green: mix(sg, tg),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:146:12: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
144 |
145 | let alpha = (sa == 1 && ta == 1) ? 1 : ((inverse * sa) + (ratio * ta))
146 | return Color(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | red: mix(sr, tr),
148 | green: mix(sg, tg),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:159:39: error: 'clear' is only available in macOS 10.15 or newer
152 | }
153 |
154 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
155 | switch (from, to) {
156 | case (nil, nil):
157 | return nil
158 | case let (lhs?, nil):
159 | return interpolateColor(lhs, .clear, progress: progress)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | case let (nil, rhs?):
161 | return interpolateColor(.clear, rhs, progress: progress)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:161:34: error: 'clear' is only available in macOS 10.15 or newer
152 | }
153 |
154 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
155 | switch (from, to) {
156 | case (nil, nil):
:
159 | return interpolateColor(lhs, .clear, progress: progress)
160 | case let (nil, rhs?):
161 | return interpolateColor(.clear, rhs, progress: progress)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
162 | case let (lhs?, rhs?):
163 | let left = rgbaComponents(for: lhs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:166:16: error: 'Color' is only available in macOS 10.15 or newer
152 | }
153 |
154 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
155 | switch (from, to) {
156 | case (nil, nil):
:
164 | let right = rgbaComponents(for: rhs)
165 | let t = max(0, min(progress, 1))
166 | return Color(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | red: left.red + ((right.red - left.red) * t),
168 | green: left.green + ((right.green - left.green) * t),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:166:16: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
152 | }
153 |
154 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
155 | switch (from, to) {
156 | case (nil, nil):
:
164 | let right = rgbaComponents(for: rhs)
165 | let t = max(0, min(progress, 1))
166 | return Color(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | red: left.red + ((right.red - left.red) * t),
168 | green: left.green + ((right.green - left.green) * t),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:166:26: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
| `- error: 'Color' is only available in macOS 10.15 or newer
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:166:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | 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
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:167:32: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:167:38: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:167:44: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:168:29: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:168:35: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:168:41: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:169:21: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
| `- error: 'Color' is only available in macOS 10.15 or newer
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:169:21: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | 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
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:170:22: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:170:28: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:170:34: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:171:25: error: 'white' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
| `- error: 'white' is only available in macOS 10.15 or newer
172 | pressedOverlayColor: Color.black.opacity(0.08),
173 | foregroundColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:172:30: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'Color' is only available in macOS 10.15 or newer
173 | foregroundColor: .white,
174 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:172:36: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'black' is only available in macOS 10.15 or newer
173 | foregroundColor: .white,
174 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:172:42: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'opacity' is only available in macOS 10.15 or newer
173 | foregroundColor: .white,
174 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:173:27: error: 'white' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
173 | foregroundColor: .white,
| `- error: 'white' is only available in macOS 10.15 or newer
174 | textSize: 14,
175 | textLineHeight: 20,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:178:23: error: 'clear' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
176 | borderRadius: 18,
177 | borderWidth: 0,
178 | borderColor: .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
179 | raiseAmount: 6,
180 | contentGap: 10,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:184:34: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
182 | animationCurve: .easeOutCubic,
183 | pressInAnimationDuration: 0,
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
| `- error: 'Color' is only available in macOS 10.15 or newer
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:184:34: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
182 | animationCurve: .easeOutCubic,
183 | pressInAnimationDuration: 0,
184 | 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
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:185:29: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
183 | pressInAnimationDuration: 0,
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
| `- error: 'Color' is only available in macOS 10.15 or newer
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:185:29: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
183 | pressInAnimationDuration: 0,
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | 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
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:186:30: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'Color' is only available in macOS 10.15 or newer
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
188 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:186:36: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'black' is only available in macOS 10.15 or newer
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
188 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:186:42: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'opacity' is only available in macOS 10.15 or newer
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
188 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:187:34: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
| `- error: 'Color' is only available in macOS 10.15 or newer
188 | disabledBorderColor: .clear
189 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:187:34: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | 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
188 | disabledBorderColor: .clear
189 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:188:31: error: 'clear' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
188 | disabledBorderColor: .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
189 | )
190 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:339:12: error: 'init(_:)' is only available in macOS 11.0 or newer
333 | }
334 |
335 | private func cgColor(for color: Color) -> CGColor {
| `- note: add '@available' attribute to enclosing global function
336 | #if canImport(UIKit)
337 | return UIColor(color).cgColor
338 | #elseif canImport(AppKit)
339 | return NSColor(color).cgColor
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
340 | #endif
341 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:353:25: error: 'init(_:)' is only available in macOS 11.0 or newer
341 | }
342 |
343 | private func rgbaComponents(for color: Color) -> (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) {
| `- note: add '@available' attribute to enclosing global function
344 | #if canImport(UIKit)
345 | let platformColor = UIColor(color)
:
351 | return (red, green, blue, alpha)
352 | #elseif canImport(AppKit)
353 | let platformColor = NSColor(color).usingColorSpace(.deviceRGB) ?? .clear
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
354 | return (platformColor.redComponent, platformColor.greenComponent, platformColor.blueComponent, platformColor.alphaComponent)
355 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:372:20: error: 'Path' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
370 | let bottomLeft = min(min(radii.bottomLeading, height / 2), width / 2)
371 |
372 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
374 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:373:14: error: 'move(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
371 |
372 | var path = Path()
373 | 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
374 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
375 | path.addArc(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:374:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
372 | var path = Path()
373 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
374 | 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
375 | path.addArc(
376 | center: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY + topRight),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:375:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
373 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
374 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
375 | 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
376 | center: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY + topRight),
377 | radius: topRight,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:382:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
380 | clockwise: false
381 | )
382 | 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
383 | path.addArc(
384 | center: CGPoint(x: insetRect.maxX - bottomRight, y: insetRect.maxY - bottomRight),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:383:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
381 | )
382 | path.addLine(to: CGPoint(x: insetRect.maxX, y: insetRect.maxY - bottomRight))
383 | 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
384 | center: CGPoint(x: insetRect.maxX - bottomRight, y: insetRect.maxY - bottomRight),
385 | radius: bottomRight,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:390:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
388 | clockwise: false
389 | )
390 | 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
391 | path.addArc(
392 | center: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY - bottomLeft),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:391:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
389 | )
390 | path.addLine(to: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY))
391 | 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
392 | center: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY - bottomLeft),
393 | radius: bottomLeft,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:398:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
396 | clockwise: false
397 | )
398 | 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
399 | path.addArc(
400 | center: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY + topLeft),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:399:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
397 | )
398 | path.addLine(to: CGPoint(x: insetRect.minX, y: insetRect.minY + topLeft))
399 | 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
400 | center: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY + topLeft),
401 | radius: topLeft,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:406:14: error: 'closeSubpath()' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
404 | clockwise: false
405 | )
406 | path.closeSubpath()
| |- error: 'closeSubpath()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | return path
408 | }
[13/22] Compiling SwiftAwesomeButton ColorHelpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:11:48: error: 'Animation' is only available in macOS 10.15 or newer
8 | #endif
9 |
10 | internal extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
11 | func animation(duration: TimeInterval?) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | let resolvedDuration = duration ?? 0.14
13 | switch self {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:116:19: error: 'Color' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
117 | toward endColor: Color? = nil,
118 | linear: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:117:22: error: 'Color' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
117 | toward endColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
118 | linear: Bool = false
119 | ) -> Color {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:119:6: error: 'Color' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
117 | toward endColor: Color? = nil,
118 | linear: Bool = false
119 | ) -> Color {
| `- error: 'Color' is only available in macOS 10.15 or newer
120 | let start = PlatformColor(startColor)
121 | let target = PlatformColor(endColor ?? (percentage < 0 ? .black : .white))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:154:40: error: 'Color' is only available in macOS 10.15 or newer
152 | }
153 |
154 | 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
155 | switch (from, to) {
156 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:154:54: error: 'Color' is only available in macOS 10.15 or newer
152 | }
153 |
154 | 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
155 | switch (from, to) {
156 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:154:84: error: 'Color' is only available in macOS 10.15 or newer
152 | }
153 |
154 | 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
155 | switch (from, to) {
156 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:259:34: error: 'Color' is only available in macOS 10.15 or newer
257 | }
258 |
259 | 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
260 | switch (lhs, rhs) {
261 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:259:49: error: 'Color' is only available in macOS 10.15 or newer
257 | }
258 |
259 | 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
260 | switch (lhs, rhs) {
261 | case (nil, nil):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:290:30: error: 'Color' is only available in macOS 10.15 or newer
288 | }
289 |
290 | 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
291 | guard let color else {
292 | hasher.combine(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:335:33: error: 'Color' is only available in macOS 10.15 or newer
333 | }
334 |
335 | 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
336 | #if canImport(UIKit)
337 | return UIColor(color).cgColor
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:343:40: error: 'Color' is only available in macOS 10.15 or newer
341 | }
342 |
343 | private func rgbaComponents(for color: Color) -> (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing global function
344 | #if canImport(UIKit)
345 | let platformColor = UIColor(color)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:362:35: error: 'Path' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | 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
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:410:44: error: 'InsettableShape' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
:
408 | }
409 |
410 | 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
411 | var copy = self
412 | copy.insetAmount += amount
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:15:21: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
8 | #endif
9 |
10 | internal extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
11 | func animation(duration: TimeInterval?) -> Animation {
| `- note: add '@available' attribute to enclosing instance method
12 | let resolvedDuration = duration ?? 0.14
13 | switch self {
14 | case .easeOutCubic:
15 | 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
16 | case .easeOut:
17 | return .easeOut(duration: resolvedDuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:17:21: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
8 | #endif
9 |
10 | internal extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
11 | func animation(duration: TimeInterval?) -> Animation {
| `- note: add '@available' attribute to enclosing instance method
12 | let resolvedDuration = duration ?? 0.14
13 | switch self {
:
15 | return .timingCurve(0.33, 1, 0.68, 1, duration: resolvedDuration)
16 | case .easeOut:
17 | return .easeOut(duration: resolvedDuration)
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | case .linear:
19 | return .linear(duration: resolvedDuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:19:21: error: 'linear(duration:)' is only available in macOS 10.15 or newer
8 | #endif
9 |
10 | internal extension AwesomeButtonAnimationCurve {
| `- note: add '@available' attribute to enclosing extension
11 | func animation(duration: TimeInterval?) -> Animation {
| `- note: add '@available' attribute to enclosing instance method
12 | let resolvedDuration = duration ?? 0.14
13 | switch self {
:
17 | return .easeOut(duration: resolvedDuration)
18 | case .linear:
19 | return .linear(duration: resolvedDuration)
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:120:17: error: 'init(_:)' is only available in macOS 11.0 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
118 | linear: Bool = false
119 | ) -> Color {
120 | let start = PlatformColor(startColor)
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
121 | let target = PlatformColor(endColor ?? (percentage < 0 ? .black : .white))
122 | let ratio = abs(percentage)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:121:18: error: 'init(_:)' is only available in macOS 11.0 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
119 | ) -> Color {
120 | let start = PlatformColor(startColor)
121 | 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
122 | let ratio = abs(percentage)
123 | let inverse = 1 - ratio
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:121:63: error: 'black' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
119 | ) -> Color {
120 | let start = PlatformColor(startColor)
121 | 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
122 | let ratio = abs(percentage)
123 | let inverse = 1 - ratio
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:121:72: error: 'white' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
119 | ) -> Color {
120 | let start = PlatformColor(startColor)
121 | 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
122 | let ratio = abs(percentage)
123 | let inverse = 1 - ratio
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:146:12: error: 'Color' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
144 |
145 | let alpha = (sa == 1 && ta == 1) ? 1 : ((inverse * sa) + (ratio * ta))
146 | return Color(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | red: mix(sr, tr),
148 | green: mix(sg, tg),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:146:12: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
112 | }
113 |
114 | internal func blendColors(
| `- note: add '@available' attribute to enclosing global function
115 | _ percentage: CGFloat,
116 | _ startColor: Color,
:
144 |
145 | let alpha = (sa == 1 && ta == 1) ? 1 : ((inverse * sa) + (ratio * ta))
146 | return Color(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | red: mix(sr, tr),
148 | green: mix(sg, tg),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:159:39: error: 'clear' is only available in macOS 10.15 or newer
152 | }
153 |
154 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
155 | switch (from, to) {
156 | case (nil, nil):
157 | return nil
158 | case let (lhs?, nil):
159 | return interpolateColor(lhs, .clear, progress: progress)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
160 | case let (nil, rhs?):
161 | return interpolateColor(.clear, rhs, progress: progress)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:161:34: error: 'clear' is only available in macOS 10.15 or newer
152 | }
153 |
154 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
155 | switch (from, to) {
156 | case (nil, nil):
:
159 | return interpolateColor(lhs, .clear, progress: progress)
160 | case let (nil, rhs?):
161 | return interpolateColor(.clear, rhs, progress: progress)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
162 | case let (lhs?, rhs?):
163 | let left = rgbaComponents(for: lhs)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:166:16: error: 'Color' is only available in macOS 10.15 or newer
152 | }
153 |
154 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
155 | switch (from, to) {
156 | case (nil, nil):
:
164 | let right = rgbaComponents(for: rhs)
165 | let t = max(0, min(progress, 1))
166 | return Color(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | red: left.red + ((right.red - left.red) * t),
168 | green: left.green + ((right.green - left.green) * t),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:166:16: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
152 | }
153 |
154 | internal func interpolateColor(_ from: Color?, _ to: Color?, progress: CGFloat) -> Color? {
| `- note: add '@available' attribute to enclosing global function
155 | switch (from, to) {
156 | case (nil, nil):
:
164 | let right = rgbaComponents(for: rhs)
165 | let t = max(0, min(progress, 1))
166 | return Color(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | red: left.red + ((right.red - left.red) * t),
168 | green: left.green + ((right.green - left.green) * t),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:166:26: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
| `- error: 'Color' is only available in macOS 10.15 or newer
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:166:26: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | 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
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:167:32: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:167:38: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:167:44: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:168:29: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:168:35: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:168:41: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:169:21: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
| `- error: 'Color' is only available in macOS 10.15 or newer
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:169:21: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | 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
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:170:22: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
| `- error: 'Color' is only available in macOS 10.15 or newer
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:170:28: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
| `- error: 'black' is only available in macOS 10.15 or newer
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:170:34: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
168 | backgroundProgress: Color.black.opacity(0.15),
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
| `- error: 'opacity' is only available in macOS 10.15 or newer
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:171:25: error: 'white' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
169 | depthColor: Color(red: 0.114, green: 0.306, blue: 0.847),
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
| `- error: 'white' is only available in macOS 10.15 or newer
172 | pressedOverlayColor: Color.black.opacity(0.08),
173 | foregroundColor: .white,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:172:30: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'Color' is only available in macOS 10.15 or newer
173 | foregroundColor: .white,
174 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:172:36: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'black' is only available in macOS 10.15 or newer
173 | foregroundColor: .white,
174 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:172:42: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
170 | shadowColor: Color.black.opacity(0.15),
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
| `- error: 'opacity' is only available in macOS 10.15 or newer
173 | foregroundColor: .white,
174 | textSize: 14,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:173:27: error: 'white' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
171 | activityColor: .white,
172 | pressedOverlayColor: Color.black.opacity(0.08),
173 | foregroundColor: .white,
| `- error: 'white' is only available in macOS 10.15 or newer
174 | textSize: 14,
175 | textLineHeight: 20,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:178:23: error: 'clear' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
176 | borderRadius: 18,
177 | borderWidth: 0,
178 | borderColor: .clear,
| `- error: 'clear' is only available in macOS 10.15 or newer
179 | raiseAmount: 6,
180 | contentGap: 10,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:184:34: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
182 | animationCurve: .easeOutCubic,
183 | pressInAnimationDuration: 0,
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
| `- error: 'Color' is only available in macOS 10.15 or newer
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:184:34: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
182 | animationCurve: .easeOutCubic,
183 | pressInAnimationDuration: 0,
184 | 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
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:185:29: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
183 | pressInAnimationDuration: 0,
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
| `- error: 'Color' is only available in macOS 10.15 or newer
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:185:29: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
183 | pressInAnimationDuration: 0,
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | 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
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:186:30: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'Color' is only available in macOS 10.15 or newer
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
188 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:186:36: error: 'black' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'black' is only available in macOS 10.15 or newer
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
188 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:186:42: error: 'opacity' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
184 | disabledBackgroundColor: Color(red: 0.722, green: 0.776, blue: 0.859),
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
| `- error: 'opacity' is only available in macOS 10.15 or newer
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
188 | disabledBorderColor: .clear
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:187:34: error: 'Color' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
| `- error: 'Color' is only available in macOS 10.15 or newer
188 | disabledBorderColor: .clear
189 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:187:34: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
185 | disabledDepthColor: Color(red: 0.596, green: 0.663, blue: 0.761),
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | 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
188 | disabledBorderColor: .clear
189 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:188:31: error: 'clear' is only available in macOS 10.15 or newer
156 | }
157 |
158 | public struct AwesomeButtonThemeData {
| `- note: add '@available' attribute to enclosing struct
159 | public var style: AwesomeButtonStyle
160 |
:
163 | }
164 |
165 | public static let fallbackStyle = AwesomeButtonStyle(
| `- note: add '@available' attribute to enclosing static property
166 | backgroundColor: Color(red: 0.145, green: 0.388, blue: 0.922),
167 | backgroundPlaceholder: Color.black.opacity(0.15),
:
186 | disabledShadowColor: Color.black.opacity(0.10),
187 | disabledForegroundColor: Color(red: 0.973, green: 0.980, blue: 0.988),
188 | disabledBorderColor: .clear
| `- error: 'clear' is only available in macOS 10.15 or newer
189 | )
190 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:339:12: error: 'init(_:)' is only available in macOS 11.0 or newer
333 | }
334 |
335 | private func cgColor(for color: Color) -> CGColor {
| `- note: add '@available' attribute to enclosing global function
336 | #if canImport(UIKit)
337 | return UIColor(color).cgColor
338 | #elseif canImport(AppKit)
339 | return NSColor(color).cgColor
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
340 | #endif
341 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:353:25: error: 'init(_:)' is only available in macOS 11.0 or newer
341 | }
342 |
343 | private func rgbaComponents(for color: Color) -> (red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) {
| `- note: add '@available' attribute to enclosing global function
344 | #if canImport(UIKit)
345 | let platformColor = UIColor(color)
:
351 | return (red, green, blue, alpha)
352 | #elseif canImport(AppKit)
353 | let platformColor = NSColor(color).usingColorSpace(.deviceRGB) ?? .clear
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
354 | return (platformColor.redComponent, platformColor.greenComponent, platformColor.blueComponent, platformColor.alphaComponent)
355 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:372:20: error: 'Path' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
370 | let bottomLeft = min(min(radii.bottomLeading, height / 2), width / 2)
371 |
372 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
374 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:373:14: error: 'move(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
371 |
372 | var path = Path()
373 | 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
374 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
375 | path.addArc(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:374:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
372 | var path = Path()
373 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
374 | 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
375 | path.addArc(
376 | center: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY + topRight),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:375:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
373 | path.move(to: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY))
374 | path.addLine(to: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY))
375 | 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
376 | center: CGPoint(x: insetRect.maxX - topRight, y: insetRect.minY + topRight),
377 | radius: topRight,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:382:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
380 | clockwise: false
381 | )
382 | 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
383 | path.addArc(
384 | center: CGPoint(x: insetRect.maxX - bottomRight, y: insetRect.maxY - bottomRight),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:383:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
381 | )
382 | path.addLine(to: CGPoint(x: insetRect.maxX, y: insetRect.maxY - bottomRight))
383 | 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
384 | center: CGPoint(x: insetRect.maxX - bottomRight, y: insetRect.maxY - bottomRight),
385 | radius: bottomRight,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:390:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
388 | clockwise: false
389 | )
390 | 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
391 | path.addArc(
392 | center: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY - bottomLeft),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:391:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
389 | )
390 | path.addLine(to: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY))
391 | 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
392 | center: CGPoint(x: insetRect.minX + bottomLeft, y: insetRect.maxY - bottomLeft),
393 | radius: bottomLeft,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:398:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
396 | clockwise: false
397 | )
398 | 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
399 | path.addArc(
400 | center: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY + topLeft),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:399:14: error: 'addArc(center:radius:startAngle:endAngle:clockwise:transform:)' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
397 | )
398 | path.addLine(to: CGPoint(x: insetRect.minX, y: insetRect.minY + topLeft))
399 | 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
400 | center: CGPoint(x: insetRect.minX + topLeft, y: insetRect.minY + topLeft),
401 | radius: topLeft,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/ColorHelpers.swift:406:14: error: 'closeSubpath()' is only available in macOS 10.15 or newer
356 | }
357 |
358 | internal struct AwesomeRoundedRectangle: InsettableShape {
| `- note: add '@available' attribute to enclosing struct
359 | var radii: ResolvedCornerRadii
360 | var insetAmount: CGFloat = 0
361 |
362 | func path(in rect: CGRect) -> Path {
| `- note: add '@available' attribute to enclosing instance method
363 | let insetRect = rect.insetBy(dx: insetAmount, dy: insetAmount)
364 | let radii = radii.clamped
:
404 | clockwise: false
405 | )
406 | path.closeSubpath()
| |- error: 'closeSubpath()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | return path
408 | }
[14/22] Compiling SwiftAwesomeButton AwesomeButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:5:28: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
6 | private let beforeView: AnyView?
7 | private let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:6:29: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
6 | private let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
7 | private let afterView: AnyView?
8 | private let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:7:28: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
6 | private let beforeView: AnyView?
7 | private let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
8 | private let extraView: AnyView?
9 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:8:28: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
6 | private let beforeView: AnyView?
7 | private let afterView: AnyView?
8 | private let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | public let onPress: AwesomeButtonPressCallback?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:37:6: error: 'Environment' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
35 | public let onProgressEnd: (() -> Void)?
36 |
37 | @Environment(\.awesomeButtonThemeData) private var themeData
| `- error: 'Environment' is only available in macOS 10.15 or newer
38 | @StateObject private var controller = AwesomeButtonController()
39 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:38:6: error: 'StateObject' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
36 |
37 | @Environment(\.awesomeButtonThemeData) private var themeData
38 | @StateObject private var controller = AwesomeButtonController()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
39 |
40 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:50:17: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
38 | @StateObject private var controller = AwesomeButtonController()
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | child: String? = nil,
42 | onPress: AwesomeButtonPressCallback? = nil,
:
48 | paddingTop: CGFloat? = nil,
49 | paddingBottom: CGFloat? = nil,
50 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
51 | after: AnyView? = nil,
52 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:51:16: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
38 | @StateObject private var controller = AwesomeButtonController()
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | child: String? = nil,
42 | onPress: AwesomeButtonPressCallback? = nil,
:
49 | paddingBottom: CGFloat? = nil,
50 | before: AnyView? = nil,
51 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
52 | extra: AnyView? = nil,
53 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:52:16: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
38 | @StateObject private var controller = AwesomeButtonController()
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | child: String? = nil,
42 | onPress: AwesomeButtonPressCallback? = nil,
:
50 | before: AnyView? = nil,
51 | after: AnyView? = nil,
52 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
53 | stretch: Bool = false,
54 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:135:40: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
133 | onProgressStart: (() -> Void)? = nil,
134 | onProgressEnd: (() -> Void)? = nil,
135 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
136 | ) {
137 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:114:17: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
112 | paddingTop: CGFloat? = nil,
113 | paddingBottom: CGFloat? = nil,
114 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
115 | after: AnyView? = nil,
116 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:115:16: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
113 | paddingBottom: CGFloat? = nil,
114 | before: AnyView? = nil,
115 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
116 | extra: AnyView? = nil,
117 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:116:16: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
114 | before: AnyView? = nil,
115 | after: AnyView? = nil,
116 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
117 | stretch: Bool = false,
118 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:135:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
133 | onProgressStart: (() -> Void)? = nil,
134 | onProgressEnd: (() -> Void)? = nil,
135 | @ViewBuilder label: () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
136 | ) {
137 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:135:40: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
133 | onProgressStart: (() -> Void)? = nil,
134 | onProgressEnd: (() -> Void)? = nil,
135 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
136 | ) {
137 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:170:27: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
168 | }
169 |
170 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
171 | let resolvedStyle = themeData.style.merge(style)
172 | let configuration = AwesomeButtonResolvedConfiguration(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:138:26: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
136 | ) {
137 | self.childText = nil
138 | self.labelView = AnyView(label())
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | self.beforeView = before
140 | self.afterView = after
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:214:10: error: 'task(id:name:priority:file:line:_:)' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
168 | }
169 |
170 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
171 | let resolvedStyle = themeData.style.merge(style)
172 | let configuration = AwesomeButtonResolvedConfiguration(
:
212 | targetPressProgress: controller.pressProgress
213 | )
214 | .task(id: configuration.signature) {
| |- error: 'task(id:name:priority:file:line:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
215 | controller.update(configuration: configuration)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:217:10: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
168 | }
169 |
170 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
171 | let resolvedStyle = themeData.style.merge(style)
172 | let configuration = AwesomeButtonResolvedConfiguration(
:
215 | controller.update(configuration: configuration)
216 | }
217 | .onDisappear {
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | controller.cleanup()
219 | }
[15/22] Compiling SwiftAwesomeButton AwesomeButtonAutoWidthPlanning.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:5:28: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
6 | private let beforeView: AnyView?
7 | private let afterView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:6:29: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
6 | private let beforeView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
7 | private let afterView: AnyView?
8 | private let extraView: AnyView?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:7:28: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
6 | private let beforeView: AnyView?
7 | private let afterView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
8 | private let extraView: AnyView?
9 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:8:28: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
6 | private let beforeView: AnyView?
7 | private let afterView: AnyView?
8 | private let extraView: AnyView?
| `- error: 'AnyView' is only available in macOS 10.15 or newer
9 |
10 | public let onPress: AwesomeButtonPressCallback?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:37:6: error: 'Environment' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
35 | public let onProgressEnd: (() -> Void)?
36 |
37 | @Environment(\.awesomeButtonThemeData) private var themeData
| `- error: 'Environment' is only available in macOS 10.15 or newer
38 | @StateObject private var controller = AwesomeButtonController()
39 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:38:6: error: 'StateObject' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
36 |
37 | @Environment(\.awesomeButtonThemeData) private var themeData
38 | @StateObject private var controller = AwesomeButtonController()
| `- error: 'StateObject' is only available in macOS 11.0 or newer
39 |
40 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:50:17: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
38 | @StateObject private var controller = AwesomeButtonController()
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | child: String? = nil,
42 | onPress: AwesomeButtonPressCallback? = nil,
:
48 | paddingTop: CGFloat? = nil,
49 | paddingBottom: CGFloat? = nil,
50 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
51 | after: AnyView? = nil,
52 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:51:16: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
38 | @StateObject private var controller = AwesomeButtonController()
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | child: String? = nil,
42 | onPress: AwesomeButtonPressCallback? = nil,
:
49 | paddingBottom: CGFloat? = nil,
50 | before: AnyView? = nil,
51 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
52 | extra: AnyView? = nil,
53 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:52:16: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
38 | @StateObject private var controller = AwesomeButtonController()
39 |
40 | public init(
| `- note: add '@available' attribute to enclosing initializer
41 | child: String? = nil,
42 | onPress: AwesomeButtonPressCallback? = nil,
:
50 | before: AnyView? = nil,
51 | after: AnyView? = nil,
52 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
53 | stretch: Bool = false,
54 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:135:40: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
133 | onProgressStart: (() -> Void)? = nil,
134 | onProgressEnd: (() -> Void)? = nil,
135 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
136 | ) {
137 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:114:17: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
112 | paddingTop: CGFloat? = nil,
113 | paddingBottom: CGFloat? = nil,
114 | before: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
115 | after: AnyView? = nil,
116 | extra: AnyView? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:115:16: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
113 | paddingBottom: CGFloat? = nil,
114 | before: AnyView? = nil,
115 | after: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
116 | extra: AnyView? = nil,
117 | stretch: Bool = false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:116:16: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
114 | before: AnyView? = nil,
115 | after: AnyView? = nil,
116 | extra: AnyView? = nil,
| `- error: 'AnyView' is only available in macOS 10.15 or newer
117 | stretch: Bool = false,
118 | style: AwesomeButtonStyle? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:135:10: error: 'ViewBuilder' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
133 | onProgressStart: (() -> Void)? = nil,
134 | onProgressEnd: (() -> Void)? = nil,
135 | @ViewBuilder label: () -> some View
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
136 | ) {
137 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:135:40: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
133 | onProgressStart: (() -> Void)? = nil,
134 | onProgressEnd: (() -> Void)? = nil,
135 | @ViewBuilder label: () -> some View
| `- error: 'View' is only available in macOS 10.15 or newer
136 | ) {
137 | self.childText = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:170:27: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
168 | }
169 |
170 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
171 | let resolvedStyle = themeData.style.merge(style)
172 | let configuration = AwesomeButtonResolvedConfiguration(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:138:26: error: 'AnyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
103 | }
104 |
105 | public init(
| `- note: add '@available' attribute to enclosing initializer
106 | onPress: AwesomeButtonPressCallback? = nil,
107 | onLongPress: (() -> Void)? = nil,
:
136 | ) {
137 | self.childText = nil
138 | self.labelView = AnyView(label())
| |- error: 'AnyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | self.beforeView = before
140 | self.afterView = after
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:214:10: error: 'task(id:name:priority:file:line:_:)' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
168 | }
169 |
170 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
171 | let resolvedStyle = themeData.style.merge(style)
172 | let configuration = AwesomeButtonResolvedConfiguration(
:
212 | targetPressProgress: controller.pressProgress
213 | )
214 | .task(id: configuration.signature) {
| |- error: 'task(id:name:priority:file:line:_:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
215 | controller.update(configuration: configuration)
216 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButton.swift:217:10: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | public struct AwesomeButton: View {
| `- note: add '@available' attribute to enclosing struct
4 | private let childText: String?
5 | private let labelView: AnyView?
:
168 | }
169 |
170 | public var body: some View {
| `- note: add '@available' attribute to enclosing property
171 | let resolvedStyle = themeData.style.merge(style)
172 | let configuration = AwesomeButtonResolvedConfiguration(
:
215 | controller.update(configuration: configuration)
216 | }
217 | .onDisappear {
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
218 | controller.cleanup()
219 | }
[16/22] Compiling SwiftAwesomeButton AnimationUtilities.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:25:41: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | private struct AnimatableCompletionObserver: AnimatableModifier {
| `- note: add '@available' attribute to enclosing struct
4 | var targetValue: CGFloat
5 | var epsilon: CGFloat
:
23 | }
24 |
25 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
26 | content
27 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:49:15: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | private extension View {
| `- note: add '@available' attribute to enclosing extension
44 | func onAnimatableCompletion(
| `- note: add '@available' attribute to enclosing instance method
45 | of value: CGFloat,
46 | target targetValue: CGFloat,
47 | epsilon: CGFloat = 0.001,
48 | perform action: @escaping () -> Void
49 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
50 | modifier(
51 | AnimatableCompletionObserver(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:43:19: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
44 | func onAnimatableCompletion(
45 | of value: CGFloat,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:27:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | private struct AnimatableCompletionObserver: AnimatableModifier {
| `- note: add '@available' attribute to enclosing struct
4 | var targetValue: CGFloat
5 | var epsilon: CGFloat
:
23 | }
24 |
25 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
26 | content
27 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | notifyIfCompleted()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:50:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
41 | }
42 |
43 | private extension View {
| `- note: add '@available' attribute to enclosing extension
44 | func onAnimatableCompletion(
| `- note: add '@available' attribute to enclosing instance method
45 | of value: CGFloat,
46 | target targetValue: CGFloat,
:
48 | perform action: @escaping () -> Void
49 | ) -> some View {
50 | modifier(
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
51 | AnimatableCompletionObserver(
52 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:50:9: error: 'modifier' is only available in macOS 10.15 or newer
41 | }
42 |
43 | private extension View {
| `- note: add '@available' attribute to enclosing extension
44 | func onAnimatableCompletion(
| `- note: add '@available' attribute to enclosing instance method
45 | of value: CGFloat,
46 | target targetValue: CGFloat,
:
48 | perform action: @escaping () -> Void
49 | ) -> some View {
50 | modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | AnimatableCompletionObserver(
52 | observedValue: value,
[17/22] Compiling SwiftAwesomeButton AutoWidthMeasurement.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:25:41: error: 'View' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | private struct AnimatableCompletionObserver: AnimatableModifier {
| `- note: add '@available' attribute to enclosing struct
4 | var targetValue: CGFloat
5 | var epsilon: CGFloat
:
23 | }
24 |
25 | func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
26 | content
27 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:49:15: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | private extension View {
| `- note: add '@available' attribute to enclosing extension
44 | func onAnimatableCompletion(
| `- note: add '@available' attribute to enclosing instance method
45 | of value: CGFloat,
46 | target targetValue: CGFloat,
47 | epsilon: CGFloat = 0.001,
48 | perform action: @escaping () -> Void
49 | ) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
50 | modifier(
51 | AnimatableCompletionObserver(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:43:19: error: 'View' is only available in macOS 10.15 or newer
41 | }
42 |
43 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
44 | func onAnimatableCompletion(
45 | of value: CGFloat,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:27:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | private struct AnimatableCompletionObserver: AnimatableModifier {
| `- note: add '@available' attribute to enclosing struct
4 | var targetValue: CGFloat
5 | var epsilon: CGFloat
:
23 | }
24 |
25 | func body(content: Content) -> some View {
| `- note: add '@available' attribute to enclosing instance method
26 | content
27 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | notifyIfCompleted()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:50:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
41 | }
42 |
43 | private extension View {
| `- note: add '@available' attribute to enclosing extension
44 | func onAnimatableCompletion(
| `- note: add '@available' attribute to enclosing instance method
45 | of value: CGFloat,
46 | target targetValue: CGFloat,
:
48 | perform action: @escaping () -> Void
49 | ) -> some View {
50 | modifier(
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
51 | AnimatableCompletionObserver(
52 | observedValue: value,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AnimationUtilities.swift:50:9: error: 'modifier' is only available in macOS 10.15 or newer
41 | }
42 |
43 | private extension View {
| `- note: add '@available' attribute to enclosing extension
44 | func onAnimatableCompletion(
| `- note: add '@available' attribute to enclosing instance method
45 | of value: CGFloat,
46 | target targetValue: CGFloat,
:
48 | perform action: @escaping () -> Void
49 | ) -> some View {
50 | modifier(
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | AnimatableCompletionObserver(
52 | observedValue: value,
[18/22] Compiling SwiftAwesomeButton AwesomeButtonShellGeometry.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:82:74: error: 'Animation' is only available in macOS 10.15 or newer
80 | }
81 |
82 | 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
83 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:83:6: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
80 | }
81 |
82 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| `- note: add '@available' attribute to enclosing global function
83 | .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
84 | }
85 |
[19/22] Compiling SwiftAwesomeButton AwesomeButtonTextUpdatePlanning.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:82:74: error: 'Animation' is only available in macOS 10.15 or newer
80 | }
81 |
82 | 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
83 | .timingCurve(0.6, 0.3, 0.35, 0.9, duration: duration)
84 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonShellGeometry.swift:83:6: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
80 | }
81 |
82 | internal func sizeAnimation(duration: Double = sizeAnimationDuration) -> Animation {
| `- note: add '@available' attribute to enclosing global function
83 | .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
84 | }
85 |
[20/22] Compiling SwiftAwesomeButton AwesomeButtonReleasePlanning.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:20:27: 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:20: 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:21: 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:20: 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:20: 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:23:21: 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:21: 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 | }
[21/22] Compiling SwiftAwesomeButton AwesomeButtonResolvedConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonResolvedConfiguration.swift:20:27: 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:20: 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:21: 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:20: 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:20: 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:23:21: 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:21: 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 | }
[22/22] Compiling SwiftAwesomeButton UIKitWrappers.swift
BUILD FAILURE 6.3 macosSpm