Build Information
Failed to build Billboard, reference 1.0.2 (c6c74e
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 23:44:25 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:24:13: 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 {
24 | Circle()
| |- 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
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:24:13: error: 'Circle' 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()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:25:18: error: 'stroke(_:style:antialiased:)' 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()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:25:37: error: 'opacity' 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()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:25:58: error: 'StrokeStyle' 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()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:26:13: 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 {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
| |- 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
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:26:13: error: 'Circle' 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()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:27:18: error: 'trim(from:to:)' 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()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:28:18: error: 'stroke(_:style:antialiased:)' 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()
:
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:28:45: error: 'StrokeStyle' 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()
:
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:17: error: 'Text' 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()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:17: error: 'init(_:tableName:bundle:comment:)' 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()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:22: error: 'LocalizedStringKey' 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()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:24: warning: conformance of 'Double' to '_FormatSpecifiable' 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 {
24 | Circle()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- warning: conformance of 'Double' to '_FormatSpecifiable' 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
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:31:22: error: 'font' 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()
:
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:31:90: error: 'monospacedDigit()' is only available in macOS 12.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()
:
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
| |- error: 'monospacedDigit()' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:32:22: 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()
:
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:33:22: error: 'minimumScaleFactor' 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()
:
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
| |- error: 'minimumScaleFactor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:34:22: error: 'animation(_:value:)' 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: '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 | }
[17/25] 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: 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: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: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: 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: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: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: 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: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: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 | }
[18/25] 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: 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: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: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: 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: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: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: 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: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: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 | }
[19/25] Compiling Billboard BillboardSamples.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Color+Hex.swift:10:11: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | init(hex: String) {
12 | let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Color+Hex.swift:27:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| `- note: add @available attribute to enclosing extension
11 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
12 | let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
13 | var int: UInt64 = 0
:
25 | }
26 |
27 | self.init(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .sRGB,
29 | red: Double(r) / 255,
[20/25] Compiling Billboard Color+Hex.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Color+Hex.swift:10:11: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | init(hex: String) {
12 | let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Color+Hex.swift:27:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| `- note: add @available attribute to enclosing extension
11 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
12 | let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
13 | var int: UInt64 = 0
:
25 | }
26 |
27 | self.init(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .sRGB,
29 | red: Double(r) / 255,
[21/25] Compiling Billboard Logger+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Logger+Ext.swift:15:28: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| `- note: add @available attribute to enclosing extension
11 | /// Using your bundle identifier is a great way to ensure a unique identifier.
12 | private static var subsystem = Bundle.main.bundleIdentifier!
13 |
14 | /// Logs coming from the Billboard SPM
15 | static let billboard = Logger(subsystem: subsystem, category: "Billboard")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Logger+Ext.swift:10:11: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
11 | /// Using your bundle identifier is a great way to ensure a unique identifier.
12 | private static var subsystem = Bundle.main.bundleIdentifier!
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct BillboardAdInfoLabel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | BillboardAdInfoLabel(advert: BillboardSamples.sampleDefaultAd)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:14:9: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:14: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 BillboardAdInfoLabel: 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 | 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
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:15:13: 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 BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
| |- 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
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:15:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:16:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:16:35: error: 'opacity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:17:13: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
19 | .foregroundColor(advert.tint)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:18:18: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .foregroundColor(advert.tint)
20 | .offset(x:0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:18:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
19 | .foregroundColor(advert.tint)
20 | .offset(x:0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:19:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
:
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
19 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .offset(x:0.5)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:20:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
:
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
19 | .foregroundColor(advert.tint)
20 | .offset(x:0.5)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | }
22 | .frame(width: 22, height: 14)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:14: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 BillboardAdInfoLabel: 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 | 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
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:22:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
:
20 | .offset(x:0.5)
21 | }
22 | .frame(width: 22, height: 14)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
[22/25] Compiling Billboard BillboardAdInfoLabel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Logger+Ext.swift:15:28: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| `- note: add @available attribute to enclosing extension
11 | /// Using your bundle identifier is a great way to ensure a unique identifier.
12 | private static var subsystem = Bundle.main.bundleIdentifier!
13 |
14 | /// Logs coming from the Billboard SPM
15 | static let billboard = Logger(subsystem: subsystem, category: "Billboard")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Logger+Ext.swift:10:11: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | extension Logger {
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing extension
11 | /// Using your bundle identifier is a great way to ensure a unique identifier.
12 | private static var subsystem = Bundle.main.bundleIdentifier!
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:13:20: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:27:31: error: 'View' is only available in macOS 10.15 or newer
24 | }
25 |
26 | struct BillboardAdInfoLabel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
27 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
28 | BillboardAdInfoLabel(advert: BillboardSamples.sampleDefaultAd)
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:14:9: error: 'ZStack' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:14: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 BillboardAdInfoLabel: 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 | 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
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:15:13: 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 BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
| |- 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
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:15:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:16:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:16:35: error: 'opacity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:17:13: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
19 | .foregroundColor(advert.tint)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:18:18: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
19 | .foregroundColor(advert.tint)
20 | .offset(x:0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:18:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
19 | .foregroundColor(advert.tint)
20 | .offset(x:0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:19:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
:
17 | Text("AD")
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
19 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | .offset(x:0.5)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:20:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
:
18 | .font(.system(size: 8, weight: .heavy, design: .rounded))
19 | .foregroundColor(advert.tint)
20 | .offset(x:0.5)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | }
22 | .frame(width: 22, height: 14)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:14: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 BillboardAdInfoLabel: 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 | 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
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
16 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardAdInfoLabel.swift:22:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardAdInfoLabel: 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 | ZStack {
15 | RoundedRectangle(cornerRadius: 4, style: .continuous)
:
20 | .offset(x:0.5)
21 | }
22 | .frame(width: 22, height: 14)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | }
24 | }
[23/25] 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()
<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: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?
/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 | }
[24/25] 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()
<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: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?
/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/25] 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()
<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: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?
/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.1 macosSpm