Build Information
Failed to build swift-awesome-button, reference main (75fe59), with Swift 6.0 for macOS (SPM) on 24 Apr 2026 04:42:49 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
254 | }
255 |
256 | if configuration.isPlaceholder {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
257 | ZStack(alignment: .center) {
258 | PlaceholderFace(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:271:17: error: 'ZStack' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
269 | .clipped()
270 | } else {
271 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
272 | HStack(spacing: contentGap) {
273 | if let beforeView = configuration.beforeView {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:272:21: error: 'HStack' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
270 | } else {
271 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
272 | HStack(spacing: contentGap) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
273 | if let beforeView = configuration.beforeView {
274 | beforeView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:273:70: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
271 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
272 | HStack(spacing: contentGap) {
273 | if let beforeView = configuration.beforeView {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
274 | beforeView
275 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:275:25: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
273 | if let beforeView = configuration.beforeView {
274 | beforeView
275 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | labelContent
277 | if let afterView = configuration.afterView {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:277:68: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
275 | }
276 | labelContent
277 | if let afterView = configuration.afterView {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
278 | afterView
279 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:279:25: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
277 | if let afterView = configuration.afterView {
278 | afterView
279 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
280 | }
281 | .padding(.horizontal, configuration.paddingHorizontal)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:272:49: 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
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
270 | } else {
271 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
272 | HStack(spacing: contentGap) {
| |- 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
273 | if let beforeView = configuration.beforeView {
274 | beforeView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:272:49: 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
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
270 | } else {
271 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
272 | HStack(spacing: contentGap) {
| |- 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
273 | if let beforeView = configuration.beforeView {
274 | beforeView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:281:22: error: 'padding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
279 | }
280 | }
281 | .padding(.horizontal, configuration.paddingHorizontal)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
282 | .padding(.top, configuration.paddingTop)
283 | .padding(.bottom, configuration.paddingBottom)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:282:22: error: 'padding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
280 | }
281 | .padding(.horizontal, configuration.paddingHorizontal)
282 | .padding(.top, configuration.paddingTop)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
283 | .padding(.bottom, configuration.paddingBottom)
284 | .opacity(contentOpacity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:283:22: error: 'padding' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
281 | .padding(.horizontal, configuration.paddingHorizontal)
282 | .padding(.top, configuration.paddingTop)
283 | .padding(.bottom, configuration.paddingBottom)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
284 | .opacity(contentOpacity)
285 | .scaleEffect(controller.contentTransitionValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:284:22: error: 'opacity' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
282 | .padding(.top, configuration.paddingTop)
283 | .padding(.bottom, configuration.paddingBottom)
284 | .opacity(contentOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
285 | .scaleEffect(controller.contentTransitionValue)
286 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:285:22: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
283 | .padding(.bottom, configuration.paddingBottom)
284 | .opacity(contentOpacity)
285 | .scaleEffect(controller.contentTransitionValue)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
286 | }
287 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:287:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
285 | .scaleEffect(controller.contentTransitionValue)
286 | }
287 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
288 | .clipped()
289 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:288:18: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
286 | }
287 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
288 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
289 |
290 | if controller.showProgressVisuals {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:291:21: error: 'ProgressView' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
289 |
290 | if controller.showProgressVisuals {
291 | ProgressView()
| |- error: 'ProgressView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
292 | .progressViewStyle(.circular)
293 | .tint(activityColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:291:21: error: 'init()' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
289 |
290 | if controller.showProgressVisuals {
291 | ProgressView()
| |- error: 'init()' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
292 | .progressViewStyle(.circular)
293 | .tint(activityColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:292:26: error: 'progressViewStyle' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
290 | if controller.showProgressVisuals {
291 | ProgressView()
292 | .progressViewStyle(.circular)
| |- error: 'progressViewStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
293 | .tint(activityColor)
294 | .scaleEffect(controller.activityTransitionValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:292:45: error: 'circular' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
290 | if controller.showProgressVisuals {
291 | ProgressView()
292 | .progressViewStyle(.circular)
| |- error: 'circular' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
293 | .tint(activityColor)
294 | .scaleEffect(controller.activityTransitionValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:293:26: error: 'tint' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
291 | ProgressView()
292 | .progressViewStyle(.circular)
293 | .tint(activityColor)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
294 | .scaleEffect(controller.activityTransitionValue)
295 | .opacity(activityOpacity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:294:26: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
292 | .progressViewStyle(.circular)
293 | .tint(activityColor)
294 | .scaleEffect(controller.activityTransitionValue)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
295 | .opacity(activityOpacity)
296 | .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:295:26: error: 'opacity' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
293 | .tint(activityColor)
294 | .scaleEffect(controller.activityTransitionValue)
295 | .opacity(activityOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
296 | .allowsHitTesting(false)
297 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:296:26: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
294 | .scaleEffect(controller.activityTransitionValue)
295 | .opacity(activityOpacity)
296 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
297 | }
298 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:290:51: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
288 | .clipped()
289 |
290 | if controller.showProgressVisuals {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
291 | ProgressView()
292 | .progressViewStyle(.circular)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:297:17: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
295 | .opacity(activityOpacity)
296 | .allowsHitTesting(false)
297 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
298 | }
299 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:270:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
268 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
269 | .clipped()
270 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
271 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
272 | HStack(spacing: contentGap) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:270: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
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
268 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
269 | .clipped()
270 | } else {
| |- 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
271 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
272 | HStack(spacing: contentGap) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:302:22: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
300 | if borderWidth > 0 {
301 | AwesomeRoundedRectangle(radii: cornerRadii)
302 | .stroke(borderColor, lineWidth: borderWidth)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
303 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
304 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:303:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
301 | AwesomeRoundedRectangle(radii: cornerRadii)
302 | .stroke(borderColor, lineWidth: borderWidth)
303 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
304 | }
305 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:300:32: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
298 | }
299 |
300 | if borderWidth > 0 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
301 | AwesomeRoundedRectangle(radii: cornerRadii)
302 | .stroke(borderColor, lineWidth: borderWidth)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:304:13: error: 'buildIf' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
302 | .stroke(borderColor, lineWidth: borderWidth)
303 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
304 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
305 | }
306 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:236:23: 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
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
236 | return 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
237 | AwesomeRoundedRectangle(radii: cornerRadii)
238 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:236:23: 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
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
236 | return 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
237 | AwesomeRoundedRectangle(radii: cornerRadii)
238 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:236:23: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
236 | return ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
237 | AwesomeRoundedRectangle(radii: cornerRadii)
238 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:236:23: 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
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
236 | return 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
237 | AwesomeRoundedRectangle(radii: cornerRadii)
238 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:306:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
231 | }
232 |
233 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
234 | let borderWidth = interpolatedStyle.borderWidth ?? 0
235 |
:
304 | }
305 | }
306 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
307 | }
308 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:312:13: error: 'Text' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
313 | .font(font)
314 | .foregroundStyle(foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:313:18: error: 'font' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
313 | .font(font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
314 | .foregroundStyle(foregroundColor)
315 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:314:18: error: 'foregroundStyle' is only available in macOS 14.0 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
313 | .font(font)
314 | .foregroundStyle(foregroundColor)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
315 | .lineLimit(1)
316 | .fixedSize(horizontal: true, vertical: false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:315:18: error: 'lineLimit' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
313 | .font(font)
314 | .foregroundStyle(foregroundColor)
315 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
316 | .fixedSize(horizontal: true, vertical: false)
317 | .animation(nil, value: text)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:316:18: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
:
314 | .foregroundStyle(foregroundColor)
315 | .lineLimit(1)
316 | .fixedSize(horizontal: true, vertical: false)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
317 | .animation(nil, value: text)
318 | } else if let labelView = configuration.labelView {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:317:18: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
:
315 | .lineLimit(1)
316 | .fixedSize(horizontal: true, vertical: false)
317 | .animation(nil, value: text)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
318 | } else if let labelView = configuration.labelView {
319 | labelView
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:311:48: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
312 | Text(text)
313 | .font(font)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:311:48: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
312 | Text(text)
313 | .font(font)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:318:59: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
:
316 | .fixedSize(horizontal: true, vertical: false)
317 | .animation(nil, value: text)
318 | } else if let labelView = configuration.labelView {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
319 | labelView
320 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:318:59: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
:
316 | .fixedSize(horizontal: true, vertical: false)
317 | .animation(nil, value: text)
318 | } else if let labelView = configuration.labelView {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
319 | labelView
320 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:321:13: error: 'EmptyView' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
:
319 | labelView
320 | } else {
321 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
322 | }
323 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:320:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
:
318 | } else if let labelView = configuration.labelView {
319 | labelView
320 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
321 | EmptyView()
322 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:310:41: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
1 | import SwiftUI
2 |
3 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
4 | @ObservedObject var controller: AwesomeButtonController
5 | let configuration: AwesomeButtonResolvedConfiguration
:
308 |
309 | @ViewBuilder
310 | private var labelContent: some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' 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
| `- note: add @available attribute to enclosing property
311 | if let text = controller.displayedText {
312 | Text(text)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:8:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
| `- error: 'Published' is only available in macOS 10.15 or newer
9 | @Published var displayedText: String?
10 | @Published var resolvedWidth: CGFloat?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:9:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
| `- error: 'Published' is only available in macOS 10.15 or newer
10 | @Published var resolvedWidth: CGFloat?
11 | @Published var resolvedHeight: CGFloat = 52
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:10:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
10 | @Published var resolvedWidth: CGFloat?
| `- error: 'Published' is only available in macOS 10.15 or newer
11 | @Published var resolvedHeight: CGFloat = 52
12 | @Published var isPressed = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:11:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
10 | @Published var resolvedWidth: CGFloat?
11 | @Published var resolvedHeight: CGFloat = 52
| `- error: 'Published' is only available in macOS 10.15 or newer
12 | @Published var isPressed = false
13 | @Published var pressProgress: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
10 | @Published var resolvedWidth: CGFloat?
11 | @Published var resolvedHeight: CGFloat = 52
12 | @Published var isPressed = false
| `- error: 'Published' is only available in macOS 10.15 or newer
13 | @Published var pressProgress: CGFloat = 0
14 | @Published var isBusy = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
11 | @Published var resolvedHeight: CGFloat = 52
12 | @Published var isPressed = false
13 | @Published var pressProgress: CGFloat = 0
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | @Published var isBusy = false
15 | @Published var showProgressVisuals = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
12 | @Published var isPressed = false
13 | @Published var pressProgress: CGFloat = 0
14 | @Published var isBusy = false
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published var showProgressVisuals = false
16 | @Published var contentClipAlignment: ContentClipAlignment = .center
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
13 | @Published var pressProgress: CGFloat = 0
14 | @Published var isBusy = false
15 | @Published var showProgressVisuals = false
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published var contentClipAlignment: ContentClipAlignment = .center
17 | @Published var contentTransitionValue: CGFloat = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
14 | @Published var isBusy = false
15 | @Published var showProgressVisuals = false
16 | @Published var contentClipAlignment: ContentClipAlignment = .center
| `- error: 'Published' is only available in macOS 10.15 or newer
17 | @Published var contentTransitionValue: CGFloat = 1
18 | @Published var activityTransitionValue: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
15 | @Published var showProgressVisuals = false
16 | @Published var contentClipAlignment: ContentClipAlignment = .center
17 | @Published var contentTransitionValue: CGFloat = 1
| `- error: 'Published' is only available in macOS 10.15 or newer
18 | @Published var activityTransitionValue: CGFloat = 0
19 | @Published var progressOverlayOpacity: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:18:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
16 | @Published var contentClipAlignment: ContentClipAlignment = .center
17 | @Published var contentTransitionValue: CGFloat = 1
18 | @Published var activityTransitionValue: CGFloat = 0
| `- error: 'Published' is only available in macOS 10.15 or newer
19 | @Published var progressOverlayOpacity: CGFloat = 0
20 | @Published var progressValue: CGFloat = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:19:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
17 | @Published var contentTransitionValue: CGFloat = 1
18 | @Published var activityTransitionValue: CGFloat = 0
19 | @Published var progressOverlayOpacity: CGFloat = 0
| `- error: 'Published' is only available in macOS 10.15 or newer
20 | @Published var progressValue: CGFloat = 0
21 | @Published var styleTransitionProgress: CGFloat = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:20:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
18 | @Published var activityTransitionValue: CGFloat = 0
19 | @Published var progressOverlayOpacity: CGFloat = 0
20 | @Published var progressValue: CGFloat = 0
| `- error: 'Published' is only available in macOS 10.15 or newer
21 | @Published var styleTransitionProgress: CGFloat = 1
22 | @Published private(set) var styleTransitionSourceStyle: AwesomeButtonStyle?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:21:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
19 | @Published var progressOverlayOpacity: CGFloat = 0
20 | @Published var progressValue: CGFloat = 0
21 | @Published var styleTransitionProgress: CGFloat = 1
| `- error: 'Published' is only available in macOS 10.15 or newer
22 | @Published private(set) var styleTransitionSourceStyle: AwesomeButtonStyle?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:22:6: error: 'Published' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
20 | @Published var progressValue: CGFloat = 0
21 | @Published var styleTransitionProgress: CGFloat = 1
22 | @Published private(set) var styleTransitionSourceStyle: AwesomeButtonStyle?
| `- error: 'Published' is only available in macOS 10.15 or newer
23 |
24 | private let measurementService: AutoWidthMeasurementService
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:591:77: error: 'Animation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
589 | }
590 |
591 | private func styleTransitionAnimation(for style: AwesomeButtonStyle) -> Animation {
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
592 | let resolvedStyle = resolvedVisualStyle(style)
593 | let curve = resolvedStyle.animationCurve ?? AwesomeButtonThemeData.fallbackStyle.animationCurve ?? .easeOutCubic
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, AwesomeButtonResolvedConfiguration?>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, AwesomeButtonResolvedConfiguration?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, String?>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, String?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, CGFloat?>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, CGFloat?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, Bool>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, Bool>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, Bool>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, ContentClipAlignment>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, ContentClipAlignment>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<AwesomeButtonController, AwesomeButtonStyle?>' to expected argument type 'ReferenceWritableKeyPath<AwesomeButtonController, AwesomeButtonStyle?>'
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:7:47: error: 'ObservableObject' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:66:9: error: setter for 'isPressed' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
61 | }
62 |
63 | func cleanup() {
| `- note: add @available attribute to enclosing instance method
64 | cancelReleaseTracking()
65 | clearDeferredAutoWidthTransition()
66 | isPressed = false
| |- error: setter for 'isPressed' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | pressProgress = 0
68 | delayedWidthWorkItem?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:67:9: error: setter for 'pressProgress' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
61 | }
62 |
63 | func cleanup() {
| `- note: add @available attribute to enclosing instance method
64 | cancelReleaseTracking()
65 | clearDeferredAutoWidthTransition()
66 | isPressed = false
67 | pressProgress = 0
| |- error: setter for 'pressProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | delayedWidthWorkItem?.cancel()
69 | delayedTextWorkItem?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:76:9: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
61 | }
62 |
63 | func cleanup() {
| `- note: add @available attribute to enclosing instance method
64 | cancelReleaseTracking()
65 | clearDeferredAutoWidthTransition()
:
74 | isTouchActive = false
75 | isTouchInside = false
76 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:200:9: error: setter for 'isPressed' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
191 | }
192 |
193 | private func armPressIfNeeded(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
194 | guard isPressed == false else {
195 | return
:
198 | cancelReleaseTracking()
199 | clearDeferredAutoWidthTransition()
200 | isPressed = true
| |- error: setter for 'isPressed' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
201 | let pressInDuration = configuration.style.pressInAnimationDuration ?? configuration.style.animationDuration ?? 0.14
202 | let pressCurve = configuration.style.animationCurve ?? .easeOutCubic
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:203:9: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
191 | }
192 |
193 | private func armPressIfNeeded(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
194 | guard isPressed == false else {
195 | return
:
201 | let pressInDuration = configuration.style.pressInAnimationDuration ?? configuration.style.animationDuration ?? 0.14
202 | let pressCurve = configuration.style.animationCurve ?? .easeOutCubic
203 | withAnimation(pressCurve.animation(duration: pressInDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
204 | pressProgress = 1
205 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:204:13: error: setter for 'pressProgress' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
191 | }
192 |
193 | private func armPressIfNeeded(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
194 | guard isPressed == false else {
195 | return
:
202 | let pressCurve = configuration.style.animationCurve ?? .easeOutCubic
203 | withAnimation(pressCurve.animation(duration: pressInDuration)) {
204 | pressProgress = 1
| |- error: setter for 'pressProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | }
206 | #if canImport(UIKit)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:233:9: error: setter for 'isPressed' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
213 | }
214 |
215 | private func releaseVisual(
| `- note: add @available attribute to enclosing instance method
216 | configuration: AwesomeButtonResolvedConfiguration,
217 | notifyPressOut: Bool,
:
231 |
232 | let releaseNeedsVisualSettle = pressProgress > 0.001
233 | isPressed = false
| |- error: setter for 'isPressed' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
234 | cancelReleaseTracking()
235 | releaseGeneration += 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:239:9: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
213 | }
214 |
215 | private func releaseVisual(
| `- note: add @available attribute to enclosing instance method
216 | configuration: AwesomeButtonResolvedConfiguration,
217 | notifyPressOut: Bool,
:
237 | pendingReleaseConfiguration = configuration
238 | pendingReleaseCompletion = onComplete
239 | withAnimation(.interpolatingSpring(stiffness: 280, damping: 20)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
240 | pressProgress = 0
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:239:24: error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
213 | }
214 |
215 | private func releaseVisual(
| `- note: add @available attribute to enclosing instance method
216 | configuration: AwesomeButtonResolvedConfiguration,
217 | notifyPressOut: Bool,
:
237 | pendingReleaseConfiguration = configuration
238 | pendingReleaseCompletion = onComplete
239 | withAnimation(.interpolatingSpring(stiffness: 280, damping: 20)) {
| |- error: 'interpolatingSpring(mass:stiffness:damping:initialVelocity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
240 | pressProgress = 0
241 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:240:13: error: setter for 'pressProgress' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
213 | }
214 |
215 | private func releaseVisual(
| `- note: add @available attribute to enclosing instance method
216 | configuration: AwesomeButtonResolvedConfiguration,
217 | notifyPressOut: Bool,
:
238 | pendingReleaseCompletion = onComplete
239 | withAnimation(.interpolatingSpring(stiffness: 280, damping: 20)) {
240 | pressProgress = 0
| |- error: setter for 'pressProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
241 | }
242 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:257:9: error: setter for 'isBusy' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
250 | // MARK: - Progress
251 |
252 | private func startProgress(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
253 | cancelProgressWork(resetState: false)
254 | progressRunID += 1
255 | let runID = progressRunID
256 | completionConsumed = false
257 | isBusy = true
| |- error: setter for 'isBusy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
258 | cancelReleaseTracking()
259 | clearDeferredAutoWidthTransition()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:260:9: error: setter for 'isPressed' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
250 | // MARK: - Progress
251 |
252 | private func startProgress(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
253 | cancelProgressWork(resetState: false)
254 | progressRunID += 1
:
258 | cancelReleaseTracking()
259 | clearDeferredAutoWidthTransition()
260 | isPressed = true
| |- error: setter for 'isPressed' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
261 | pressProgress = 1
262 | showProgressVisuals = true
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:261:9: error: setter for 'pressProgress' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
250 | // MARK: - Progress
251 |
252 | private func startProgress(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
253 | cancelProgressWork(resetState: false)
254 | progressRunID += 1
:
259 | clearDeferredAutoWidthTransition()
260 | isPressed = true
261 | pressProgress = 1
| |- error: setter for 'pressProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
262 | showProgressVisuals = true
263 | resetProgressVisualState(unmount: false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:262:9: error: setter for 'showProgressVisuals' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
250 | // MARK: - Progress
251 |
252 | private func startProgress(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
253 | cancelProgressWork(resetState: false)
254 | progressRunID += 1
:
260 | isPressed = true
261 | pressProgress = 1
262 | showProgressVisuals = true
| |- error: setter for 'showProgressVisuals' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
263 | resetProgressVisualState(unmount: false)
264 | progressOverlayOpacity = 1
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:264:9: error: setter for 'progressOverlayOpacity' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
250 | // MARK: - Progress
251 |
252 | private func startProgress(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
253 | cancelProgressWork(resetState: false)
254 | progressRunID += 1
:
262 | showProgressVisuals = true
263 | resetProgressVisualState(unmount: false)
264 | progressOverlayOpacity = 1
| |- error: setter for 'progressOverlayOpacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
265 | configuration.onProgressStart?()
266 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:275:17: error: 'Task' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
250 | // MARK: - Progress
251 |
252 | private func startProgress(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
253 | cancelProgressWork(resetState: false)
254 | progressRunID += 1
:
273 | }
274 | configuration.onPress?(AwesomeButtonProgressHandle { [weak self] callback in
275 | Task { @MainActor in
| |- error: 'Task' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | self?.completeProgress(callback, runID: runID)
277 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:275:17: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
250 | // MARK: - Progress
251 |
252 | private func startProgress(configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
253 | cancelProgressWork(resetState: false)
254 | progressRunID += 1
:
273 | }
274 | configuration.onPress?(AwesomeButtonProgressHandle { [weak self] callback in
275 | Task { @MainActor in
| |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
276 | self?.completeProgress(callback, runID: runID)
277 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:306:21: error: setter for 'isBusy' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
283 | }
284 |
285 | private func completeProgress(_ completion: (() -> Void)?, runID: Int) {
| `- note: add @available attribute to enclosing instance method
286 | guard renderedConfiguration != nil, isBusy, completionConsumed == false, progressRunID == runID else {
287 | return
:
304 | return
305 | }
306 | self.isBusy = false
| |- error: setter for 'isBusy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
307 | self.showProgressVisuals = false
308 | self.resetProgressVisualState(unmount: false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:307:21: error: setter for 'showProgressVisuals' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
283 | }
284 |
285 | private func completeProgress(_ completion: (() -> Void)?, runID: Int) {
| `- note: add @available attribute to enclosing instance method
286 | guard renderedConfiguration != nil, isBusy, completionConsumed == false, progressRunID == runID else {
287 | return
:
305 | }
306 | self.isBusy = false
307 | self.showProgressVisuals = false
| |- error: setter for 'showProgressVisuals' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
308 | self.resetProgressVisualState(unmount: false)
309 | completion?()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:332:13: error: setter for 'isBusy' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
314 | }
315 |
316 | private func cancelProgressWork(resetState: Bool) {
| `- note: add @available attribute to enclosing instance method
317 | progressRunID += 1
318 | deferredProgressPressWorkItem?.cancel()
:
330 |
331 | if resetState {
332 | self.isBusy = false
| |- error: setter for 'isBusy' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
333 | self.showProgressVisuals = false
334 | self.resetProgressVisualState(unmount: true)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:333:13: error: setter for 'showProgressVisuals' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
314 | }
315 |
316 | private func cancelProgressWork(resetState: Bool) {
| `- note: add @available attribute to enclosing instance method
317 | progressRunID += 1
318 | deferredProgressPressWorkItem?.cancel()
:
331 | if resetState {
332 | self.isBusy = false
333 | self.showProgressVisuals = false
| |- error: setter for 'showProgressVisuals' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
334 | self.resetProgressVisualState(unmount: true)
335 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:339:9: error: setter for 'contentTransitionValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
336 | }
337 |
338 | private func resetProgressVisualState(unmount: Bool) {
| `- note: add @available attribute to enclosing instance method
339 | contentTransitionValue = 1
| |- error: setter for 'contentTransitionValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
340 | activityTransitionValue = 0
341 | progressOverlayOpacity = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:340:9: error: setter for 'activityTransitionValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
336 | }
337 |
338 | private func resetProgressVisualState(unmount: Bool) {
| `- note: add @available attribute to enclosing instance method
339 | contentTransitionValue = 1
340 | activityTransitionValue = 0
| |- error: setter for 'activityTransitionValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
341 | progressOverlayOpacity = 0
342 | progressValue = 0
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:341:9: error: setter for 'progressOverlayOpacity' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
336 | }
337 |
338 | private func resetProgressVisualState(unmount: Bool) {
| `- note: add @available attribute to enclosing instance method
339 | contentTransitionValue = 1
340 | activityTransitionValue = 0
341 | progressOverlayOpacity = 0
| |- error: setter for 'progressOverlayOpacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
342 | progressValue = 0
343 | if unmount {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:342:9: error: setter for 'progressValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
336 | }
337 |
338 | private func resetProgressVisualState(unmount: Bool) {
| `- note: add @available attribute to enclosing instance method
339 | contentTransitionValue = 1
340 | activityTransitionValue = 0
341 | progressOverlayOpacity = 0
342 | progressValue = 0
| |- error: setter for 'progressValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
343 | if unmount {
344 | showProgressVisuals = false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:344:13: error: setter for 'showProgressVisuals' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
336 | }
337 |
338 | private func resetProgressVisualState(unmount: Bool) {
| `- note: add @available attribute to enclosing instance method
339 | contentTransitionValue = 1
340 | activityTransitionValue = 0
:
342 | progressValue = 0
343 | if unmount {
344 | showProgressVisuals = false
| |- error: setter for 'showProgressVisuals' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
345 | }
346 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:359:13: error: setter for 'progressValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
346 | }
347 |
348 | private func startProgressFill(duration: TimeInterval, runID: Int) {
| `- note: add @available attribute to enclosing instance method
349 | progressValueAnimation?.stop()
350 | progressValueAnimation = runProgressAnimation(
:
357 | return
358 | }
359 | self.progressValue = value
| |- error: setter for 'progressValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 | } onComplete: { [weak self] in
361 | guard let self, self.progressRunID == runID else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:381:13: error: setter for 'contentTransitionValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
366 | }
367 |
368 | private func animateProgressSwapIn(runID: Int) {
| `- note: add @available attribute to enclosing instance method
369 | progressContentAnimation?.stop()
370 | progressActivityAnimation?.stop()
:
379 | return
380 | }
381 | self.contentTransitionValue = value
| |- error: setter for 'contentTransitionValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
382 | } onComplete: { [weak self] in
383 | guard let self, self.progressRunID == runID else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:398:13: error: setter for 'activityTransitionValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
366 | }
367 |
368 | private func animateProgressSwapIn(runID: Int) {
| `- note: add @available attribute to enclosing instance method
369 | progressContentAnimation?.stop()
370 | progressActivityAnimation?.stop()
:
396 | return
397 | }
398 | self.activityTransitionValue = value
| |- error: setter for 'activityTransitionValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
399 | } onComplete: { [weak self] in
400 | guard let self, self.progressRunID == runID else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:410:13: error: setter for 'progressValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
405 | }
406 |
407 | private func animateProgressFillCompletion(runID: Int, completion: @escaping () -> Void) {
| `- note: add @available attribute to enclosing instance method
408 | progressValueAnimation?.stop()
409 | if progressValue >= 1 {
410 | progressValue = 1
| |- error: setter for 'progressValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
411 | completion()
412 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:424:13: error: setter for 'progressValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
405 | }
406 |
407 | private func animateProgressFillCompletion(runID: Int, completion: @escaping () -> Void) {
| `- note: add @available attribute to enclosing instance method
408 | progressValueAnimation?.stop()
409 | if progressValue >= 1 {
:
422 | return
423 | }
424 | self.progressValue = value
| |- error: setter for 'progressValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
425 | } onComplete: { [weak self] in
426 | guard let self, self.progressRunID == runID else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:456:13: error: setter for 'contentTransitionValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
432 | }
433 |
434 | private func animateProgressSwapOut(runID: Int, completion: @escaping () -> Void) {
| `- note: add @available attribute to enclosing instance method
435 | progressContentAnimation?.stop()
436 | progressActivityAnimation?.stop()
:
454 | return
455 | }
456 | self.contentTransitionValue = value
| |- error: setter for 'contentTransitionValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
457 | } onComplete: { [weak self] in
458 | guard let self, self.progressRunID == runID else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:474:13: error: setter for 'activityTransitionValue' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
432 | }
433 |
434 | private func animateProgressSwapOut(runID: Int, completion: @escaping () -> Void) {
| `- note: add @available attribute to enclosing instance method
435 | progressContentAnimation?.stop()
436 | progressActivityAnimation?.stop()
:
472 | return
473 | }
474 | self.activityTransitionValue = value
| |- error: setter for 'activityTransitionValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
475 | } onComplete: { [weak self] in
476 | guard let self, self.progressRunID == runID else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:493:13: error: setter for 'progressOverlayOpacity' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
432 | }
433 |
434 | private func animateProgressSwapOut(runID: Int, completion: @escaping () -> Void) {
| `- note: add @available attribute to enclosing instance method
435 | progressContentAnimation?.stop()
436 | progressActivityAnimation?.stop()
:
491 | return
492 | }
493 | self.progressOverlayOpacity = value
| |- error: setter for 'progressOverlayOpacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
494 | } onComplete: { [weak self] in
495 | guard let self, self.progressRunID == runID else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:508:13: error: setter for 'resolvedHeight' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
503 | // MARK: - Rendered Configuration / Style
504 |
505 | private func applyHeightUpdate(_ configuration: AwesomeButtonResolvedConfiguration, previousWidthMode: ButtonWidthMode?) {
| `- note: add @available attribute to enclosing instance method
506 | let shouldSnap = shouldSnapWidthBridge(previous: previousWidthMode, next: configuration.widthMode)
507 | if shouldSnap || configuration.animateSize == false {
508 | resolvedHeight = configuration.height
| |- error: setter for 'resolvedHeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
509 | return
510 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:513:13: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
503 | // MARK: - Rendered Configuration / Style
504 |
505 | private func applyHeightUpdate(_ configuration: AwesomeButtonResolvedConfiguration, previousWidthMode: ButtonWidthMode?) {
| `- note: add @available attribute to enclosing instance method
506 | let shouldSnap = shouldSnapWidthBridge(previous: previousWidthMode, next: configuration.widthMode)
507 | if shouldSnap || configuration.animateSize == false {
:
511 |
512 | if abs(resolvedHeight - configuration.height) >= 0.5 {
513 | withAnimation(sizeAnimation()) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
514 | resolvedHeight = configuration.height
515 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:514:17: error: setter for 'resolvedHeight' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
503 | // MARK: - Rendered Configuration / Style
504 |
505 | private func applyHeightUpdate(_ configuration: AwesomeButtonResolvedConfiguration, previousWidthMode: ButtonWidthMode?) {
| `- note: add @available attribute to enclosing instance method
506 | let shouldSnap = shouldSnapWidthBridge(previous: previousWidthMode, next: configuration.widthMode)
507 | if shouldSnap || configuration.animateSize == false {
:
512 | if abs(resolvedHeight - configuration.height) >= 0.5 {
513 | withAnimation(sizeAnimation()) {
514 | resolvedHeight = configuration.height
| |- error: setter for 'resolvedHeight' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
515 | }
516 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:530:9: error: setter for 'renderedConfiguration' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
517 | }
518 |
519 | private func commitRenderedConfiguration(
| `- note: add @available attribute to enclosing instance method
520 | _ configuration: AwesomeButtonResolvedConfiguration,
521 | previousWidthMode: ButtonWidthMode?
:
528 | }
529 |
530 | renderedConfiguration = configuration
| |- error: setter for 'renderedConfiguration' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
531 | currentWidthMode = configuration.widthMode
532 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:534:13: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
517 | }
518 |
519 | private func commitRenderedConfiguration(
| `- note: add @available attribute to enclosing instance method
520 | _ configuration: AwesomeButtonResolvedConfiguration,
521 | previousWidthMode: ButtonWidthMode?
:
532 |
533 | if displayedText == nil {
534 | displayedText = configuration.childText
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
535 | currentTextTarget = configuration.childText
536 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:566:9: error: setter for 'styleTransitionSourceStyle' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
560 | }
561 |
562 | private func startStyleTransition(from sourceStyle: AwesomeButtonStyle, to targetStyle: AwesomeButtonStyle) {
| `- note: add @available attribute to enclosing instance method
563 | styleTransitionKickoffWorkItem?.cancel()
564 | styleTransitionID += 1
565 | let transitionID = styleTransitionID
566 | styleTransitionSourceStyle = resolvedVisualStyle(sourceStyle)
| |- error: setter for 'styleTransitionSourceStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
567 | styleTransitionProgress = 0
568 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:567:9: error: setter for 'styleTransitionProgress' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
560 | }
561 |
562 | private func startStyleTransition(from sourceStyle: AwesomeButtonStyle, to targetStyle: AwesomeButtonStyle) {
| `- note: add @available attribute to enclosing instance method
563 | styleTransitionKickoffWorkItem?.cancel()
564 | styleTransitionID += 1
565 | let transitionID = styleTransitionID
566 | styleTransitionSourceStyle = resolvedVisualStyle(sourceStyle)
567 | styleTransitionProgress = 0
| |- error: setter for 'styleTransitionProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
568 |
569 | let workItem = DispatchWorkItem { [weak self] in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:574:13: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
560 | }
561 |
562 | private func startStyleTransition(from sourceStyle: AwesomeButtonStyle, to targetStyle: AwesomeButtonStyle) {
| `- note: add @available attribute to enclosing instance method
563 | styleTransitionKickoffWorkItem?.cancel()
564 | styleTransitionID += 1
:
572 | }
573 |
574 | withAnimation(self.styleTransitionAnimation(for: targetStyle)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
575 | self.styleTransitionProgress = 1
576 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:575:17: error: setter for 'styleTransitionProgress' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
560 | }
561 |
562 | private func startStyleTransition(from sourceStyle: AwesomeButtonStyle, to targetStyle: AwesomeButtonStyle) {
| `- note: add @available attribute to enclosing instance method
563 | styleTransitionKickoffWorkItem?.cancel()
564 | styleTransitionID += 1
:
573 |
574 | withAnimation(self.styleTransitionAnimation(for: targetStyle)) {
575 | self.styleTransitionProgress = 1
| |- error: setter for 'styleTransitionProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
576 | }
577 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:587:9: error: setter for 'styleTransitionSourceStyle' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
581 | }
582 |
583 | private func resetStyleTransition() {
| `- note: add @available attribute to enclosing instance method
584 | styleTransitionKickoffWorkItem?.cancel()
585 | styleTransitionKickoffWorkItem = nil
586 | styleTransitionID += 1
587 | styleTransitionSourceStyle = nil
| |- error: setter for 'styleTransitionSourceStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
588 | styleTransitionProgress = 1
589 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:588:9: error: setter for 'styleTransitionProgress' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
581 | }
582 |
583 | private func resetStyleTransition() {
| `- note: add @available attribute to enclosing instance method
584 | styleTransitionKickoffWorkItem?.cancel()
585 | styleTransitionKickoffWorkItem = nil
586 | styleTransitionID += 1
587 | styleTransitionSourceStyle = nil
588 | styleTransitionProgress = 1
| |- error: setter for 'styleTransitionProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
589 | }
590 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:607:13: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
597 | // MARK: - Width / Text
598 |
599 | private func applyWidthAndTextUpdate(_ configuration: AwesomeButtonResolvedConfiguration, previousWidthMode: ButtonWidthMode?) {
| `- note: add @available attribute to enclosing instance method
600 | textTransitionController?.stop()
601 | delayedWidthWorkItem?.cancel()
:
605 | switch configuration.widthMode {
606 | case .stretch:
607 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
608 | resolvedWidth = nil
609 | syncTextTransitionState(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:608:13: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
597 | // MARK: - Width / Text
598 |
599 | private func applyWidthAndTextUpdate(_ configuration: AwesomeButtonResolvedConfiguration, previousWidthMode: ButtonWidthMode?) {
| `- note: add @available attribute to enclosing instance method
600 | textTransitionController?.stop()
601 | delayedWidthWorkItem?.cancel()
:
606 | case .stretch:
607 | contentClipAlignment = .center
608 | resolvedWidth = nil
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
609 | syncTextTransitionState(configuration)
610 | case .fixed:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:611:13: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
597 | // MARK: - Width / Text
598 |
599 | private func applyWidthAndTextUpdate(_ configuration: AwesomeButtonResolvedConfiguration, previousWidthMode: ButtonWidthMode?) {
| `- note: add @available attribute to enclosing instance method
600 | textTransitionController?.stop()
601 | delayedWidthWorkItem?.cancel()
:
609 | syncTextTransitionState(configuration)
610 | case .fixed:
611 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
612 | if shouldSnapWidthBridge(previous: previousWidthMode, next: .fixed) || configuration.animateSize == false {
613 | resolvedWidth = configuration.width
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:613:17: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
597 | // MARK: - Width / Text
598 |
599 | private func applyWidthAndTextUpdate(_ configuration: AwesomeButtonResolvedConfiguration, previousWidthMode: ButtonWidthMode?) {
| `- note: add @available attribute to enclosing instance method
600 | textTransitionController?.stop()
601 | delayedWidthWorkItem?.cancel()
:
611 | contentClipAlignment = .center
612 | if shouldSnapWidthBridge(previous: previousWidthMode, next: .fixed) || configuration.animateSize == false {
613 | resolvedWidth = configuration.width
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
614 | } else if abs((resolvedWidth ?? 0) - (configuration.width ?? 0)) >= 0.5 {
615 | withAnimation(sizeAnimation()) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:615:17: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
597 | // MARK: - Width / Text
598 |
599 | private func applyWidthAndTextUpdate(_ configuration: AwesomeButtonResolvedConfiguration, previousWidthMode: ButtonWidthMode?) {
| `- note: add @available attribute to enclosing instance method
600 | textTransitionController?.stop()
601 | delayedWidthWorkItem?.cancel()
:
613 | resolvedWidth = configuration.width
614 | } else if abs((resolvedWidth ?? 0) - (configuration.width ?? 0)) >= 0.5 {
615 | withAnimation(sizeAnimation()) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
616 | resolvedWidth = configuration.width
617 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:616:21: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
597 | // MARK: - Width / Text
598 |
599 | private func applyWidthAndTextUpdate(_ configuration: AwesomeButtonResolvedConfiguration, previousWidthMode: ButtonWidthMode?) {
| `- note: add @available attribute to enclosing instance method
600 | textTransitionController?.stop()
601 | delayedWidthWorkItem?.cancel()
:
614 | } else if abs((resolvedWidth ?? 0) - (configuration.width ?? 0)) >= 0.5 {
615 | withAnimation(sizeAnimation()) {
616 | resolvedWidth = configuration.width
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
617 | }
618 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:644:13: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
642 | ) {
643 | if case .fallbackToTextSync = plan {
644 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
645 | resolvedWidth = nil
646 | syncTextTransitionState(configuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:645:13: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
643 | if case .fallbackToTextSync = plan {
644 | contentClipAlignment = .center
645 | resolvedWidth = nil
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
646 | syncTextTransitionState(configuration)
647 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:657:13: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
655 | return
656 | case let .initial(targetText, targetWidth):
657 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
658 | currentTextTarget = targetText
659 | resolvedWidth = targetWidth
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:659:13: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
657 | contentClipAlignment = .center
658 | currentTextTarget = targetText
659 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
660 | displayedText = targetText
661 | case let .textOnly(sourceText, targetText, animateText):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:660:13: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
658 | currentTextTarget = targetText
659 | resolvedWidth = targetWidth
660 | displayedText = targetText
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
661 | case let .textOnly(sourceText, targetText, animateText):
662 | contentClipAlignment = .center
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:662:13: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
660 | displayedText = targetText
661 | case let .textOnly(sourceText, targetText, animateText):
662 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
663 | currentTextTarget = targetText
664 | if animateText {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:667:17: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
665 | runStringTransition(from: sourceText, to: targetText, runID: runID)
666 | } else {
667 | displayedText = targetText
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
668 | }
669 | case let .growFirst(sourceText, targetText, targetWidth, timing, animateSize, animateText):
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:670:13: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
668 | }
669 | case let .growFirst(sourceText, targetText, targetWidth, timing, animateSize, animateText):
670 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
671 | currentTextTarget = targetText
672 | if animateSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:674:21: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
672 | if animateSize {
673 | if animateText {
674 | withAnimation(sizeAnimation(duration: timing.widthDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
675 | resolvedWidth = targetWidth
676 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:675:25: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
673 | if animateText {
674 | withAnimation(sizeAnimation(duration: timing.widthDuration)) {
675 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
676 | }
677 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:678:21: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
676 | }
677 | } else {
678 | withAnimation(sizeAnimation()) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
679 | resolvedWidth = targetWidth
680 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:679:25: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
677 | } else {
678 | withAnimation(sizeAnimation()) {
679 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
680 | }
681 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:683:17: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
681 | }
682 | } else {
683 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
684 | }
685 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:697:21: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
695 | let workItem = DispatchWorkItem { [weak self] in
696 | guard let self, self.sizeRunID == runID else { return }
697 | self.displayedText = targetText
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
698 | }
699 | delayedTextWorkItem = workItem
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:706:17: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
704 | currentTextTarget = targetText
705 | if animateText {
706 | contentClipAlignment = .leading
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
707 | runStringTransition(
708 | from: sourceText,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:713:25: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
711 | onComplete: { [weak self] in
712 | guard let self, self.sizeRunID == runID, animateSize == false else { return }
713 | self.contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
714 | }
715 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:719:25: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
717 | guard let self, self.sizeRunID == runID else { return }
718 | if animateSize {
719 | withAnimation(sizeAnimation(duration: timing.widthDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
720 | self.resolvedWidth = targetWidth
721 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:720:29: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
718 | if animateSize {
719 | withAnimation(sizeAnimation(duration: timing.widthDuration)) {
720 | self.resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
721 | }
722 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:723:25: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
721 | }
722 | } else {
723 | self.resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
724 | }
725 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:732:25: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
730 | let resetWorkItem = DispatchWorkItem { [weak self] in
731 | guard let self, self.sizeRunID == runID else { return }
732 | self.contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
733 | }
734 | delayedClipAlignmentResetWorkItem = resetWorkItem
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:741:17: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
739 | }
740 | } else {
741 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
742 | displayedText = targetText
743 | if animateSize {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:742:17: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
740 | } else {
741 | contentClipAlignment = .center
742 | displayedText = targetText
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
743 | if animateSize {
744 | withAnimation(sizeAnimation()) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:744:21: error: 'withAnimation' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
742 | displayedText = targetText
743 | if animateSize {
744 | withAnimation(sizeAnimation()) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
745 | resolvedWidth = targetWidth
746 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:745:25: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
743 | if animateSize {
744 | withAnimation(sizeAnimation()) {
745 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
746 | }
747 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:748:21: error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
637 | }
638 |
639 | private func executeAutoWidthTextUpdatePlan(
| `- note: add @available attribute to enclosing instance method
640 | _ plan: AutoWidthTextUpdatePlan,
641 | configuration: AwesomeButtonResolvedConfiguration
:
746 | }
747 | } else {
748 | resolvedWidth = targetWidth
| |- error: setter for 'resolvedWidth' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
749 | }
750 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:755:9: error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
752 | }
753 |
754 | private func syncTextTransitionState(_ configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
755 | contentClipAlignment = .center
| |- error: setter for 'contentClipAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
756 | switch resolveButtonTextUpdatePlan(
757 | textTransitionEnabled: configuration.textTransition,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:764:13: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
752 | }
753 |
754 | private func syncTextTransitionState(_ configuration: AwesomeButtonResolvedConfiguration) {
| `- note: add @available attribute to enclosing instance method
755 | contentClipAlignment = .center
756 | switch resolveButtonTextUpdatePlan(
:
762 | case let .assign(nextText):
763 | currentTextTarget = nextText
764 | displayedText = nextText
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
765 | case .keep:
766 | return
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:789:13: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
773 | }
774 |
775 | private func runStringTransition(
| `- note: add @available attribute to enclosing instance method
776 | from source: String,
777 | to target: String,
:
787 | ) { [weak self] current in
788 | guard let self, self.sizeRunID == runID else { return }
789 | self.displayedText = current
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
790 | } onComplete: { [weak self] in
791 | guard let self, self.sizeRunID == runID else { return }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonController.swift:792:13: error: setter for 'displayedText' is only available in macOS 10.15 or newer
5 |
6 | @MainActor
7 | internal final class AwesomeButtonController: ObservableObject {
| `- note: add @available attribute to enclosing class
8 | @Published private(set) var renderedConfiguration: AwesomeButtonResolvedConfiguration?
9 | @Published var displayedText: String?
:
773 | }
774 |
775 | private func runStringTransition(
| `- note: add @available attribute to enclosing instance method
776 | from source: String,
777 | to target: String,
:
790 | } onComplete: { [weak self] in
791 | guard let self, self.sizeRunID == runID else { return }
792 | self.displayedText = target
| |- error: setter for 'displayedText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
793 | onComplete?()
794 | }
[21/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 | }
[22/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 | }
BUILD FAILURE 6.0 macosSpm