Build Information
Failed to build Billboard, reference 1.0.2 (c6c74e), with Swift 6.3 for macOS (SPM) on 21 Apr 2026 13:28:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:34:33: error: 'default' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:35:22: error: 'transition' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
36 | .contentTransition(.numericText(value: seconds))
37 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:35:34: error: 'identity' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
| |- error: 'identity' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
36 | .contentTransition(.numericText(value: seconds))
37 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:36:22: error: 'contentTransition' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
| |- error: 'contentTransition' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
37 | .onReceive(timer) { _ in
38 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:36:41: error: 'numericText(value:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
| |- error: 'numericText(value:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
37 | .onReceive(timer) { _ in
38 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:37:22: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
37 | .onReceive(timer) { _ in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | if seconds > 0 {
39 | seconds -= 1
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:39:29: error: cannot pass as inout because setter for 'seconds' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
37 | .onReceive(timer) { _ in
38 | if seconds > 0 {
39 | seconds -= 1
| |- error: cannot pass as inout because setter for 'seconds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:29:40: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:29:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:42:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
40 | }
41 | }
42 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | Text("\(seconds, specifier: "%.0f")")
44 | .font(.compatibleSystem(.caption, design: .rounded, weight: .bold)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: 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
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | 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
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: 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
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | 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
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: 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
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | 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
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:54:10: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
52 | }
53 | }
54 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .rotationEffect(.degrees(-90))
56 | .frame(width: 32, height: 32)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:55:10: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
53 | }
54 | .foregroundColor(advert.tint)
55 | .rotationEffect(.degrees(-90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .frame(width: 32, height: 32)
57 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:56:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
54 | .foregroundColor(advert.tint)
55 | .rotationEffect(.degrees(-90))
56 | .frame(width: 32, height: 32)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .onAppear {
58 | seconds = totalDuration
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:57:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
55 | .rotationEffect(.degrees(-90))
56 | .frame(width: 32, height: 32)
57 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:58:13: error: setter for 'seconds' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
56 | .frame(width: 32, height: 32)
57 | .onAppear {
58 | seconds = totalDuration
| |- error: setter for 'seconds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | withAnimation(.linear(duration: totalDuration)) {
60 | timerProgress = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:59:13: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
57 | .onAppear {
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | timerProgress = 1.0
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:59:28: error: 'linear(duration:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
57 | .onAppear {
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | timerProgress = 1.0
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:60:17: error: setter for 'timerProgress' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
60 | timerProgress = 1.0
| |- error: setter for 'timerProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:63:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
61 | }
62 | }
63 | .onChange(of: seconds) { _ in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
64 | if seconds < 1 {
65 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:65:17: error: setter for 'canDismiss' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
63 | .onChange(of: seconds) { _ in
64 | if seconds < 1 {
65 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:68:10: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
66 | }
67 | }
68 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | #if DEBUG
70 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:70:13: error: setter for 'canDismiss' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add '@available' attribute to enclosing property
23 | ZStack {
24 | Circle()
:
68 | .onTapGesture {
69 | #if DEBUG
70 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | #endif
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:79:9: error: 'ZStack' is only available in macOS 10.15 or newer
75 |
76 |
77 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
78 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
79 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
81 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:80:57: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
75 |
76 |
77 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
78 | static var previews: some View {
| `- note: add '@available' attribute to enclosing static property
79 | ZStack {
80 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
81 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
82 | }
[#ResultBuilderMethods]: <https://docs.swift.org/compiler/documentation/diagnostics/result-builder-methods>
[19/26] Compiling Billboard BillboardDismissButton.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:11:20: error: 'dismiss' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
12 |
13 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:14:9: error: 'Button' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | dismiss()
16 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:16:18: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
| |- warning: conformance of 'Text' 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
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:16:18: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
| |- warning: conformance of 'Image' 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
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:17:13: error: 'Label' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:17:13: error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
| |- error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:17:19: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:18:18: error: 'labelStyle' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
| |- error: 'labelStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
20 | .symbolRenderingMode(.hierarchical)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:18:30: error: 'iconOnly' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
| |- error: 'iconOnly' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
20 | .symbolRenderingMode(.hierarchical)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:19:18: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:19:42: error: 'title2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:20:18: error: 'symbolRenderingMode' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
20 | .symbolRenderingMode(.hierarchical)
| |- error: 'symbolRenderingMode' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
21 | .imageScale(.large)
22 | .controlSize(.large)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:21:18: error: 'imageScale' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
| |- error: 'imageScale' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
22 | .controlSize(.large)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:22:18: error: 'controlSize' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
22 | .controlSize(.large)
| |- error: 'controlSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:22:31: error: 'large' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
22 | .controlSize(.large)
| |- error: 'large' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:43:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
45 | .fill(advert.background)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:52:31: error: 'View' is only available in macOS 10.15 or newer
49 | }
50 |
51 | struct BillboardImageView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
52 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
53 | BillboardImageView(advert: BillboardSamples.sampleFullScreenAd)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:14:9: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
| |- 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
15 | switch phase {
16 | case .empty:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:14:9: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
| |- 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
15 | switch phase {
16 | case .empty:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:14:9: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
| |- 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
15 | switch phase {
16 | case .empty:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- 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
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:19:21: error: 'ProgressView' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
17 | ZStack {
18 | plainBackground
19 | ProgressView()
| |- error: 'ProgressView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | .tint(advert.tint)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:19:21: error: 'init()' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
17 | ZStack {
18 | plainBackground
19 | ProgressView()
| |- error: 'init()' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | .tint(advert.tint)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:20:26: error: 'tint' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
18 | plainBackground
19 | ProgressView()
20 | .tint(advert.tint)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
21 | }
22 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:22:18: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
20 | .tint(advert.tint)
21 | }
22 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | case .success(let image):
24 | image
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- 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
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:24:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
22 | .accessibilityHidden(true)
23 | case .success(let image):
24 | image
| |- 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
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:25:22: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
23 | case .success(let image):
24 | image
25 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .aspectRatio(contentMode: .fit)
27 | .frame(maxWidth: 640)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:26:22: error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
24 | image
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
| |- error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .frame(maxWidth: 640)
28 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:27:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
27 | .frame(maxWidth: 640)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .padding()
29 | .accessibilityLabel(Text(advert.name))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:28:22: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
26 | .aspectRatio(contentMode: .fit)
27 | .frame(maxWidth: 640)
28 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | .accessibilityLabel(Text(advert.name))
30 | .accessibilityAddTraits(.isImage)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:29:22: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
27 | .frame(maxWidth: 640)
28 | .padding()
29 | .accessibilityLabel(Text(advert.name))
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
30 | .accessibilityAddTraits(.isImage)
31 | default:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:29:41: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
27 | .frame(maxWidth: 640)
28 | .padding()
29 | .accessibilityLabel(Text(advert.name))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .accessibilityAddTraits(.isImage)
31 | default:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:30:22: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
28 | .padding()
29 | .accessibilityLabel(Text(advert.name))
30 | .accessibilityAddTraits(.isImage)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
31 | default:
32 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:24:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
22 | .accessibilityHidden(true)
23 | case .success(let image):
24 | image
| |- 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
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:24:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
22 | .accessibilityHidden(true)
23 | case .success(let image):
24 | image
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:24:17: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
22 | .accessibilityHidden(true)
23 | case .success(let image):
24 | image
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:32:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
30 | .accessibilityAddTraits(.isImage)
31 | default:
32 | ZStack {
| |- 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
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:32:17: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
30 | .accessibilityAddTraits(.isImage)
31 | default:
32 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:34:21: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
32 | ZStack {
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .foregroundColor(advert.tint)
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:34:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
32 | ZStack {
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
35 | .foregroundColor(advert.tint)
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:35:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
35 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | }
37 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:37:18: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
35 | .foregroundColor(advert.tint)
36 | }
37 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
38 |
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:32:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
30 | .accessibilityAddTraits(.isImage)
31 | default:
32 | ZStack {
| |- 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
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:32:17: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
30 | .accessibilityAddTraits(.isImage)
31 | default:
32 | ZStack {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:14:55: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
| |- 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
15 | switch phase {
16 | case .empty:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:13:25: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: 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
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:13:25: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: 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
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:20:39: error: 'identity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
:
16 | let content: (AsyncImagePhase) -> Content
17 |
18 | init(url: String,
| `- note: add '@available' attribute to enclosing initializer
19 | animation: Animation? = nil,
20 | transition: AnyTransition = .identity,
| `- error: 'identity' is only available in macOS 10.15 or newer
21 | @ViewBuilder content: @escaping (AsyncImagePhase) -> Content) {
22 | self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:44:9: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .fill(advert.background)
46 | .aspectRatio(1.0, contentMode: .fill)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:45:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
45 | .fill(advert.background)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
46 | .aspectRatio(1.0, contentMode: .fill)
47 | .frame(maxWidth: 640)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:46:14: error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
45 | .fill(advert.background)
46 | .aspectRatio(1.0, contentMode: .fill)
| |- error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(maxWidth: 640)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:47:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
45 | .fill(advert.background)
46 | .aspectRatio(1.0, contentMode: .fill)
47 | .frame(maxWidth: 640)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
[20/26] Compiling Billboard BillboardImageView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:11:20: error: 'dismiss' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
12 |
13 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:14:9: error: 'Button' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | dismiss()
16 | } label: {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:16:18: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
| |- warning: conformance of 'Text' 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
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:16:18: warning: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
| |- warning: conformance of 'Image' 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
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:17:13: error: 'Label' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
| |- error: 'Label' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:17:13: error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
| |- error: 'init(_:systemImage:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:17:19: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:18:18: error: 'labelStyle' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
| |- error: 'labelStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
20 | .symbolRenderingMode(.hierarchical)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:18:30: error: 'iconOnly' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
16 | } label: {
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
| |- error: 'iconOnly' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
20 | .symbolRenderingMode(.hierarchical)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:19:18: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:19:42: error: 'title2' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
17 | Label("Dismiss advertisement", systemImage: "xmark.circle.fill")
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
| |- error: 'title2' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:20:18: error: 'symbolRenderingMode' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
18 | .labelStyle(.iconOnly)
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
20 | .symbolRenderingMode(.hierarchical)
| |- error: 'symbolRenderingMode' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
21 | .imageScale(.large)
22 | .controlSize(.large)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:21:18: error: 'imageScale' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
19 | .font(.compatibleSystem(.title2, design: .rounded, weight: .bold))
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
| |- error: 'imageScale' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
22 | .controlSize(.large)
23 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:22:18: error: 'controlSize' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
22 | .controlSize(.large)
| |- error: 'controlSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardDismissButton.swift:22:31: error: 'large' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardDismissButton : View {
| `- note: add '@available' attribute to enclosing struct
11 | @Environment(\.dismiss) var dismiss
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | Button {
15 | dismiss()
:
20 | .symbolRenderingMode(.hierarchical)
21 | .imageScale(.large)
22 | .controlSize(.large)
| |- error: 'large' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:43:40: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
45 | .fill(advert.background)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:52:31: error: 'View' is only available in macOS 10.15 or newer
49 | }
50 |
51 | struct BillboardImageView_Previews: PreviewProvider {
| `- note: add '@available' attribute to enclosing struct
52 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing static property
53 | BillboardImageView(advert: BillboardSamples.sampleFullScreenAd)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:14:9: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
| |- 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
15 | switch phase {
16 | case .empty:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:14:9: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
| |- 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
15 | switch phase {
16 | case .empty:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:14:9: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
| |- 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
15 | switch phase {
16 | case .empty:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- 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
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:19:21: error: 'ProgressView' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
17 | ZStack {
18 | plainBackground
19 | ProgressView()
| |- error: 'ProgressView' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | .tint(advert.tint)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:19:21: error: 'init()' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
17 | ZStack {
18 | plainBackground
19 | ProgressView()
| |- error: 'init()' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
20 | .tint(advert.tint)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:20:26: error: 'tint' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
18 | plainBackground
19 | ProgressView()
20 | .tint(advert.tint)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
21 | }
22 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:22:18: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
20 | .tint(advert.tint)
21 | }
22 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
23 | case .success(let image):
24 | image
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- 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
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:17:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
16 | case .empty:
17 | ZStack {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | plainBackground
19 | ProgressView()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:24:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
22 | .accessibilityHidden(true)
23 | case .success(let image):
24 | image
| |- 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
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:25:22: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
23 | case .success(let image):
24 | image
25 | .resizable()
| |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | .aspectRatio(contentMode: .fit)
27 | .frame(maxWidth: 640)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:26:22: error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
24 | image
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
| |- error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .frame(maxWidth: 640)
28 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:27:22: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
27 | .frame(maxWidth: 640)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .padding()
29 | .accessibilityLabel(Text(advert.name))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:28:22: error: 'padding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
26 | .aspectRatio(contentMode: .fit)
27 | .frame(maxWidth: 640)
28 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | .accessibilityLabel(Text(advert.name))
30 | .accessibilityAddTraits(.isImage)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:29:22: error: 'accessibilityLabel' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
27 | .frame(maxWidth: 640)
28 | .padding()
29 | .accessibilityLabel(Text(advert.name))
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
30 | .accessibilityAddTraits(.isImage)
31 | default:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:29:41: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
27 | .frame(maxWidth: 640)
28 | .padding()
29 | .accessibilityLabel(Text(advert.name))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | .accessibilityAddTraits(.isImage)
31 | default:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:30:22: error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
28 | .padding()
29 | .accessibilityLabel(Text(advert.name))
30 | .accessibilityAddTraits(.isImage)
| |- error: 'accessibilityAddTraits' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
31 | default:
32 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:24:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
22 | .accessibilityHidden(true)
23 | case .success(let image):
24 | image
| |- 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
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:24:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
22 | .accessibilityHidden(true)
23 | case .success(let image):
24 | image
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:24:17: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
22 | .accessibilityHidden(true)
23 | case .success(let image):
24 | image
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .resizable()
26 | .aspectRatio(contentMode: .fit)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:32:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
30 | .accessibilityAddTraits(.isImage)
31 | default:
32 | ZStack {
| |- 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
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:32:17: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
30 | .accessibilityAddTraits(.isImage)
31 | default:
32 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:34:21: error: 'Image' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
32 | ZStack {
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
| |- error: 'Image' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .foregroundColor(advert.tint)
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:34:21: error: 'init(systemName:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
32 | ZStack {
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
| |- error: 'init(systemName:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
35 | .foregroundColor(advert.tint)
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:35:26: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
35 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | }
37 | .accessibilityHidden(true)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:37:18: error: 'accessibilityHidden' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
35 | .foregroundColor(advert.tint)
36 | }
37 | .accessibilityHidden(true)
| |- error: 'accessibilityHidden' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
38 |
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:32:17: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
30 | .accessibilityAddTraits(.isImage)
31 | default:
32 | ZStack {
| |- 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
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:32:17: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
:
30 | .accessibilityAddTraits(.isImage)
31 | default:
32 | ZStack {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | plainBackground
34 | Image(systemName: "bolt.slash.fill")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:14:55: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| `- note: add '@available' attribute to enclosing property
14 | CachedImage(url: advert.media.absoluteString) { phase in
| |- 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
15 | switch phase {
16 | case .empty:
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:13:25: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: 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
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:13:25: 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
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: 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
14 | CachedImage(url: advert.media.absoluteString) { phase in
15 | switch phase {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImage.swift:20:39: error: 'identity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct CachedImage<Content: View>: View {
| `- note: add '@available' attribute to enclosing generic struct
11 |
12 | @StateObject private var manager = CachedImageManager()
:
16 | let content: (AsyncImagePhase) -> Content
17 |
18 | init(url: String,
| `- note: add '@available' attribute to enclosing initializer
19 | animation: Animation? = nil,
20 | transition: AnyTransition = .identity,
| `- error: 'identity' is only available in macOS 10.15 or newer
21 | @ViewBuilder content: @escaping (AsyncImagePhase) -> Content) {
22 | self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:44:9: error: 'Rectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | .fill(advert.background)
46 | .aspectRatio(1.0, contentMode: .fill)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:45:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
45 | .fill(advert.background)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
46 | .aspectRatio(1.0, contentMode: .fill)
47 | .frame(maxWidth: 640)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:46:14: error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
45 | .fill(advert.background)
46 | .aspectRatio(1.0, contentMode: .fill)
| |- error: 'aspectRatio(_:contentMode:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | .frame(maxWidth: 640)
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardImageView.swift:47:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardImageView : View {
| `- note: add '@available' attribute to enclosing struct
11 | let advert : BillboardAd
12 |
:
41 | }
42 |
43 | private var plainBackground : some View {
| `- note: add '@available' attribute to enclosing property
44 | Rectangle()
45 | .fill(advert.background)
46 | .aspectRatio(1.0, contentMode: .fill)
47 | .frame(maxWidth: 640)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | }
49 | }
[21/26] Compiling Billboard BillboardAd.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:58:29: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
56 | public let transparent : Bool
57 |
58 | public var background : Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
59 | return Color(hex: self.backgroundColor)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:62:23: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
60 | }
61 |
62 | public var text : Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
63 | return Color(hex: self.textColor)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:66:23: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
64 | }
65 |
66 | public var tint : Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
67 | return Color(hex: self.tintColor)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:59:16: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
56 | public let transparent : Bool
57 |
58 | public var background : Color {
| `- note: add '@available' attribute to enclosing property
59 | return Color(hex: self.backgroundColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:63:16: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
60 | }
61 |
62 | public var text : Color {
| `- note: add '@available' attribute to enclosing property
63 | return Color(hex: self.textColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:67:16: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
64 | }
65 |
66 | public var tint : Color {
| `- note: add '@available' attribute to enclosing property
67 | return Color(hex: self.tintColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:81:47: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
73 | }
74 |
75 | public func getAppIcon() async throws -> Data? {
| `- note: add '@available' attribute to enclosing instance method
76 | guard let appIconURL else { return nil }
77 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
:
79 |
80 | do {
81 | let (data, _) = try await session.data(from: appIconURL)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
82 | let decoder = JSONDecoder()
83 | let response = try decoder.decode(AppIconResponse.self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:11:34: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:11:56: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:13:80: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:20:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | let config : BillboardConfiguration
22 | let paywall: () -> V
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:24:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
22 | let paywall: () -> V
23 |
24 | @ObservedObject private var monitor : BillboardViewModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:26:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @ObservedObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
31 | }
32 |
33 | @State private var advertisement: BillboardAd? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
34 | @State private var showPaywall = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
32 |
33 | @State private var advertisement: BillboardAd? = nil
34 | @State private var showPaywall = false
| `- error: 'State' is only available in macOS 10.15 or newer
35 |
36 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:36:48: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
34 | @State private var showPaywall = false
35 |
36 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
37 | content
38 | .onChange(of: showAd.wrappedValue) { show in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:18:40: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:14:14: 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
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- 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
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:14:14: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:30:9: error: setter for 'monitor' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @ObservedObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| `- note: add '@available' attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
29 | self.paywall = paywall
30 | self.monitor = BillboardViewModel(configuration: config)
| |- error: setter for 'monitor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:45:45: error: cannot assign to property: '$monitor' is immutable
43 | }
44 | }
45 | .fullScreenCover(item: $monitor.advertisement, onDismiss: { showAd.wrappedValue = false }) { advert in
| `- error: cannot assign to property: '$monitor' is immutable
46 | BillboardView(advert: advert, config: config, paywall: { paywall() })
47 | }
[22/26] Compiling Billboard BillboardAdResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:58:29: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
56 | public let transparent : Bool
57 |
58 | public var background : Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
59 | return Color(hex: self.backgroundColor)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:62:23: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
60 | }
61 |
62 | public var text : Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
63 | return Color(hex: self.textColor)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:66:23: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
64 | }
65 |
66 | public var tint : Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
67 | return Color(hex: self.tintColor)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:59:16: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
56 | public let transparent : Bool
57 |
58 | public var background : Color {
| `- note: add '@available' attribute to enclosing property
59 | return Color(hex: self.backgroundColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:63:16: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
60 | }
61 |
62 | public var text : Color {
| `- note: add '@available' attribute to enclosing property
63 | return Color(hex: self.textColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:67:16: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
64 | }
65 |
66 | public var tint : Color {
| `- note: add '@available' attribute to enclosing property
67 | return Color(hex: self.tintColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:81:47: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
73 | }
74 |
75 | public func getAppIcon() async throws -> Data? {
| `- note: add '@available' attribute to enclosing instance method
76 | guard let appIconURL else { return nil }
77 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
:
79 |
80 | do {
81 | let (data, _) = try await session.data(from: appIconURL)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
82 | let decoder = JSONDecoder()
83 | let response = try decoder.decode(AppIconResponse.self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:11:34: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:11:56: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:13:80: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:20:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | let config : BillboardConfiguration
22 | let paywall: () -> V
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:24:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
22 | let paywall: () -> V
23 |
24 | @ObservedObject private var monitor : BillboardViewModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:26:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @ObservedObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
31 | }
32 |
33 | @State private var advertisement: BillboardAd? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
34 | @State private var showPaywall = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
32 |
33 | @State private var advertisement: BillboardAd? = nil
34 | @State private var showPaywall = false
| `- error: 'State' is only available in macOS 10.15 or newer
35 |
36 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:36:48: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
34 | @State private var showPaywall = false
35 |
36 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
37 | content
38 | .onChange(of: showAd.wrappedValue) { show in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:18:40: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:14:14: 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
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- 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
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:14:14: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:30:9: error: setter for 'monitor' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @ObservedObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| `- note: add '@available' attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
29 | self.paywall = paywall
30 | self.monitor = BillboardViewModel(configuration: config)
| |- error: setter for 'monitor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:45:45: error: cannot assign to property: '$monitor' is immutable
43 | }
44 | }
45 | .fullScreenCover(item: $monitor.advertisement, onDismiss: { showAd.wrappedValue = false }) { advert in
| `- error: cannot assign to property: '$monitor' is immutable
46 | BillboardView(advert: advert, config: config, paywall: { paywall() })
47 | }
[23/26] Compiling Billboard AdvertisementViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:58:29: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
56 | public let transparent : Bool
57 |
58 | public var background : Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
59 | return Color(hex: self.backgroundColor)
60 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:62:23: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
60 | }
61 |
62 | public var text : Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
63 | return Color(hex: self.textColor)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:66:23: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
64 | }
65 |
66 | public var tint : Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing property
67 | return Color(hex: self.tintColor)
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:59:16: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
56 | public let transparent : Bool
57 |
58 | public var background : Color {
| `- note: add '@available' attribute to enclosing property
59 | return Color(hex: self.backgroundColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | }
61 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:63:16: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
60 | }
61 |
62 | public var text : Color {
| `- note: add '@available' attribute to enclosing property
63 | return Color(hex: self.textColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | }
65 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:67:16: error: 'Color' is only available in macOS 10.15 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
64 | }
65 |
66 | public var tint : Color {
| `- note: add '@available' attribute to enclosing property
67 | return Color(hex: self.tintColor)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:81:47: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: add '@available' attribute to enclosing struct
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
:
73 | }
74 |
75 | public func getAppIcon() async throws -> Data? {
| `- note: add '@available' attribute to enclosing instance method
76 | guard let appIconURL else { return nil }
77 | let session = URLSession(configuration: BillboardViewModel.networkConfiguration)
:
79 |
80 | do {
81 | let (data, _) = try await session.data(from: appIconURL)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
82 | let decoder = JSONDecoder()
83 | let response = try decoder.decode(AppIconResponse.self, from: data)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:11:34: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:11:56: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:13:80: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:20:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | let config : BillboardConfiguration
22 | let paywall: () -> V
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:24:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
22 | let paywall: () -> V
23 |
24 | @ObservedObject private var monitor : BillboardViewModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:26:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @ObservedObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
31 | }
32 |
33 | @State private var advertisement: BillboardAd? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
34 | @State private var showPaywall = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
32 |
33 | @State private var advertisement: BillboardAd? = nil
34 | @State private var showPaywall = false
| `- error: 'State' is only available in macOS 10.15 or newer
35 |
36 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:36:48: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
34 | @State private var showPaywall = false
35 |
36 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing instance method
37 | content
38 | .onChange(of: showAd.wrappedValue) { show in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:18:40: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:14:14: 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
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- 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
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:14:14: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add '@available' attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add '@available' attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:30:9: error: setter for 'monitor' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add '@available' attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @ObservedObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| `- note: add '@available' attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
29 | self.paywall = paywall
30 | self.monitor = BillboardViewModel(configuration: config)
| |- error: setter for 'monitor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/AdvertisementViewModifier.swift:45:45: error: cannot assign to property: '$monitor' is immutable
43 | }
44 | }
45 | .fullScreenCover(item: $monitor.advertisement, onDismiss: { showAd.wrappedValue = false }) { advert in
| `- error: cannot assign to property: '$monitor' is immutable
46 | BillboardView(advert: advert, config: config, paywall: { paywall() })
47 | }
[24/26] Compiling Billboard CachedImageManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
| `- error: 'Published' is only available in macOS 10.15 or newer
13 |
14 | private let imageRetriver = ImageRetriver()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:10:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
<unknown>:0: error: cannot convert value of type 'KeyPath<CachedImageManager, CachedImageManager.CurrentState?>' to expected argument type 'ReferenceWritableKeyPath<CachedImageManager, CachedImageManager.CurrentState?>'
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:20:9: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
20 | self.currentState = .loading
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 |
22 | if let imageData = cache.object(forkey: imgUrl as NSString) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:23:13: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
:
21 |
22 | if let imageData = cache.object(forkey: imgUrl as NSString) {
23 | self.currentState = .success(data: imageData)
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | return
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:29:13: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
:
27 | do {
28 | let data = try await imageRetriver.fetch(imgUrl)
29 | self.currentState = .success(data: data)
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | cache.set(object: data as NSData,
31 | forKey: imgUrl as NSString)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:33:13: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
:
31 | forKey: imgUrl as NSString)
32 | } catch {
33 | self.currentState = .failed(error: error)
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/ImageRetriever.swift:17:53: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
8 | import Foundation
9 |
10 | struct ImageRetriver {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | func fetch(_ imgUrl: String) async throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
13 | guard let url = URL(string: imgUrl) else {
14 | throw RetriverError.invalidUrl
15 | }
16 |
17 | let (data, _) = try await URLSession.shared.data(from: url)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
18 | return data
19 | }
[25/26] Compiling Billboard ImageCache.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
| `- error: 'Published' is only available in macOS 10.15 or newer
13 |
14 | private let imageRetriver = ImageRetriver()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:10:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
<unknown>:0: error: cannot convert value of type 'KeyPath<CachedImageManager, CachedImageManager.CurrentState?>' to expected argument type 'ReferenceWritableKeyPath<CachedImageManager, CachedImageManager.CurrentState?>'
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:20:9: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
20 | self.currentState = .loading
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 |
22 | if let imageData = cache.object(forkey: imgUrl as NSString) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:23:13: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
:
21 |
22 | if let imageData = cache.object(forkey: imgUrl as NSString) {
23 | self.currentState = .success(data: imageData)
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | return
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:29:13: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
:
27 | do {
28 | let data = try await imageRetriver.fetch(imgUrl)
29 | self.currentState = .success(data: data)
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | cache.set(object: data as NSData,
31 | forKey: imgUrl as NSString)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:33:13: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
:
31 | forKey: imgUrl as NSString)
32 | } catch {
33 | self.currentState = .failed(error: error)
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/ImageRetriever.swift:17:53: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
8 | import Foundation
9 |
10 | struct ImageRetriver {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | func fetch(_ imgUrl: String) async throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
13 | guard let url = URL(string: imgUrl) else {
14 | throw RetriverError.invalidUrl
15 | }
16 |
17 | let (data, _) = try await URLSession.shared.data(from: url)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
18 | return data
19 | }
[26/26] Compiling Billboard ImageRetriever.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:12:6: error: 'Published' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
| `- error: 'Published' is only available in macOS 10.15 or newer
13 |
14 | private let imageRetriver = ImageRetriver()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:10:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
<unknown>:0: error: cannot convert value of type 'KeyPath<CachedImageManager, CachedImageManager.CurrentState?>' to expected argument type 'ReferenceWritableKeyPath<CachedImageManager, CachedImageManager.CurrentState?>'
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:20:9: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
20 | self.currentState = .loading
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 |
22 | if let imageData = cache.object(forkey: imgUrl as NSString) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:23:13: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
:
21 |
22 | if let imageData = cache.object(forkey: imgUrl as NSString) {
23 | self.currentState = .success(data: imageData)
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | return
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:29:13: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
:
27 | do {
28 | let data = try await imageRetriver.fetch(imgUrl)
29 | self.currentState = .success(data: data)
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | cache.set(object: data as NSData,
31 | forKey: imgUrl as NSString)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/CachedImageManager.swift:33:13: error: setter for 'currentState' is only available in macOS 10.15 or newer
8 | import Foundation
9 |
10 | final class CachedImageManager: ObservableObject {
| `- note: add '@available' attribute to enclosing class
11 |
12 | @Published private(set) var currentState: CurrentState?
:
15 |
16 | @MainActor
17 | func load(_ imgUrl: String,
| `- note: add '@available' attribute to enclosing instance method
18 | cache: ImageCache = .shared) async {
19 |
:
31 | forKey: imgUrl as NSString)
32 | } catch {
33 | self.currentState = .failed(error: error)
| |- error: setter for 'currentState' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/CachedImage/ImageRetriever.swift:17:53: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
8 | import Foundation
9 |
10 | struct ImageRetriver {
| `- note: add '@available' attribute to enclosing struct
11 |
12 | func fetch(_ imgUrl: String) async throws -> Data {
| `- note: add '@available' attribute to enclosing instance method
13 | guard let url = URL(string: imgUrl) else {
14 | throw RetriverError.invalidUrl
15 | }
16 |
17 | let (data, _) = try await URLSession.shared.data(from: url)
| |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
18 | return data
19 | }
BUILD FAILURE 6.3 macosSpm