Build Information
Failed to build swift-awesome-button, reference v1.0.0 (c296ea), with Swift 6.2 for macOS (SPM) on 23 Apr 2026 06:01:05 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
115 | let height: CGFloat
116 | let animated: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:118:20: error: 'View' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:119:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
121 | let placeholderHeight = min(height, proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:119:24: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
121 | let placeholderHeight = min(height, proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:119:24: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
121 | let placeholderHeight = min(height, proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:119:24: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
121 | let placeholderHeight = min(height, proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:13: error: 'ZStack' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:128:17: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
126 |
127 | ZStack {
128 | Rectangle()
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
129 | .fill(tint)
130 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:128:17: error: 'Rectangle' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
126 |
127 | ZStack {
128 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
129 | .fill(tint)
130 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:129:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
127 | ZStack {
128 | Rectangle()
129 | .fill(tint)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
130 |
131 | if canAnimate {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:21: error: 'TimelineView' is only available in macOS 12.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- error: 'TimelineView' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:21: error: 'init(_:content:)' is only available in macOS 12.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- error: 'init(_:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:35: error: 'animation' is only available in macOS 12.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- error: 'animation' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:46: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:46: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:25: error: 'ZStack' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:25: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:44: error: 'leading' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:53: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:145:33: error: 'Rectangle' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
143 | ZStack(alignment: .leading) {
144 | if segment.width > 0 {
145 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | .fill(Color.black.opacity(0.2))
147 | .frame(width: segment.width, height: placeholderHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:146:38: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
144 | if segment.width > 0 {
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:146:43: error: 'Color' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
144 | if segment.width > 0 {
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:146:49: error: 'black' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
144 | if segment.width > 0 {
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:146:55: error: 'opacity' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
144 | if segment.width > 0 {
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:147:38: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
147 | .frame(width: segment.width, height: placeholderHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | .offset(x: segment.leadingX)
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:148:38: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
146 | .fill(Color.black.opacity(0.2))
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | }
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:144:50: error: 'buildIf' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
142 |
143 | ZStack(alignment: .leading) {
144 | if segment.width > 0 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:149:29: error: 'buildIf' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
149 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
150 | }
151 | .frame(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:53: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:151:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
149 | }
150 | }
151 | .frame(
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | width: placeholderWidth,
153 | height: placeholderHeight,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:154:41: error: 'leading' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
152 | width: placeholderWidth,
153 | height: placeholderHeight,
154 | alignment: .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | )
156 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:157:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
155 | )
156 | }
157 | .frame(width: placeholderWidth, height: placeholderHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | }
159 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:131:31: error: 'buildIf' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
129 | .fill(tint)
130 |
131 | if canAnimate {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
132 | TimelineView(.animation) { context in
133 | let phase = placeholderLoopPhase(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:158:17: error: 'buildIf' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
156 | }
157 | .frame(width: placeholderWidth, height: placeholderHeight)
158 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
159 | }
160 | .frame(width: placeholderWidth, height: placeholderHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:160:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
158 | }
159 | }
160 | .frame(width: placeholderWidth, height: placeholderHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | .frame(maxWidth: .infinity, maxHeight: .infinity)
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:161:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
159 | }
160 | .frame(width: placeholderWidth, height: placeholderHeight)
161 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
162 | }
163 | }
[19/22] Compiling SwiftAwesomeButton PlaceholderShimmer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:10:29: error: 'Animation' is only available in macOS 10.15 or newer
3 | public typealias AwesomeButtonPressCallback = (AwesomeButtonProgressHandle?) -> Void
4 |
5 | public enum AwesomeButtonAnimationCurve: String, CaseIterable, Sendable {
| `- note: add '@available' attribute to enclosing enum
6 | case easeOutCubic
7 | case easeOut
8 | case linear
9 |
10 | internal var animation: Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
11 | switch self {
12 | case .easeOutCubic:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:35:33: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
36 | public var backgroundActive: Color?
37 | public var backgroundPlaceholder: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:36:34: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
37 | public var backgroundPlaceholder: Color?
38 | public var backgroundProgress: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:37:39: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
37 | public var backgroundPlaceholder: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
38 | public var backgroundProgress: Color?
39 | public var depthColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:38:36: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
37 | public var backgroundPlaceholder: Color?
38 | public var backgroundProgress: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
39 | public var depthColor: Color?
40 | public var shadowColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:39:28: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
37 | public var backgroundPlaceholder: Color?
38 | public var backgroundProgress: Color?
39 | public var depthColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
40 | public var shadowColor: Color?
41 | public var activityColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:40:29: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
38 | public var backgroundProgress: Color?
39 | public var depthColor: Color?
40 | public var shadowColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
41 | public var activityColor: Color?
42 | public var pressedOverlayColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:41:31: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
39 | public var depthColor: Color?
40 | public var shadowColor: Color?
41 | public var activityColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
42 | public var pressedOverlayColor: Color?
43 | public var foregroundColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:42:37: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
40 | public var shadowColor: Color?
41 | public var activityColor: Color?
42 | public var pressedOverlayColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
43 | public var foregroundColor: Color?
44 | public var textSize: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:43:33: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
41 | public var activityColor: Color?
42 | public var pressedOverlayColor: Color?
43 | public var foregroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
44 | public var textSize: CGFloat?
45 | public var textLineHeight: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:49:29: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
47 | public var borderRadius: CGFloat?
48 | public var borderWidth: CGFloat?
49 | public var borderColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
50 | public var raiseAmount: CGFloat?
51 | public var contentGap: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:63:41: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
61 | /// Set a small positive value if you want a brief ease-out on press-in.
62 | public var pressInAnimationDuration: TimeInterval?
63 | public var disabledBackgroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
64 | public var disabledDepthColor: Color?
65 | public var disabledShadowColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:64:36: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
62 | public var pressInAnimationDuration: TimeInterval?
63 | public var disabledBackgroundColor: Color?
64 | public var disabledDepthColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
65 | public var disabledShadowColor: Color?
66 | public var disabledForegroundColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:65:37: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
63 | public var disabledBackgroundColor: Color?
64 | public var disabledDepthColor: Color?
65 | public var disabledShadowColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
66 | public var disabledForegroundColor: Color?
67 | public var disabledBorderColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:66:41: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
64 | public var disabledDepthColor: Color?
65 | public var disabledShadowColor: Color?
66 | public var disabledForegroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
67 | public var disabledBorderColor: Color?
68 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:67:37: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
65 | public var disabledShadowColor: Color?
66 | public var disabledForegroundColor: Color?
67 | public var disabledBorderColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
68 |
69 | public init(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:70:26: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
71 | backgroundActive: Color? = nil,
72 | backgroundPlaceholder: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:71:27: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
72 | backgroundPlaceholder: Color? = nil,
73 | backgroundProgress: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:72:32: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
72 | backgroundPlaceholder: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
73 | backgroundProgress: Color? = nil,
74 | depthColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:73:29: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
72 | backgroundPlaceholder: Color? = nil,
73 | backgroundProgress: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
74 | depthColor: Color? = nil,
75 | shadowColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:74:21: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
72 | backgroundPlaceholder: Color? = nil,
73 | backgroundProgress: Color? = nil,
74 | depthColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
75 | shadowColor: Color? = nil,
76 | activityColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:75:22: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
73 | backgroundProgress: Color? = nil,
74 | depthColor: Color? = nil,
75 | shadowColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
76 | activityColor: Color? = nil,
77 | pressedOverlayColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:76:24: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
74 | depthColor: Color? = nil,
75 | shadowColor: Color? = nil,
76 | activityColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
77 | pressedOverlayColor: Color? = nil,
78 | foregroundColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:77:30: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
75 | shadowColor: Color? = nil,
76 | activityColor: Color? = nil,
77 | pressedOverlayColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
78 | foregroundColor: Color? = nil,
79 | textSize: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:78:26: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
76 | activityColor: Color? = nil,
77 | pressedOverlayColor: Color? = nil,
78 | foregroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
79 | textSize: CGFloat? = nil,
80 | textLineHeight: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:84:22: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
82 | borderRadius: CGFloat? = nil,
83 | borderWidth: CGFloat? = nil,
84 | borderColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
85 | raiseAmount: CGFloat? = nil,
86 | contentGap: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:90:34: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
88 | animationCurve: AwesomeButtonAnimationCurve? = nil,
89 | pressInAnimationDuration: TimeInterval? = nil,
90 | disabledBackgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
91 | disabledDepthColor: Color? = nil,
92 | disabledShadowColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:91:29: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
89 | pressInAnimationDuration: TimeInterval? = nil,
90 | disabledBackgroundColor: Color? = nil,
91 | disabledDepthColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
92 | disabledShadowColor: Color? = nil,
93 | disabledForegroundColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:92:30: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
90 | disabledBackgroundColor: Color? = nil,
91 | disabledDepthColor: Color? = nil,
92 | disabledShadowColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
93 | disabledForegroundColor: Color? = nil,
94 | disabledBorderColor: Color? = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:93:34: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
91 | disabledDepthColor: Color? = nil,
92 | disabledShadowColor: Color? = nil,
93 | disabledForegroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
94 | disabledBorderColor: Color? = nil
95 | ) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:94:30: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | public struct AwesomeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
35 | public var backgroundColor: Color?
36 | public var backgroundActive: Color?
:
67 | public var disabledBorderColor: Color?
68 |
69 | public init(
| `- note: add '@available' attribute to enclosing initializer
70 | backgroundColor: Color? = nil,
71 | backgroundActive: Color? = nil,
:
92 | disabledShadowColor: Color? = nil,
93 | disabledForegroundColor: Color? = nil,
94 | disabledBorderColor: Color? = nil
| `- error: 'Color' is only available in macOS 10.15 or newer
95 | ) {
96 | self.backgroundColor = backgroundColor
/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/Models.swift:202:18: error: 'EnvironmentValues' is only available in macOS 10.15 or newer
200 | }
201 |
202 | public extension EnvironmentValues {
| | `- error: 'EnvironmentValues' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
203 | var awesomeButtonThemeData: AwesomeButtonThemeData {
204 | get { self[AwesomeButtonThemeDataKey.self] }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:210:74: error: 'View' is only available in macOS 10.15 or newer
207 | }
208 |
209 | public extension View {
| `- note: add '@available' attribute to enclosing extension
210 | func awesomeButtonTheme(_ themeData: AwesomeButtonThemeData) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
211 | environment(\.awesomeButtonThemeData, themeData)
212 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:209:18: error: 'View' is only available in macOS 10.15 or newer
207 | }
208 |
209 | public extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
210 | func awesomeButtonTheme(_ themeData: AwesomeButtonThemeData) -> some View {
211 | environment(\.awesomeButtonThemeData, themeData)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:252:31: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
253 | public var backgroundActive: Color?
254 | public var backgroundColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:253:34: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
254 | public var backgroundColor: Color?
255 | public var backgroundDarker: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:254:33: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
254 | public var backgroundColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
255 | public var backgroundDarker: Color?
256 | public var backgroundPlaceholder: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:255:34: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
254 | public var backgroundColor: Color?
255 | public var backgroundDarker: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
256 | public var backgroundPlaceholder: Color?
257 | public var backgroundProgress: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:256:39: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
254 | public var backgroundColor: Color?
255 | public var backgroundDarker: Color?
256 | public var backgroundPlaceholder: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
257 | public var backgroundProgress: Color?
258 | public var backgroundShadow: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:257:36: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
255 | public var backgroundDarker: Color?
256 | public var backgroundPlaceholder: Color?
257 | public var backgroundProgress: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
258 | public var backgroundShadow: Color?
259 | public var borderColor: Color?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:258:34: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
256 | public var backgroundPlaceholder: Color?
257 | public var backgroundProgress: Color?
258 | public var backgroundShadow: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
259 | public var borderColor: Color?
260 | public var borderRadius: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:259:29: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
257 | public var backgroundProgress: Color?
258 | public var backgroundShadow: Color?
259 | public var borderColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
260 | public var borderRadius: CGFloat?
261 | public var borderBottomLeftRadius: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:271:27: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
269 | public var paddingTop: CGFloat?
270 | public var raiseLevel: CGFloat?
271 | public var textColor: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
272 | public var textFontFamily: String?
273 | public var textLineHeight: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:288:27: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
275 | public var width: CGFloat?
276 |
277 | public init(
| `- note: add '@available' attribute to enclosing initializer
278 | borderRadius: CGFloat? = nil,
279 | borderBottomLeftRadius: CGFloat? = nil,
:
286 | paddingTop: CGFloat? = nil,
287 | raiseLevel: CGFloat? = nil,
288 | backgroundActive: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
289 | backgroundColor: Color? = nil,
290 | backgroundDarker: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:289:26: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
275 | public var width: CGFloat?
276 |
277 | public init(
| `- note: add '@available' attribute to enclosing initializer
278 | borderRadius: CGFloat? = nil,
279 | borderBottomLeftRadius: CGFloat? = nil,
:
287 | raiseLevel: CGFloat? = nil,
288 | backgroundActive: Color? = nil,
289 | backgroundColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
290 | backgroundDarker: Color? = nil,
291 | backgroundPlaceholder: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:290:27: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
275 | public var width: CGFloat?
276 |
277 | public init(
| `- note: add '@available' attribute to enclosing initializer
278 | borderRadius: CGFloat? = nil,
279 | borderBottomLeftRadius: CGFloat? = nil,
:
288 | backgroundActive: Color? = nil,
289 | backgroundColor: Color? = nil,
290 | backgroundDarker: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
291 | backgroundPlaceholder: Color? = nil,
292 | backgroundProgress: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:291:32: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
275 | public var width: CGFloat?
276 |
277 | public init(
| `- note: add '@available' attribute to enclosing initializer
278 | borderRadius: CGFloat? = nil,
279 | borderBottomLeftRadius: CGFloat? = nil,
:
289 | backgroundColor: Color? = nil,
290 | backgroundDarker: Color? = nil,
291 | backgroundPlaceholder: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
292 | backgroundProgress: Color? = nil,
293 | backgroundShadow: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:292:29: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
275 | public var width: CGFloat?
276 |
277 | public init(
| `- note: add '@available' attribute to enclosing initializer
278 | borderRadius: CGFloat? = nil,
279 | borderBottomLeftRadius: CGFloat? = nil,
:
290 | backgroundDarker: Color? = nil,
291 | backgroundPlaceholder: Color? = nil,
292 | backgroundProgress: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
293 | backgroundShadow: Color? = nil,
294 | textColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:293:27: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
275 | public var width: CGFloat?
276 |
277 | public init(
| `- note: add '@available' attribute to enclosing initializer
278 | borderRadius: CGFloat? = nil,
279 | borderBottomLeftRadius: CGFloat? = nil,
:
291 | backgroundPlaceholder: Color? = nil,
292 | backgroundProgress: Color? = nil,
293 | backgroundShadow: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
294 | textColor: Color? = nil,
295 | borderWidth: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:294:20: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
275 | public var width: CGFloat?
276 |
277 | public init(
| `- note: add '@available' attribute to enclosing initializer
278 | borderRadius: CGFloat? = nil,
279 | borderBottomLeftRadius: CGFloat? = nil,
:
292 | backgroundProgress: Color? = nil,
293 | backgroundShadow: Color? = nil,
294 | textColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
295 | borderWidth: CGFloat? = nil,
296 | borderColor: Color? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:296:22: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
275 | public var width: CGFloat?
276 |
277 | public init(
| `- note: add '@available' attribute to enclosing initializer
278 | borderRadius: CGFloat? = nil,
279 | borderBottomLeftRadius: CGFloat? = nil,
:
294 | textColor: Color? = nil,
295 | borderWidth: CGFloat? = nil,
296 | borderColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
297 | activityColor: Color? = nil,
298 | textFontFamily: String? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:297:24: error: 'Color' is only available in macOS 10.15 or newer
249 | }
250 |
251 | public struct ThemeButtonStyle {
| `- note: add '@available' attribute to enclosing struct
252 | public var activityColor: Color?
253 | public var backgroundActive: Color?
:
275 | public var width: CGFloat?
276 |
277 | public init(
| `- note: add '@available' attribute to enclosing initializer
278 | borderRadius: CGFloat? = nil,
279 | borderBottomLeftRadius: CGFloat? = nil,
:
295 | borderWidth: CGFloat? = nil,
296 | borderColor: Color? = nil,
297 | activityColor: Color? = nil,
| `- error: 'Color' is only available in macOS 10.15 or newer
298 | textFontFamily: String? = nil,
299 | textLineHeight: CGFloat? = nil,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:379:28: error: 'Color' is only available in macOS 10.15 or newer
375 | }
376 |
377 | public struct ThemeDefinition {
| `- note: add '@available' attribute to enclosing struct
378 | public var title: String
379 | public var background: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
380 | public var color: Color
381 | public var buttons: [ButtonVariant: ThemeButtonStyle]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:380:23: error: 'Color' is only available in macOS 10.15 or newer
375 | }
376 |
377 | public struct ThemeDefinition {
| `- note: add '@available' attribute to enclosing struct
378 | public var title: String
379 | public var background: Color
380 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
381 | public var buttons: [ButtonVariant: ThemeButtonStyle]
382 | public var size: [ButtonSize: ThemeSizeStyle]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:386:21: error: 'Color' is only available in macOS 10.15 or newer
375 | }
376 |
377 | public struct ThemeDefinition {
| `- note: add '@available' attribute to enclosing struct
378 | public var title: String
379 | public var background: Color
:
382 | public var size: [ButtonSize: ThemeSizeStyle]
383 |
384 | public init(
| `- note: add '@available' attribute to enclosing initializer
385 | title: String,
386 | background: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
387 | color: Color,
388 | buttons: [ButtonVariant: ThemeButtonStyle],
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:387:16: error: 'Color' is only available in macOS 10.15 or newer
375 | }
376 |
377 | public struct ThemeDefinition {
| `- note: add '@available' attribute to enclosing struct
378 | public var title: String
379 | public var background: Color
:
382 | public var size: [ButtonSize: ThemeSizeStyle]
383 |
384 | public init(
| `- note: add '@available' attribute to enclosing initializer
385 | title: String,
386 | background: Color,
387 | color: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
388 | buttons: [ButtonVariant: ThemeButtonStyle],
389 | size: [ButtonSize: ThemeSizeStyle]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:401:28: error: 'Color' is only available in macOS 10.15 or newer
397 | }
398 |
399 | public struct RegisteredThemeDefinition {
| `- note: add '@available' attribute to enclosing struct
400 | public var title: String
401 | public var background: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
402 | public var color: Color
403 | public var buttons: [ButtonVariant: ThemeButtonStyle]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:402:23: error: 'Color' is only available in macOS 10.15 or newer
397 | }
398 |
399 | public struct RegisteredThemeDefinition {
| `- note: add '@available' attribute to enclosing struct
400 | public var title: String
401 | public var background: Color
402 | public var color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
403 | public var buttons: [ButtonVariant: ThemeButtonStyle]
404 | public var size: [ButtonSize: ThemeSizeStyle]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:411:21: error: 'Color' is only available in macOS 10.15 or newer
397 | }
398 |
399 | public struct RegisteredThemeDefinition {
| `- note: add '@available' attribute to enclosing struct
400 | public var title: String
401 | public var background: Color
:
407 | public var prev: Bool
408 |
409 | public init(
| `- note: add '@available' attribute to enclosing initializer
410 | title: String,
411 | background: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
412 | color: Color,
413 | buttons: [ButtonVariant: ThemeButtonStyle],
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:412:16: error: 'Color' is only available in macOS 10.15 or newer
397 | }
398 |
399 | public struct RegisteredThemeDefinition {
| `- note: add '@available' attribute to enclosing struct
400 | public var title: String
401 | public var background: Color
:
407 | public var prev: Bool
408 |
409 | public init(
| `- note: add '@available' attribute to enclosing initializer
410 | title: String,
411 | background: Color,
412 | color: Color,
| `- error: 'Color' is only available in macOS 10.15 or newer
413 | buttons: [ButtonVariant: ThemeButtonStyle],
414 | size: [ButtonSize: ThemeSizeStyle],
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:13:21: error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
3 | public typealias AwesomeButtonPressCallback = (AwesomeButtonProgressHandle?) -> Void
4 |
5 | public enum AwesomeButtonAnimationCurve: String, CaseIterable, Sendable {
| `- note: add '@available' attribute to enclosing enum
6 | case easeOutCubic
7 | case easeOut
8 | case linear
9 |
10 | internal var animation: Animation {
| `- note: add '@available' attribute to enclosing property
11 | switch self {
12 | case .easeOutCubic:
13 | return .timingCurve(0.33, 1, 0.68, 1, duration: 0.14)
| |- error: 'timingCurve(_:_:_:_:duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
14 | case .easeOut:
15 | return .easeOut(duration: 0.14)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:15:21: error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
3 | public typealias AwesomeButtonPressCallback = (AwesomeButtonProgressHandle?) -> Void
4 |
5 | public enum AwesomeButtonAnimationCurve: String, CaseIterable, Sendable {
| `- note: add '@available' attribute to enclosing enum
6 | case easeOutCubic
7 | case easeOut
8 | case linear
9 |
10 | internal var animation: Animation {
| `- note: add '@available' attribute to enclosing property
11 | switch self {
12 | case .easeOutCubic:
13 | return .timingCurve(0.33, 1, 0.68, 1, duration: 0.14)
14 | case .easeOut:
15 | return .easeOut(duration: 0.14)
| |- error: 'easeOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | case .linear:
17 | return .linear(duration: 0.14)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:17:21: error: 'linear(duration:)' is only available in macOS 10.15 or newer
3 | public typealias AwesomeButtonPressCallback = (AwesomeButtonProgressHandle?) -> Void
4 |
5 | public enum AwesomeButtonAnimationCurve: String, CaseIterable, Sendable {
| `- note: add '@available' attribute to enclosing enum
6 | case easeOutCubic
7 | case easeOut
8 | case linear
9 |
10 | internal var animation: Animation {
| `- note: add '@available' attribute to enclosing property
11 | switch self {
12 | case .easeOutCubic:
:
15 | return .easeOut(duration: 0.14)
16 | case .linear:
17 | return .linear(duration: 0.14)
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | }
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/Models.swift:211:9: error: 'environment' is only available in macOS 10.15 or newer
207 | }
208 |
209 | public extension View {
| `- note: add '@available' attribute to enclosing extension
210 | func awesomeButtonTheme(_ themeData: AwesomeButtonThemeData) -> some View {
| `- note: add '@available' attribute to enclosing instance method
211 | environment(\.awesomeButtonThemeData, themeData)
| |- error: 'environment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
212 | }
213 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:114:15: error: 'Color' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
115 | let height: CGFloat
116 | let animated: Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:118:20: error: 'View' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:119:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
121 | let placeholderHeight = min(height, proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:119:24: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
121 | let placeholderHeight = min(height, proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:119:24: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
121 | let placeholderHeight = min(height, proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:119:24: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
121 | let placeholderHeight = min(height, proxy.size.height)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:13: error: 'ZStack' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:128:17: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
126 |
127 | ZStack {
128 | Rectangle()
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
129 | .fill(tint)
130 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:128:17: error: 'Rectangle' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
126 |
127 | ZStack {
128 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
129 | .fill(tint)
130 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:129:22: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
127 | ZStack {
128 | Rectangle()
129 | .fill(tint)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
130 |
131 | if canAnimate {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:21: error: 'TimelineView' is only available in macOS 12.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- error: 'TimelineView' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:21: error: 'init(_:content:)' is only available in macOS 12.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- error: 'init(_:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:35: error: 'animation' is only available in macOS 12.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- error: 'animation' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:46: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:132:46: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
130 |
131 | if canAnimate {
132 | TimelineView(.animation) { context in
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
133 | let phase = placeholderLoopPhase(
134 | elapsed: context.date.timeIntervalSinceReferenceDate
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:25: error: 'ZStack' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:25: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:44: error: 'leading' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:53: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:145:33: error: 'Rectangle' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
143 | ZStack(alignment: .leading) {
144 | if segment.width > 0 {
145 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
146 | .fill(Color.black.opacity(0.2))
147 | .frame(width: segment.width, height: placeholderHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:146:38: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
144 | if segment.width > 0 {
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:146:43: error: 'Color' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
144 | if segment.width > 0 {
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:146:49: error: 'black' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
144 | if segment.width > 0 {
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:146:55: error: 'opacity' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
144 | if segment.width > 0 {
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:147:38: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
147 | .frame(width: segment.width, height: placeholderHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
148 | .offset(x: segment.leadingX)
149 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:148:38: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
146 | .fill(Color.black.opacity(0.2))
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
149 | }
150 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:144:50: error: 'buildIf' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
142 |
143 | ZStack(alignment: .leading) {
144 | if segment.width > 0 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 | Rectangle()
146 | .fill(Color.black.opacity(0.2))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:149:29: error: 'buildIf' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
147 | .frame(width: segment.width, height: placeholderHeight)
148 | .offset(x: segment.leadingX)
149 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
150 | }
151 | .frame(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:143:53: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
141 | )
142 |
143 | ZStack(alignment: .leading) {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
144 | if segment.width > 0 {
145 | Rectangle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:151:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
149 | }
150 | }
151 | .frame(
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | width: placeholderWidth,
153 | height: placeholderHeight,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:154:41: error: 'leading' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
152 | width: placeholderWidth,
153 | height: placeholderHeight,
154 | alignment: .leading
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | )
156 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:157:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
155 | )
156 | }
157 | .frame(width: placeholderWidth, height: placeholderHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | }
159 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:131:31: error: 'buildIf' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
129 | .fill(tint)
130 |
131 | if canAnimate {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
132 | TimelineView(.animation) { context in
133 | let phase = placeholderLoopPhase(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:158:17: error: 'buildIf' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
156 | }
157 | .frame(width: placeholderWidth, height: placeholderHeight)
158 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
159 | }
160 | .frame(width: placeholderWidth, height: placeholderHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:127:20: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
125 | )
126 |
127 | ZStack {
| |- warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
128 | Rectangle()
129 | .fill(tint)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:160:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
158 | }
159 | }
160 | .frame(width: placeholderWidth, height: placeholderHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | .frame(maxWidth: .infinity, maxHeight: .infinity)
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/PlaceholderShimmer.swift:161:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
111 | }
112 |
113 | internal struct PlaceholderFace: View {
| `- note: add '@available' attribute to enclosing struct
114 | let tint: Color
115 | let height: CGFloat
116 | let animated: Bool
117 |
118 | var body: some View {
| `- note: add '@available' attribute to enclosing property
119 | GeometryReader { proxy in
120 | let placeholderWidth = snappedPlaceholderMeasurementWidth(proxy.size.width * 0.55)
:
159 | }
160 | .frame(width: placeholderWidth, height: placeholderHeight)
161 | .frame(maxWidth: .infinity, maxHeight: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
162 | }
163 | }
[20/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:priority:_:)' 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:priority:_:)' 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 | }
[21/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:priority:_:)' 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:priority:_:)' 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 | }
[22/22] Compiling SwiftAwesomeButton UIKitWrappers.swift
BUILD FAILURE 6.2 macosSpm