Build Information
Failed to build swift-awesome-button, reference main (3b4fc9), with Swift 6.1 for macOS (SPM) on 2 Sep 2026 19:54:53 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
312 | height: shadowHeight
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:314:10: error: 'position(x:y:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
304 | }
305 |
306 | private func shellStack(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
307 | ZStack(alignment: .top) {
308 | AwesomeRoundedRectangle(radii: cornerRadii)
:
312 | height: shadowHeight
313 | )
314 | .position(
| |- error: 'position(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
315 | x: shellMetrics.shellWidth / 2,
316 | y: shadowTopOffset + (shadowHeight / 2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:320:10: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
304 | }
305 |
306 | private func shellStack(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
307 | ZStack(alignment: .top) {
308 | AwesomeRoundedRectangle(radii: cornerRadii)
:
318 |
319 | AwesomeRoundedRectangle(radii: cornerRadii)
320 | .fill(depthColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
321 | .frame(width: shellMetrics.depthWidth, height: shellMetrics.shellHeight)
322 | .offset(y: raiseAmount)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:321:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
304 | }
305 |
306 | private func shellStack(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
307 | ZStack(alignment: .top) {
308 | AwesomeRoundedRectangle(radii: cornerRadii)
:
319 | AwesomeRoundedRectangle(radii: cornerRadii)
320 | .fill(depthColor)
321 | .frame(width: shellMetrics.depthWidth, height: shellMetrics.shellHeight)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
322 | .offset(y: raiseAmount)
323 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:322:10: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
304 | }
305 |
306 | private func shellStack(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
307 | ZStack(alignment: .top) {
308 | AwesomeRoundedRectangle(radii: cornerRadii)
:
320 | .fill(depthColor)
321 | .frame(width: shellMetrics.depthWidth, height: shellMetrics.shellHeight)
322 | .offset(y: raiseAmount)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
323 |
324 | faceLayer(shellMetrics: shellMetrics)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:325:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
304 | }
305 |
306 | private func shellStack(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
307 | ZStack(alignment: .top) {
308 | AwesomeRoundedRectangle(radii: cornerRadii)
:
323 |
324 | faceLayer(shellMetrics: shellMetrics)
325 | .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
326 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
327 | .offset(y: faceOffset)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:326:10: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
304 | }
305 |
306 | private func shellStack(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
307 | ZStack(alignment: .top) {
308 | AwesomeRoundedRectangle(radii: cornerRadii)
:
324 | faceLayer(shellMetrics: shellMetrics)
325 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
326 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
327 | .offset(y: faceOffset)
328 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:327:10: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
304 | }
305 |
306 | private func shellStack(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
307 | ZStack(alignment: .top) {
308 | AwesomeRoundedRectangle(radii: cornerRadii)
:
325 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
326 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
327 | .offset(y: faceOffset)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
328 | }
329 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:334:12: error: 'ZStack' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | return ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:334:19: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | return ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:334:19: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | return ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:334:19: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | return ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:334:19: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | return ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:336:10: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | return ZStack {
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
337 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
338 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:337:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
337 | .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
338 |
339 | if let extraView = configuration.extraView {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:340:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
338 |
339 | if let extraView = configuration.extraView {
340 | extraView
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
341 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
342 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:341:12: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
339 | if let extraView = configuration.extraView {
340 | extraView
341 | .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
342 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
343 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:342:12: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
340 | extraView
341 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
342 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
343 | .accessibilityHidden(true)
344 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:343:12: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
341 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
342 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
343 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
344 | }
345 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:339:50: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
337 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
338 |
339 | if let extraView = configuration.extraView {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
340 | extraView
341 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:339:50: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
337 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
338 |
339 | if let extraView = configuration.extraView {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
340 | extraView
341 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:344:7: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
342 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
343 | .accessibilityHidden(true)
344 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
345 |
346 | if controller.showProgressVisuals && configuration.showProgressBar {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:347:9: error: 'Rectangle' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
345 |
346 | if controller.showProgressVisuals && configuration.showProgressBar {
347 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
348 | .fill(progressColor)
349 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:348:12: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
346 | if controller.showProgressVisuals && configuration.showProgressBar {
347 | Rectangle()
348 | .fill(progressColor)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
349 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
350 | .offset(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:349:12: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
347 | Rectangle()
348 | .fill(progressColor)
349 | .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
350 | .offset(
351 | x: awesomeButtonProgressOffset(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:350:12: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
348 | .fill(progressColor)
349 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
350 | .offset(
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
351 | x: awesomeButtonProgressOffset(
352 | progress: controller.progressValue,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:357:12: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
355 | )
356 | )
357 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
358 | .opacity(Double(controller.progressOverlayOpacity))
359 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:358:12: error: 'opacity' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
356 | )
357 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
358 | .opacity(Double(controller.progressOverlayOpacity))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
359 | }
360 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:346:74: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
344 | }
345 |
346 | if controller.showProgressVisuals && configuration.showProgressBar {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
347 | Rectangle()
348 | .fill(progressColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:359:7: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
357 | .clipShape(AwesomeRoundedRectangle(radii: cornerRadii))
358 | .opacity(Double(controller.progressOverlayOpacity))
359 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
360 |
361 | if configuration.isPlaceholder {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:362:9: error: 'ZStack' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
360 |
361 | if configuration.isPlaceholder {
362 | ZStack(alignment: .center) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
363 | PlaceholderFace(
364 | tint: placeholderColor,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:362:28: error: 'center' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
360 |
361 | if configuration.isPlaceholder {
362 | ZStack(alignment: .center) {
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
363 | PlaceholderFace(
364 | tint: placeholderColor,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:369:12: error: 'padding' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
367 | animated: configuration.animatedPlaceholder && configuration.reduceMotion == false
368 | )
369 | .padding(.horizontal, configuration.paddingHorizontal)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
370 | .padding(.top, configuration.paddingTop)
371 | .padding(.bottom, configuration.paddingBottom)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:370:12: error: 'padding' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
368 | )
369 | .padding(.horizontal, configuration.paddingHorizontal)
370 | .padding(.top, configuration.paddingTop)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
371 | .padding(.bottom, configuration.paddingBottom)
372 | .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:371:12: error: 'padding' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
369 | .padding(.horizontal, configuration.paddingHorizontal)
370 | .padding(.top, configuration.paddingTop)
371 | .padding(.bottom, configuration.paddingBottom)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
372 | .allowsHitTesting(false)
373 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:372:12: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
370 | .padding(.top, configuration.paddingTop)
371 | .padding(.bottom, configuration.paddingBottom)
372 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
373 | }
374 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:374:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
372 | .allowsHitTesting(false)
373 | }
374 | .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
375 | .clipped()
376 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:375:10: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
373 | }
374 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
375 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
376 | } else {
377 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:361:38: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
359 | }
360 |
361 | if configuration.isPlaceholder {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
362 | ZStack(alignment: .center) {
363 | PlaceholderFace(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:377:9: error: 'ZStack' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
375 | .clipped()
376 | } else {
377 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
378 | HStack(spacing: contentGap) {
379 | if let beforeView = configuration.beforeView {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:378:11: error: 'HStack' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
376 | } else {
377 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
378 | HStack(spacing: contentGap) {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
379 | if let beforeView = configuration.beforeView {
380 | beforeView.accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:380:15: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
378 | HStack(spacing: contentGap) {
379 | if let beforeView = configuration.beforeView {
380 | beforeView.accessibilityHidden(true)
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
381 | }
382 | labelContent
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:380:26: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
378 | HStack(spacing: contentGap) {
379 | if let beforeView = configuration.beforeView {
380 | beforeView.accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
381 | }
382 | labelContent
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:379:58: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
377 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
378 | HStack(spacing: contentGap) {
379 | if let beforeView = configuration.beforeView {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
380 | beforeView.accessibilityHidden(true)
381 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:379:58: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
377 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
378 | HStack(spacing: contentGap) {
379 | if let beforeView = configuration.beforeView {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
380 | beforeView.accessibilityHidden(true)
381 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:381:13: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
379 | if let beforeView = configuration.beforeView {
380 | beforeView.accessibilityHidden(true)
381 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
382 | labelContent
383 | if let afterView = configuration.afterView {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:384:15: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
382 | labelContent
383 | if let afterView = configuration.afterView {
384 | afterView.accessibilityHidden(true)
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
385 | }
386 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:384:25: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
382 | labelContent
383 | if let afterView = configuration.afterView {
384 | afterView.accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
385 | }
386 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:383:56: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
381 | }
382 | labelContent
383 | if let afterView = configuration.afterView {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
384 | afterView.accessibilityHidden(true)
385 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:383:56: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
381 | }
382 | labelContent
383 | if let afterView = configuration.afterView {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
384 | afterView.accessibilityHidden(true)
385 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:385:13: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
383 | if let afterView = configuration.afterView {
384 | afterView.accessibilityHidden(true)
385 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
386 | }
387 | .padding(.horizontal, configuration.paddingHorizontal)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:378:39: 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
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
376 | } else {
377 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
378 | 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
379 | if let beforeView = configuration.beforeView {
380 | beforeView.accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:378:39: 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
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
376 | } else {
377 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
378 | 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
379 | if let beforeView = configuration.beforeView {
380 | beforeView.accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:387:12: error: 'padding' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
385 | }
386 | }
387 | .padding(.horizontal, configuration.paddingHorizontal)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
388 | .padding(.top, configuration.paddingTop)
389 | .padding(.bottom, configuration.paddingBottom)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:388:12: error: 'padding' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
386 | }
387 | .padding(.horizontal, configuration.paddingHorizontal)
388 | .padding(.top, configuration.paddingTop)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
389 | .padding(.bottom, configuration.paddingBottom)
390 | .fixedSize(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:389:12: error: 'padding' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
387 | .padding(.horizontal, configuration.paddingHorizontal)
388 | .padding(.top, configuration.paddingTop)
389 | .padding(.bottom, configuration.paddingBottom)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
390 | .fixedSize(
391 | horizontal: configuration.dynamicTypeSize <= .large,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:390:12: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
388 | .padding(.top, configuration.paddingTop)
389 | .padding(.bottom, configuration.paddingBottom)
390 | .fixedSize(
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
391 | horizontal: configuration.dynamicTypeSize <= .large,
392 | vertical: false
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:394:12: error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
392 | vertical: false
393 | )
394 | .background {
| |- error: 'background(alignment:content:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
395 | GeometryReader { proxy in
396 | Color.clear.preference(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:395:13: error: 'GeometryReader' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
393 | )
394 | .background {
395 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
396 | Color.clear.preference(
397 | key: AwesomeButtonAutoWidthRowPreferenceKey.self,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:396:15: error: 'Color' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
394 | .background {
395 | GeometryReader { proxy in
396 | Color.clear.preference(
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
397 | key: AwesomeButtonAutoWidthRowPreferenceKey.self,
398 | value: proxy.size.width + (borderWidth * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:396:21: error: 'clear' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
394 | .background {
395 | GeometryReader { proxy in
396 | Color.clear.preference(
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
397 | key: AwesomeButtonAutoWidthRowPreferenceKey.self,
398 | value: proxy.size.width + (borderWidth * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:396:27: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
394 | .background {
395 | GeometryReader { proxy in
396 | Color.clear.preference(
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
397 | key: AwesomeButtonAutoWidthRowPreferenceKey.self,
398 | value: proxy.size.width + (borderWidth * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:400:16: error: 'preference(key:value:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
398 | value: proxy.size.width + (borderWidth * 2)
399 | )
400 | .preference(
| |- error: 'preference(key:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
401 | key: AwesomeButtonContentHeightPreferenceKey.self,
402 | value: proxy.size.height + (borderWidth * 2)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:406:12: error: 'opacity' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
404 | }
405 | }
406 | .opacity(contentOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
407 | .scaleEffect(controller.contentTransitionValue)
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:407:12: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
405 | }
406 | .opacity(contentOpacity)
407 | .scaleEffect(controller.contentTransitionValue)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
408 | }
409 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:409:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
407 | .scaleEffect(controller.contentTransitionValue)
408 | }
409 | .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
410 | .clipped()
411 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:410:10: error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
408 | }
409 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
410 | .clipped()
| |- error: 'clipped(antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
411 |
412 | if controller.showProgressVisuals {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:414:13: error: 'Circle' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
412 | if controller.showProgressVisuals {
413 | if configuration.reduceMotion {
414 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
415 | .trim(from: 0, to: 0.72)
416 | .stroke(activityColor, style: StrokeStyle(lineWidth: 3, lineCap: .round))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:415:16: error: 'trim(from:to:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
413 | if configuration.reduceMotion {
414 | Circle()
415 | .trim(from: 0, to: 0.72)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
416 | .stroke(activityColor, style: StrokeStyle(lineWidth: 3, lineCap: .round))
417 | .frame(width: 22, height: 22)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:416:16: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
414 | Circle()
415 | .trim(from: 0, to: 0.72)
416 | .stroke(activityColor, style: StrokeStyle(lineWidth: 3, lineCap: .round))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
417 | .frame(width: 22, height: 22)
418 | .rotationEffect(.degrees(-90))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:416:45: error: 'StrokeStyle' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
414 | Circle()
415 | .trim(from: 0, to: 0.72)
416 | .stroke(activityColor, style: StrokeStyle(lineWidth: 3, lineCap: .round))
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
417 | .frame(width: 22, height: 22)
418 | .rotationEffect(.degrees(-90))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:417:16: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
415 | .trim(from: 0, to: 0.72)
416 | .stroke(activityColor, style: StrokeStyle(lineWidth: 3, lineCap: .round))
417 | .frame(width: 22, height: 22)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
418 | .rotationEffect(.degrees(-90))
419 | .opacity(activityOpacity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:418:16: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
416 | .stroke(activityColor, style: StrokeStyle(lineWidth: 3, lineCap: .round))
417 | .frame(width: 22, height: 22)
418 | .rotationEffect(.degrees(-90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
419 | .opacity(activityOpacity)
420 | .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:419:16: error: 'opacity' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
417 | .frame(width: 22, height: 22)
418 | .rotationEffect(.degrees(-90))
419 | .opacity(activityOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
420 | .allowsHitTesting(false)
421 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:420:16: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
418 | .rotationEffect(.degrees(-90))
419 | .opacity(activityOpacity)
420 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
421 | } else {
422 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:413:41: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
411 |
412 | if controller.showProgressVisuals {
413 | if configuration.reduceMotion {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
414 | Circle()
415 | .trim(from: 0, to: 0.72)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:422:13: error: 'ProgressView' is only available in macOS 11.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
420 | .allowsHitTesting(false)
421 | } else {
422 | ProgressView()
| |- error: 'ProgressView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
423 | .progressViewStyle(.circular)
424 | .tint(activityColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:422:13: error: 'init()' is only available in macOS 11.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
420 | .allowsHitTesting(false)
421 | } else {
422 | ProgressView()
| |- error: 'init()' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
423 | .progressViewStyle(.circular)
424 | .tint(activityColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:423:16: error: 'progressViewStyle' is only available in macOS 11.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
421 | } else {
422 | ProgressView()
423 | .progressViewStyle(.circular)
| |- error: 'progressViewStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
424 | .tint(activityColor)
425 | .scaleEffect(controller.activityTransitionValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:423:35: error: 'circular' is only available in macOS 11.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
421 | } else {
422 | ProgressView()
423 | .progressViewStyle(.circular)
| |- error: 'circular' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
424 | .tint(activityColor)
425 | .scaleEffect(controller.activityTransitionValue)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:424:16: error: 'tint' is only available in macOS 12.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
422 | ProgressView()
423 | .progressViewStyle(.circular)
424 | .tint(activityColor)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
425 | .scaleEffect(controller.activityTransitionValue)
426 | .opacity(activityOpacity)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:425:16: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
423 | .progressViewStyle(.circular)
424 | .tint(activityColor)
425 | .scaleEffect(controller.activityTransitionValue)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
426 | .opacity(activityOpacity)
427 | .allowsHitTesting(false)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:426:16: error: 'opacity' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
424 | .tint(activityColor)
425 | .scaleEffect(controller.activityTransitionValue)
426 | .opacity(activityOpacity)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
427 | .allowsHitTesting(false)
428 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:427:16: error: 'allowsHitTesting' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
425 | .scaleEffect(controller.activityTransitionValue)
426 | .opacity(activityOpacity)
427 | .allowsHitTesting(false)
| |- error: 'allowsHitTesting' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
428 | }
429 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:421:18: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
419 | .opacity(activityOpacity)
420 | .allowsHitTesting(false)
421 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
422 | ProgressView()
423 | .progressViewStyle(.circular)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:412:43: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
410 | .clipped()
411 |
412 | if controller.showProgressVisuals {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
413 | if configuration.reduceMotion {
414 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:412:43: 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
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
410 | .clipped()
411 |
412 | if controller.showProgressVisuals {
| |- 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
413 | if configuration.reduceMotion {
414 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:429:9: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
427 | .allowsHitTesting(false)
428 | }
429 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
430 | }
431 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:376:14: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
374 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
375 | .clipped()
376 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
377 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
378 | HStack(spacing: contentGap) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:376:14: 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
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
374 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
375 | .clipped()
376 | } 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
377 | ZStack(alignment: controller.contentClipAlignment.swiftUIAlignment) {
378 | HStack(spacing: contentGap) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:434:12: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
432 | if borderWidth > 0 {
433 | AwesomeRoundedRectangle(radii: cornerRadii)
434 | .stroke(borderColor, lineWidth: borderWidth)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
435 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
436 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:435:12: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
433 | AwesomeRoundedRectangle(radii: cornerRadii)
434 | .stroke(borderColor, lineWidth: borderWidth)
435 | .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
436 | }
437 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:432:26: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
430 | }
431 |
432 | if borderWidth > 0 {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
433 | AwesomeRoundedRectangle(radii: cornerRadii)
434 | .stroke(borderColor, lineWidth: borderWidth)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:436:7: error: 'buildIf' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
434 | .stroke(borderColor, lineWidth: borderWidth)
435 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
436 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
437 | }
438 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:334:19: 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
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | 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
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:334:19: 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
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | 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
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:334:19: 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
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | 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
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:334:19: 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
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
334 | 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
335 | AwesomeRoundedRectangle(radii: cornerRadii)
336 | .fill(faceColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:438:6: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
436 | }
437 | }
438 | .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
439 | .onPreferenceChange(AwesomeButtonContentHeightPreferenceKey.self) { measuredHeight in
440 | if configuration.dynamicTypeSize > .large {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:439:6: error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
329 | }
330 |
331 | private func faceLayer(shellMetrics: AwesomeButtonShellMetrics) -> some View {
| `- note: add @available attribute to enclosing instance method
332 | let borderWidth = interpolatedStyle.borderWidth ?? 0
333 |
:
437 | }
438 | .frame(width: shellMetrics.faceWidth, height: shellMetrics.shellHeight)
439 | .onPreferenceChange(AwesomeButtonContentHeightPreferenceKey.self) { measuredHeight in
| |- error: 'onPreferenceChange(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
440 | if configuration.dynamicTypeSize > .large {
441 | controller.updateMeasuredContentHeight(measuredHeight, configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:452:7: error: 'Text' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
450 | transitionText: controller.displayedText
451 | ) {
452 | Text(text)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
453 | .font(font)
454 | .foregroundStyle(foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:453:10: error: 'font' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
451 | ) {
452 | Text(text)
453 | .font(font)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
454 | .foregroundStyle(foregroundColor)
455 | .lineSpacing(max(0, scaledTypographyLineHeight - scaledTypographyTextSize))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:454:10: error: 'foregroundStyle' is only available in macOS 14.0 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
452 | Text(text)
453 | .font(font)
454 | .foregroundStyle(foregroundColor)
| |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
455 | .lineSpacing(max(0, scaledTypographyLineHeight - scaledTypographyTextSize))
456 | .lineLimit(configuration.dynamicTypeSize > .large ? nil : 1)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:455:10: error: 'lineSpacing' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
453 | .font(font)
454 | .foregroundStyle(foregroundColor)
455 | .lineSpacing(max(0, scaledTypographyLineHeight - scaledTypographyTextSize))
| |- error: 'lineSpacing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
456 | .lineLimit(configuration.dynamicTypeSize > .large ? nil : 1)
457 | .fixedSize(horizontal: configuration.dynamicTypeSize <= .large, vertical: true)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:456:10: error: 'lineLimit' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
454 | .foregroundStyle(foregroundColor)
455 | .lineSpacing(max(0, scaledTypographyLineHeight - scaledTypographyTextSize))
456 | .lineLimit(configuration.dynamicTypeSize > .large ? nil : 1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
457 | .fixedSize(horizontal: configuration.dynamicTypeSize <= .large, vertical: true)
458 | .scaleEffect(typographyFrame.scale)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:457:10: error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
455 | .lineSpacing(max(0, scaledTypographyLineHeight - scaledTypographyTextSize))
456 | .lineLimit(configuration.dynamicTypeSize > .large ? nil : 1)
457 | .fixedSize(horizontal: configuration.dynamicTypeSize <= .large, vertical: true)
| |- error: 'fixedSize(horizontal:vertical:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
458 | .scaleEffect(typographyFrame.scale)
459 | .transaction { transaction in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:458:10: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
456 | .lineLimit(configuration.dynamicTypeSize > .large ? nil : 1)
457 | .fixedSize(horizontal: configuration.dynamicTypeSize <= .large, vertical: true)
458 | .scaleEffect(typographyFrame.scale)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
459 | .transaction { transaction in
460 | // String replacement is package-owned. Explicit text transitions
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:459:10: error: 'transaction' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
457 | .fixedSize(horizontal: configuration.dynamicTypeSize <= .large, vertical: true)
458 | .scaleEffect(typographyFrame.scale)
459 | .transaction { transaction in
| |- error: 'transaction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
460 | // String replacement is package-owned. Explicit text transitions
461 | // provide their own frames and must not inherit a style animation.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:462:23: error: 'animation' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
460 | // String replacement is package-owned. Explicit text transitions
461 | // provide their own frames and must not inherit a style animation.
462 | transaction.animation = nil
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
463 | transaction.disablesAnimations = true
464 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:463:23: error: 'disablesAnimations' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
461 | // provide their own frames and must not inherit a style animation.
462 | transaction.animation = nil
463 | transaction.disablesAnimations = true
| |- error: 'disablesAnimations' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
464 | }
465 | } else if let labelView = configuration.labelView {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:451:7: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
450 | transitionText: controller.displayedText
451 | ) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
452 | Text(text)
453 | .font(font)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:451:7: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
450 | transitionText: controller.displayedText
451 | ) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
452 | Text(text)
453 | .font(font)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:465:55: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
463 | transaction.disablesAnimations = true
464 | }
465 | } else if let labelView = configuration.labelView {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
466 | labelView
467 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:465:55: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
463 | transaction.disablesAnimations = true
464 | }
465 | } else if let labelView = configuration.labelView {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
466 | labelView
467 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:468:7: error: 'EmptyView' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
466 | labelView
467 | } else {
468 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
469 | }
470 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:467:12: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | private var labelContent: some View {
| `- note: add @available attribute to enclosing property
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
:
465 | } else if let labelView = configuration.labelView {
466 | labelView
467 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
468 | EmptyView()
469 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:447:39: 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
32 | }
33 |
34 | internal struct AwesomeButtonBody: View, Animatable {
| `- note: add @available attribute to enclosing struct
35 | @Environment(\.layoutDirection) private var layoutDirection
36 | @ObservedObject var controller: AwesomeButtonController
:
445 |
446 | @ViewBuilder
447 | 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
448 | if let text = resolvedAwesomeButtonDisplayText(
449 | childText: configuration.childText,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:490:8: error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
488 | let base =
489 | content
490 | .accessibilityElement(children: .combine)
| |- error: 'accessibilityElement(children:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
491 | .accessibilityAddTraits(.isButton)
492 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:490:40: error: 'combine' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
488 | let base =
489 | content
490 | .accessibilityElement(children: .combine)
| |- error: 'combine' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
491 | .accessibilityAddTraits(.isButton)
492 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:491:8: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
488 | let base =
489 | content
490 | .accessibilityElement(children: .combine)
491 | .accessibilityAddTraits(.isButton)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
492 |
493 | if configuration.isPlaceholder && configuration.accessibilityLabel == nil {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:494:7: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
488 | let base =
489 | content
:
492 |
493 | if configuration.isPlaceholder && configuration.accessibilityLabel == nil {
494 | base.accessibilityHidden(true)
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
495 | } else {
496 | actions(for: state(for: identity(for: base)))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:494:12: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
488 | let base =
489 | content
:
492 |
493 | if configuration.isPlaceholder && configuration.accessibilityLabel == nil {
494 | base.accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
495 | } else {
496 | actions(for: state(for: identity(for: base)))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:493:79: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
488 | let base =
489 | content
:
491 | .accessibilityAddTraits(.isButton)
492 |
493 | if configuration.isPlaceholder && configuration.accessibilityLabel == nil {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
494 | base.accessibilityHidden(true)
495 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:493:79: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
488 | let base =
489 | content
:
491 | .accessibilityAddTraits(.isButton)
492 |
493 | if configuration.isPlaceholder && configuration.accessibilityLabel == nil {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
494 | base.accessibilityHidden(true)
495 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:496:31: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
488 | let base =
489 | content
:
494 | base.accessibilityHidden(true)
495 | } else {
496 | actions(for: state(for: identity(for: base)))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
497 | }
498 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:495:12: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> some View {
| `- note: add @available attribute to enclosing instance method
488 | let base =
489 | content
:
493 | if configuration.isPlaceholder && configuration.accessibilityLabel == nil {
494 | base.accessibilityHidden(true)
495 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
496 | actions(for: state(for: identity(for: base)))
497 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:487:44: 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
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
485 |
486 | @ViewBuilder
487 | func body(content: Content) -> 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 instance method
488 | let base =
489 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:503:7: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
499 |
500 | @ViewBuilder
501 | private func identity<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
502 | if let label = configuration.accessibilityLabel {
503 | content.accessibilityLabel(Text(label))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
504 | } else {
505 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:503:15: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
499 |
500 | @ViewBuilder
501 | private func identity<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
502 | if let label = configuration.accessibilityLabel {
503 | content.accessibilityLabel(Text(label))
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
504 | } else {
505 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:503:34: error: 'Text' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
499 |
500 | @ViewBuilder
501 | private func identity<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
502 | if let label = configuration.accessibilityLabel {
503 | content.accessibilityLabel(Text(label))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
504 | } else {
505 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:502:53: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
499 |
500 | @ViewBuilder
501 | private func identity<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
502 | if let label = configuration.accessibilityLabel {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
503 | content.accessibilityLabel(Text(label))
504 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:502:53: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
499 |
500 | @ViewBuilder
501 | private func identity<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
502 | if let label = configuration.accessibilityLabel {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
503 | content.accessibilityLabel(Text(label))
504 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:504:12: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
499 |
500 | @ViewBuilder
501 | private func identity<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
502 | if let label = configuration.accessibilityLabel {
503 | content.accessibilityLabel(Text(label))
504 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
505 | content
506 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:501:83: 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
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
499 |
500 | @ViewBuilder
501 | private func identity<ContentView: View>(for content: ContentView) -> 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 instance method
502 | if let label = configuration.accessibilityLabel {
503 | content.accessibilityLabel(Text(label))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:512:7: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
513 | } else if configuration.isPlaceholder {
514 | content.accessibilityValue(Text(AwesomeButtonLocalization.placeholderState))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:512:15: error: 'accessibilityValue' is only available in macOS 11.0 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
| |- error: 'accessibilityValue' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
513 | } else if configuration.isPlaceholder {
514 | content.accessibilityValue(Text(AwesomeButtonLocalization.placeholderState))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:512:34: error: 'Text' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
513 | } else if configuration.isPlaceholder {
514 | content.accessibilityValue(Text(AwesomeButtonLocalization.placeholderState))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:511:26: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
513 | } else if configuration.isPlaceholder {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:511:26: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
513 | } else if configuration.isPlaceholder {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:511:26: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
513 | } else if configuration.isPlaceholder {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:514:7: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
513 | } else if configuration.isPlaceholder {
514 | content.accessibilityValue(Text(AwesomeButtonLocalization.placeholderState))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
515 | } else if configuration.isEffectivelyDisabled == false,
516 | configuration.hasAtomicActivationSink,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:514:15: error: 'accessibilityValue' is only available in macOS 11.0 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
513 | } else if configuration.isPlaceholder {
514 | content.accessibilityValue(Text(AwesomeButtonLocalization.placeholderState))
| |- error: 'accessibilityValue' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
515 | } else if configuration.isEffectivelyDisabled == false,
516 | configuration.hasAtomicActivationSink,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:514:34: error: 'Text' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
513 | } else if configuration.isPlaceholder {
514 | content.accessibilityValue(Text(AwesomeButtonLocalization.placeholderState))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
515 | } else if configuration.isEffectivelyDisabled == false,
516 | configuration.hasAtomicActivationSink,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:513:43: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
513 | } else if configuration.isPlaceholder {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
514 | content.accessibilityValue(Text(AwesomeButtonLocalization.placeholderState))
515 | } else if configuration.isEffectivelyDisabled == false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:513:43: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
513 | } else if configuration.isPlaceholder {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
514 | content.accessibilityValue(Text(AwesomeButtonLocalization.placeholderState))
515 | } else if configuration.isEffectivelyDisabled == false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:513:43: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
513 | } else if configuration.isPlaceholder {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
514 | content.accessibilityValue(Text(AwesomeButtonLocalization.placeholderState))
515 | } else if configuration.isEffectivelyDisabled == false,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:519:7: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
:
517 | let hint = configuration.accessibilityHint
518 | {
519 | content.accessibilityHint(Text(hint))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
520 | } else {
521 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:519:15: error: 'accessibilityHint' is only available in macOS 11.0 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
:
517 | let hint = configuration.accessibilityHint
518 | {
519 | content.accessibilityHint(Text(hint))
| |- error: 'accessibilityHint' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
520 | } else {
521 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:519:33: error: 'Text' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
:
517 | let hint = configuration.accessibilityHint
518 | {
519 | content.accessibilityHint(Text(hint))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
520 | } else {
521 | content
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:518:5: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
:
516 | configuration.hasAtomicActivationSink,
517 | let hint = configuration.accessibilityHint
518 | {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
519 | content.accessibilityHint(Text(hint))
520 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:518:5: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
:
516 | configuration.hasAtomicActivationSink,
517 | let hint = configuration.accessibilityHint
518 | {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
519 | content.accessibilityHint(Text(hint))
520 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:518:5: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
:
516 | configuration.hasAtomicActivationSink,
517 | let hint = configuration.accessibilityHint
518 | {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
519 | content.accessibilityHint(Text(hint))
520 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:520:12: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
:
518 | {
519 | content.accessibilityHint(Text(hint))
520 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
521 | content
522 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:520:12: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
:
518 | {
519 | content.accessibilityHint(Text(hint))
520 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
521 | content
522 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:510:80: 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
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
508 |
509 | @ViewBuilder
510 | private func state<ContentView: View>(for content: ContentView) -> 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 instance method
511 | if controller.isBusy {
512 | content.accessibilityValue(Text(AwesomeButtonLocalization.busyState))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:532:7: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
530 |
531 | if hasDefault && hasLong {
532 | content
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
533 | .accessibilityAction {
534 | controller.activateAtomically(configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:533:10: error: 'accessibilityAction' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
531 | if hasDefault && hasLong {
532 | content
533 | .accessibilityAction {
| |- error: 'accessibilityAction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
534 | controller.activateAtomically(configuration: configuration)
535 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:536:10: error: 'accessibilityAction(named:_:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
534 | controller.activateAtomically(configuration: configuration)
535 | }
536 | .accessibilityAction(
| |- error: 'accessibilityAction(named:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
537 | named: Text(
538 | configuration.accessibilityLongPressLabel ?? AwesomeButtonLocalization.longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:537:18: error: 'Text' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
535 | }
536 | .accessibilityAction(
537 | named: Text(
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
538 | configuration.accessibilityLongPressLabel ?? AwesomeButtonLocalization.longPressAction
539 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:531:30: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
529 | let hasLong = eligible && configuration.onLongPress != nil
530 |
531 | if hasDefault && hasLong {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
532 | content
533 | .accessibilityAction {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:531:30: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
529 | let hasLong = eligible && configuration.onLongPress != nil
530 |
531 | if hasDefault && hasLong {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
532 | content
533 | .accessibilityAction {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:531:30: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
529 | let hasLong = eligible && configuration.onLongPress != nil
530 |
531 | if hasDefault && hasLong {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
532 | content
533 | .accessibilityAction {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:544:7: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
542 | }
543 | } else if hasDefault {
544 | content.accessibilityAction {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
545 | controller.activateAtomically(configuration: configuration)
546 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:544:15: error: 'accessibilityAction' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
542 | }
543 | } else if hasDefault {
544 | content.accessibilityAction {
| |- error: 'accessibilityAction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
545 | controller.activateAtomically(configuration: configuration)
546 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:543:26: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
541 | controller.activateLongPressAtomically(configuration: configuration)
542 | }
543 | } else if hasDefault {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
544 | content.accessibilityAction {
545 | controller.activateAtomically(configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:543:26: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
541 | controller.activateLongPressAtomically(configuration: configuration)
542 | }
543 | } else if hasDefault {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
544 | content.accessibilityAction {
545 | controller.activateAtomically(configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:543:26: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
541 | controller.activateLongPressAtomically(configuration: configuration)
542 | }
543 | } else if hasDefault {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
544 | content.accessibilityAction {
545 | controller.activateAtomically(configuration: configuration)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:548:7: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
546 | }
547 | } else if hasLong {
548 | content.accessibilityAction(
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
549 | named: Text(
550 | configuration.accessibilityLongPressLabel ?? AwesomeButtonLocalization.longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:548:15: error: 'accessibilityAction(named:_:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
546 | }
547 | } else if hasLong {
548 | content.accessibilityAction(
| |- error: 'accessibilityAction(named:_:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
549 | named: Text(
550 | configuration.accessibilityLongPressLabel ?? AwesomeButtonLocalization.longPressAction
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:549:16: error: 'Text' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
547 | } else if hasLong {
548 | content.accessibilityAction(
549 | named: Text(
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
550 | configuration.accessibilityLongPressLabel ?? AwesomeButtonLocalization.longPressAction
551 | )
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:547:23: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
545 | controller.activateAtomically(configuration: configuration)
546 | }
547 | } else if hasLong {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
548 | content.accessibilityAction(
549 | named: Text(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:547:23: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
545 | controller.activateAtomically(configuration: configuration)
546 | }
547 | } else if hasLong {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
548 | content.accessibilityAction(
549 | named: Text(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:547:23: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
545 | controller.activateAtomically(configuration: configuration)
546 | }
547 | } else if hasLong {
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
548 | content.accessibilityAction(
549 | named: Text(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:555:12: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
553 | controller.activateLongPressAtomically(configuration: configuration)
554 | }
555 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
556 | content
557 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:555:12: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> some View {
| `- note: add @available attribute to enclosing instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
:
553 | controller.activateLongPressAtomically(configuration: configuration)
554 | }
555 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
556 | content
557 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftAwesomeButton/AwesomeButtonBody.swift:526:82: 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
480 | }
481 |
482 | private struct AwesomeButtonAccessibilityModifier: ViewModifier {
| `- note: add @available attribute to enclosing struct
483 | @ObservedObject var controller: AwesomeButtonController
484 | let configuration: AwesomeButtonResolvedConfiguration
:
524 |
525 | @ViewBuilder
526 | private func actions<ContentView: View>(for content: ContentView) -> 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 instance method
527 | let eligible = configuration.isEffectivelyDisabled == false && controller.isBusy == false
528 | let hasDefault = eligible && configuration.hasAtomicActivationSink
BUILD FAILURE 6.1 macosSpm