Build Information
Failed to build Billboard, reference main (989b71
), with Swift 6.0 for macOS (SPM) on 3 Dec 2024 07:01:40 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
| `- note: add 'if #available' version check
160 | loadingNewIcon = false
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:159:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
146 |
147 |
148 | private func fetchAppIcon() async {
| `- note: add @available attribute to enclosing instance method
149 | do {
150 | loadingNewIcon = true
:
157 | }
158 | } catch {
159 | Logger.billboard.error("\(error.localizedDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
160 | loadingNewIcon = false
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:159:38: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
146 |
147 |
148 | private func fetchAppIcon() async {
| `- note: add @available attribute to enclosing instance method
149 | do {
150 | loadingNewIcon = true
:
157 | }
158 | } catch {
159 | Logger.billboard.error("\(error.localizedDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
160 | loadingNewIcon = false
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:160:13: error: setter for 'loadingNewIcon' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
146 |
147 |
148 | private func fetchAppIcon() async {
| `- note: add @available attribute to enclosing instance method
149 | do {
150 | loadingNewIcon = true
:
158 | } catch {
159 | Logger.billboard.error("\(error.localizedDescription)")
160 | loadingNewIcon = false
| |- error: setter for 'loadingNewIcon' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | }
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:166:9: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:167:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:167:37: error: 'gradient' is only available in macOS 13.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
| |- error: 'gradient' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:168:14: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:168:21: error: 'Color' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:168:27: error: 'primary' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
| |- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:168:35: error: 'opacity' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:169:14: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:169:62: error: 'opacity' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:169:77: error: 'Color' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:169:83: error: 'clear' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:20:31: error: 'publish(every:tolerance:on:in:options:)' 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
:
18 | @State private var timerProgress : CGFloat = 0.0
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
| `- error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
21 |
22 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:20:73: error: 'autoconnect()' 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
:
18 | @State private var timerProgress : CGFloat = 0.0
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
| `- error: 'autoconnect()' is only available in macOS 10.15 or newer
21 |
22 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:14:6: error: 'Binding' 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
13 | let totalDuration : TimeInterval
14 | @Binding var canDismiss : Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 |
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:17:6: error: 'State' 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
:
15 |
16 |
17 | @State private var seconds : Double = 15
| `- error: 'State' is only available in macOS 10.15 or newer
18 | @State private var timerProgress : CGFloat = 0.0
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:18:6: error: 'State' 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
:
16 |
17 | @State private var seconds : Double = 15
18 | @State private var timerProgress : CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:22:20: error: 'View' 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 {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
23 | #if os(tvOS)
24 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:112:31: error: 'View' is only available in macOS 10.15 or newer
109 |
110 |
111 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
112 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
113 | ZStack {
114 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60:9: error: 'ZStack' 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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60: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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | 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
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60: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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | 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
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:61: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 | #if os(tvOS)
24 | ZStack {
:
59 | #else
60 | ZStack {
61 | 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
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
63 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:61: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 | #if os(tvOS)
24 | ZStack {
:
59 | #else
60 | ZStack {
61 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
63 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:62: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 | #if os(tvOS)
24 | ZStack {
:
60 | ZStack {
61 | Circle()
62 | .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
63 |
64 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:62: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 | #if os(tvOS)
24 | ZStack {
:
60 | ZStack {
61 | Circle()
62 | .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
63 |
64 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:62: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 | #if os(tvOS)
24 | ZStack {
:
60 | ZStack {
61 | Circle()
62 | .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
63 |
64 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:65: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 | #if os(tvOS)
24 | ZStack {
:
63 |
64 |
65 | 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
66 | .trim(from: 0, to: timerProgress)
67 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:65: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 | #if os(tvOS)
24 | ZStack {
:
63 |
64 |
65 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | .trim(from: 0, to: timerProgress)
67 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:66: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 | #if os(tvOS)
24 | ZStack {
:
64 |
65 | Circle()
66 | .trim(from: 0, to: timerProgress)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
68 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:67: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 | #if os(tvOS)
24 | ZStack {
:
65 | Circle()
66 | .trim(from: 0, to: timerProgress)
67 | .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
68 |
69 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:67: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 | #if os(tvOS)
24 | ZStack {
:
65 | Circle()
66 | .trim(from: 0, to: timerProgress)
67 | .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
68 |
69 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:70:13: 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 | #if os(tvOS)
24 | ZStack {
:
68 |
69 |
70 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:70:13: 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 | #if os(tvOS)
24 | ZStack {
:
68 |
69 |
70 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:70:18: 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 | #if os(tvOS)
24 | ZStack {
:
68 |
69 |
70 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:70:20: 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 | #if os(tvOS)
24 | ZStack {
:
68 |
69 |
70 | 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
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:71:18: 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 | #if os(tvOS)
24 | ZStack {
:
69 |
70 | Text("\(seconds, specifier: "%.0f")")
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:71:24: error: 'system(_:design:weight:)' 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 | #if os(tvOS)
24 | ZStack {
:
69 |
70 | Text("\(seconds, specifier: "%.0f")")
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:71:75: error: 'monospacedDigit()' 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 | #if os(tvOS)
24 | ZStack {
:
69 |
70 | Text("\(seconds, specifier: "%.0f")")
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
| |- error: 'monospacedDigit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:72:18: 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 | #if os(tvOS)
24 | ZStack {
:
70 | Text("\(seconds, specifier: "%.0f")")
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:73:18: 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 | #if os(tvOS)
24 | ZStack {
:
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
| |- error: 'minimumScaleFactor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:74:18: 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 | #if os(tvOS)
24 | ZStack {
:
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:74:29: 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 | #if os(tvOS)
24 | ZStack {
:
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:75:18: 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 | #if os(tvOS)
24 | ZStack {
:
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
76 | .contentTransition(.numericText(value: seconds))
77 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:75:30: 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 | #if os(tvOS)
24 | ZStack {
:
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
| |- error: 'identity' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
76 | .contentTransition(.numericText(value: seconds))
77 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:76:18: 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 | #if os(tvOS)
24 | ZStack {
:
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
| |- error: 'contentTransition' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
77 | .onReceive(timer) { _ in
78 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:76:37: 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 | #if os(tvOS)
24 | ZStack {
:
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
| |- error: 'numericText(value:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
77 | .onReceive(timer) { _ in
78 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:77:18: 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 | #if os(tvOS)
24 | ZStack {
:
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
77 | .onReceive(timer) { _ in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | if seconds > 0 {
79 | seconds -= 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:79:25: 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 | #if os(tvOS)
24 | ZStack {
:
77 | .onReceive(timer) { _ in
78 | if seconds > 0 {
79 | 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
80 | }
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60: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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | 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
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60: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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | 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
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:86: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 | #if os(tvOS)
24 | ZStack {
:
84 | .foregroundStyle(.primary)
85 | #else
86 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | #endif
88 | .rotationEffect(.degrees(-90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:88: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 | #if os(tvOS)
24 | ZStack {
:
86 | .foregroundColor(advert.tint)
87 | #endif
88 | .rotationEffect(.degrees(-90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .frame(width: 32, height: 32)
90 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:89: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 | #if os(tvOS)
24 | ZStack {
:
87 | #endif
88 | .rotationEffect(.degrees(-90))
89 | .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
90 | .onAppear {
91 | seconds = totalDuration
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:90: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 | #if os(tvOS)
24 | ZStack {
:
88 | .rotationEffect(.degrees(-90))
89 | .frame(width: 32, height: 32)
90 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | seconds = totalDuration
92 | withAnimation(.linear(duration: totalDuration)) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:91: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 | #if os(tvOS)
24 | ZStack {
:
89 | .frame(width: 32, height: 32)
90 | .onAppear {
91 | seconds = totalDuration
| |- error: setter for 'seconds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | withAnimation(.linear(duration: totalDuration)) {
93 | timerProgress = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:92: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 | #if os(tvOS)
24 | ZStack {
:
90 | .onAppear {
91 | seconds = totalDuration
92 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | timerProgress = 1.0
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:92: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 | #if os(tvOS)
24 | ZStack {
:
90 | .onAppear {
91 | seconds = totalDuration
92 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | timerProgress = 1.0
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:93: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 | #if os(tvOS)
24 | ZStack {
:
91 | seconds = totalDuration
92 | withAnimation(.linear(duration: totalDuration)) {
93 | timerProgress = 1.0
| |- error: setter for 'timerProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:96:10: error: 'onChange(of:initial:_:)' 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 | #if os(tvOS)
24 | ZStack {
:
94 | }
95 | }
96 | .onChange(of: seconds, {
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
97 | if seconds < 1 {
98 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:98: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 | #if os(tvOS)
24 | ZStack {
:
96 | .onChange(of: seconds, {
97 | if seconds < 1 {
98 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 | })
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:101: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 | #if os(tvOS)
24 | ZStack {
:
99 | }
100 | })
101 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | #if DEBUG
103 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:103: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 | #if os(tvOS)
24 | ZStack {
:
101 | .onTapGesture {
102 | #if DEBUG
103 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | #endif
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:113:9: error: 'ZStack' is only available in macOS 10.15 or newer
109 |
110 |
111 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
112 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
113 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
115 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:114:57: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
109 |
110 |
111 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
112 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
113 | ZStack {
114 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
115 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
116 | }
[27/30] Compiling Billboard BillboardCountdownView.swift
/Users/admin/builder/spi-builder-workspace/Sources/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 | #if os(tvOS)
15 | Text("AD")
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:42:31: error: 'View' is only available in macOS 10.15 or newer
39 | }
40 |
41 | struct BillboardAdInfoLabel_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
42 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
43 | BillboardAdInfoLabel(advert: BillboardSamples.sampleDefaultAd)
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:27:9: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
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 | #if os(tvOS)
15 | Text("AD")
:
25 | }
26 | #else
27 | 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
28 | RoundedRectangle(cornerRadius: 4, style: .continuous)
29 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:27: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 | #if os(tvOS)
15 | Text("AD")
:
25 | }
26 | #else
27 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | RoundedRectangle(cornerRadius: 4, style: .continuous)
29 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:27: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 | #if os(tvOS)
15 | Text("AD")
:
25 | }
26 | #else
27 | 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
28 | RoundedRectangle(cornerRadius: 4, style: .continuous)
29 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:28: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 | #if os(tvOS)
15 | Text("AD")
:
26 | #else
27 | ZStack {
28 | 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
29 | .fill(advert.tint.opacity(0.15))
30 | Text("AD")
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:28: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 | #if os(tvOS)
15 | Text("AD")
:
26 | #else
27 | ZStack {
28 | RoundedRectangle(cornerRadius: 4, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | .fill(advert.tint.opacity(0.15))
30 | Text("AD")
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:29: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 | #if os(tvOS)
15 | Text("AD")
:
27 | ZStack {
28 | RoundedRectangle(cornerRadius: 4, style: .continuous)
29 | .fill(advert.tint.opacity(0.15))
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
30 | Text("AD")
31 | .font(.system(size: 8, weight: .heavy, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:29: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 | #if os(tvOS)
15 | Text("AD")
:
27 | ZStack {
28 | RoundedRectangle(cornerRadius: 4, style: .continuous)
29 | .fill(advert.tint.opacity(0.15))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | Text("AD")
31 | .font(.system(size: 8, weight: .heavy, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:30: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 | #if os(tvOS)
15 | Text("AD")
:
28 | RoundedRectangle(cornerRadius: 4, style: .continuous)
29 | .fill(advert.tint.opacity(0.15))
30 | Text("AD")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.system(size: 8, weight: .heavy, design: .rounded))
32 | .foregroundColor(advert.tint)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:31: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 | #if os(tvOS)
15 | Text("AD")
:
29 | .fill(advert.tint.opacity(0.15))
30 | Text("AD")
31 | .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
32 | .foregroundColor(advert.tint)
33 | .offset(x:0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:31: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 | #if os(tvOS)
15 | Text("AD")
:
29 | .fill(advert.tint.opacity(0.15))
30 | Text("AD")
31 | .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
32 | .foregroundColor(advert.tint)
33 | .offset(x:0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:32: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 | #if os(tvOS)
15 | Text("AD")
:
30 | Text("AD")
31 | .font(.system(size: 8, weight: .heavy, design: .rounded))
32 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .offset(x:0.5)
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:33: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 | #if os(tvOS)
15 | Text("AD")
:
31 | .font(.system(size: 8, weight: .heavy, design: .rounded))
32 | .foregroundColor(advert.tint)
33 | .offset(x:0.5)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | }
35 | .frame(width: 22, height: 14)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:27: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 | #if os(tvOS)
15 | Text("AD")
:
25 | }
26 | #else
27 | 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
28 | RoundedRectangle(cornerRadius: 4, style: .continuous)
29 | .fill(advert.tint.opacity(0.15))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:35: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 | #if os(tvOS)
15 | Text("AD")
:
33 | .offset(x:0.5)
34 | }
35 | .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
36 | .accessibilityLabel(Text("Advertisement"))
37 | #endif
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:36:10: error: 'accessibilityLabel' is only available in macOS 11.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 | #if os(tvOS)
15 | Text("AD")
:
34 | }
35 | .frame(width: 22, height: 14)
36 | .accessibilityLabel(Text("Advertisement"))
| |- error: 'accessibilityLabel' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
37 | #endif
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:36:29: 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 | #if os(tvOS)
15 | Text("AD")
:
34 | }
35 | .frame(width: 22, height: 14)
36 | .accessibilityLabel(Text("Advertisement"))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | #endif
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardAdInfoLabel.swift:13:25: 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 BillboardAdInfoLabel: View {
| `- note: add @available attribute to enclosing struct
11 | let advert : BillboardAd
12 |
13 | var body: some View {
| | |- 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
| `- note: add @available attribute to enclosing property
14 | #if os(tvOS)
15 | Text("AD")
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:11:20: error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
| `- error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
12 | @Environment(\.openURL) private var openURL
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:12:20: error: 'openURL' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
| `- error: 'openURL' is only available in macOS 11.0 or newer
13 |
14 | let advert : BillboardAd
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:20:34: error: cannot find type 'UIImage' in scope
18 |
19 | @State private var canDismiss = false
20 | @State private var appIcon : UIImage? = nil
| `- error: cannot find type 'UIImage' in scope
21 | @State private var showAdvertisement = true
22 | @State private var loadingNewIcon = true
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 | @Environment(\.openURL) private var openURL
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:12:6: error: 'Environment' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
| `- error: 'Environment' is only available in macOS 10.15 or newer
13 |
14 | let advert : BillboardAd
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
17 | let hideDismissButtonAndTimer : Bool
18 |
19 | @State private var canDismiss = false
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var appIcon : UIImage? = nil
21 | @State private var showAdvertisement = true
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
18 |
19 | @State private var canDismiss = false
20 | @State private var appIcon : UIImage? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
21 | @State private var showAdvertisement = true
22 | @State private var loadingNewIcon = true
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:21:6: error: 'State' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
19 | @State private var canDismiss = false
20 | @State private var appIcon : UIImage? = nil
21 | @State private var showAdvertisement = true
| `- error: 'State' is only available in macOS 10.15 or newer
22 | @State private var loadingNewIcon = true
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
20 | @State private var appIcon : UIImage? = nil
21 | @State private var showAdvertisement = true
22 | @State private var loadingNewIcon = true
| `- error: 'State' is only available in macOS 10.15 or newer
23 |
24 | public init(advert: BillboardAd, config: BillboardConfiguration = BillboardConfiguration(), includeShadow: Bool = true, hideDismissButtonAndTimer: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:31:27: error: 'View' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
29 | }
30 |
31 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 |
33 | ZStack(alignment: .trailing) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:165:31: error: 'View' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:164:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
162 | }
163 |
164 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
165 | var backgroundView : some View {
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:173:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
171 | }
172 |
173 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
174 | VStack {
175 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:174:5: error: 'VStack' is only available in macOS 10.15 or newer
172 |
173 | #Preview {
174 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
175 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
176 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd, hideDismissButtonAndTimer: true)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:178:6: error: 'padding' is only available in macOS 10.15 or newer
176 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd, hideDismissButtonAndTimer: true)
177 | }
178 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
179 | }
180 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardTextView.swift:45:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
43 | }
44 |
45 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
46 | BillboardTextView(advert: BillboardSamples.sampleDefaultAd)
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardView.swift:202:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
200 |
201 |
202 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
203 | BillboardView(advert: BillboardSamples.sampleDefaultAd) {
204 | VStack {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardView.swift:204:9: error: 'VStack' is only available in macOS 10.15 or newer
202 | #Preview {
203 | BillboardView(advert: BillboardSamples.sampleDefaultAd) {
204 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
205 | Spacer()
206 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardView.swift:205:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
203 | BillboardView(advert: BillboardSamples.sampleDefaultAd) {
204 | VStack {
205 | Spacer()
| |- warning: conformance of 'Spacer' 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
206 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
207 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardView.swift:205:13: error: 'Spacer' is only available in macOS 10.15 or newer
203 | BillboardView(advert: BillboardSamples.sampleDefaultAd) {
204 | VStack {
205 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
206 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
207 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardView.swift:207:13: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
205 | Spacer()
206 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
207 | Spacer()
| |- warning: conformance of 'Spacer' 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
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardView.swift:207:13: error: 'Spacer' is only available in macOS 10.15 or newer
205 | Spacer()
206 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
207 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
208 | }
209 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardView.swift:204:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
202 | #Preview {
203 | BillboardView(advert: BillboardSamples.sampleDefaultAd) {
204 | VStack {
| |- warning: conformance of 'Spacer' 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
205 | Spacer()
206 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardView.swift:204:16: warning: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
202 | #Preview {
203 | BillboardView(advert: BillboardSamples.sampleDefaultAd) {
204 | VStack {
| |- warning: conformance of 'Spacer' 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
205 | Spacer()
206 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
/Users/admin/builder/spi-builder-workspace/Sources/Views/DefaultAdView.swift:74:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
72 | }
73 |
74 | #Preview {
| `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
75 | DefaultAdView(advert: BillboardSamples.sampleDefaultAd)
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:150:13: error: setter for 'loadingNewIcon' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
146 |
147 |
148 | private func fetchAppIcon() async {
| `- note: add @available attribute to enclosing instance method
149 | do {
150 | loadingNewIcon = true
| |- error: setter for 'loadingNewIcon' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | let imageData = try await advert.getAppIcon()
152 | if let imageData {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:154:31: error: cannot find 'UIImage' in scope
152 | if let imageData {
153 | await MainActor.run {
154 | appIcon = UIImage(data: imageData)
| `- error: cannot find 'UIImage' in scope
155 | loadingNewIcon = false
156 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/Logger+Ext.swift:12: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 | /// Logs coming from the Billboard SPM
12 | static let billboard = Logger(subsystem: Bundle.main.bundleIdentifier ?? "Billboard Package", category: "Billboard")
| | `- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add @available attribute to enclosing static property
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:159:13: error: 'Logger' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
146 |
147 |
148 | private func fetchAppIcon() async {
| `- note: add @available attribute to enclosing instance method
149 | do {
150 | loadingNewIcon = true
:
157 | }
158 | } catch {
159 | Logger.billboard.error("\(error.localizedDescription)")
| |- error: 'Logger' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
160 | loadingNewIcon = false
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:159:36: error: 'OSLogMessage' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
146 |
147 |
148 | private func fetchAppIcon() async {
| `- note: add @available attribute to enclosing instance method
149 | do {
150 | loadingNewIcon = true
:
157 | }
158 | } catch {
159 | Logger.billboard.error("\(error.localizedDescription)")
| |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
160 | loadingNewIcon = false
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:159:38: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
146 |
147 |
148 | private func fetchAppIcon() async {
| `- note: add @available attribute to enclosing instance method
149 | do {
150 | loadingNewIcon = true
:
157 | }
158 | } catch {
159 | Logger.billboard.error("\(error.localizedDescription)")
| |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
160 | loadingNewIcon = false
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:160:13: error: setter for 'loadingNewIcon' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
146 |
147 |
148 | private func fetchAppIcon() async {
| `- note: add @available attribute to enclosing instance method
149 | do {
150 | loadingNewIcon = true
:
158 | } catch {
159 | Logger.billboard.error("\(error.localizedDescription)")
160 | loadingNewIcon = false
| |- error: setter for 'loadingNewIcon' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
161 | }
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:166:9: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:167:14: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:167:37: error: 'gradient' is only available in macOS 13.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
| |- error: 'gradient' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:168:14: error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
| |- error: 'stroke(_:lineWidth:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:168:21: error: 'Color' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:168:27: error: 'primary' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
| |- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:168:35: error: 'opacity' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:169:14: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
| |- error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:169:62: error: 'opacity' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:169:77: error: 'Color' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardBannerView.swift:169:83: error: 'clear' is only available in macOS 10.15 or newer
8 | import OSLog
9 |
10 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
11 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
12 | @Environment(\.openURL) private var openURL
:
163 |
164 | @ViewBuilder
165 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
166 | RoundedRectangle(cornerRadius: 16, style: .continuous)
167 | .fill(advert.background.gradient)
168 | .stroke(Color.primary.opacity(0.1), lineWidth: 1)
169 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
| |- error: 'clear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:20:31: error: 'publish(every:tolerance:on:in:options:)' 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
:
18 | @State private var timerProgress : CGFloat = 0.0
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
| `- error: 'publish(every:tolerance:on:in:options:)' is only available in macOS 10.15 or newer
21 |
22 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:20:73: error: 'autoconnect()' 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
:
18 | @State private var timerProgress : CGFloat = 0.0
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
| `- error: 'autoconnect()' is only available in macOS 10.15 or newer
21 |
22 | var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:14:6: error: 'Binding' 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
13 | let totalDuration : TimeInterval
14 | @Binding var canDismiss : Bool
| `- error: 'Binding' is only available in macOS 10.15 or newer
15 |
16 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:17:6: error: 'State' 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
:
15 |
16 |
17 | @State private var seconds : Double = 15
| `- error: 'State' is only available in macOS 10.15 or newer
18 | @State private var timerProgress : CGFloat = 0.0
19 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:18:6: error: 'State' 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
:
16 |
17 | @State private var seconds : Double = 15
18 | @State private var timerProgress : CGFloat = 0.0
| `- error: 'State' is only available in macOS 10.15 or newer
19 |
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:22:20: error: 'View' 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 {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
23 | #if os(tvOS)
24 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:112:31: error: 'View' is only available in macOS 10.15 or newer
109 |
110 |
111 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
112 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
113 | ZStack {
114 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60:9: error: 'ZStack' 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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60: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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | 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
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60: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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | 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
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:61: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 | #if os(tvOS)
24 | ZStack {
:
59 | #else
60 | ZStack {
61 | 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
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
63 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:61: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 | #if os(tvOS)
24 | ZStack {
:
59 | #else
60 | ZStack {
61 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
63 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:62: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 | #if os(tvOS)
24 | ZStack {
:
60 | ZStack {
61 | Circle()
62 | .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
63 |
64 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:62: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 | #if os(tvOS)
24 | ZStack {
:
60 | ZStack {
61 | Circle()
62 | .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
63 |
64 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:62: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 | #if os(tvOS)
24 | ZStack {
:
60 | ZStack {
61 | Circle()
62 | .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
63 |
64 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:65: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 | #if os(tvOS)
24 | ZStack {
:
63 |
64 |
65 | 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
66 | .trim(from: 0, to: timerProgress)
67 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:65: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 | #if os(tvOS)
24 | ZStack {
:
63 |
64 |
65 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | .trim(from: 0, to: timerProgress)
67 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:66: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 | #if os(tvOS)
24 | ZStack {
:
64 |
65 | Circle()
66 | .trim(from: 0, to: timerProgress)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
68 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:67: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 | #if os(tvOS)
24 | ZStack {
:
65 | Circle()
66 | .trim(from: 0, to: timerProgress)
67 | .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
68 |
69 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:67: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 | #if os(tvOS)
24 | ZStack {
:
65 | Circle()
66 | .trim(from: 0, to: timerProgress)
67 | .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
68 |
69 |
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:70:13: 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 | #if os(tvOS)
24 | ZStack {
:
68 |
69 |
70 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:70:13: 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 | #if os(tvOS)
24 | ZStack {
:
68 |
69 |
70 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:70:18: 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 | #if os(tvOS)
24 | ZStack {
:
68 |
69 |
70 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:70:20: 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 | #if os(tvOS)
24 | ZStack {
:
68 |
69 |
70 | 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
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:71:18: 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 | #if os(tvOS)
24 | ZStack {
:
69 |
70 | Text("\(seconds, specifier: "%.0f")")
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:71:24: error: 'system(_:design:weight:)' 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 | #if os(tvOS)
24 | ZStack {
:
69 |
70 | Text("\(seconds, specifier: "%.0f")")
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:71:75: error: 'monospacedDigit()' 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 | #if os(tvOS)
24 | ZStack {
:
69 |
70 | Text("\(seconds, specifier: "%.0f")")
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
| |- error: 'monospacedDigit()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:72:18: 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 | #if os(tvOS)
24 | ZStack {
:
70 | Text("\(seconds, specifier: "%.0f")")
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:73:18: 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 | #if os(tvOS)
24 | ZStack {
:
71 | .font(.system(.caption, design: .rounded, weight: .heavy).monospacedDigit())
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
| |- error: 'minimumScaleFactor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:74:18: 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 | #if os(tvOS)
24 | ZStack {
:
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:74:29: 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 | #if os(tvOS)
24 | ZStack {
:
72 | .rotationEffect(.degrees(90))
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:75:18: 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 | #if os(tvOS)
24 | ZStack {
:
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
76 | .contentTransition(.numericText(value: seconds))
77 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:75:30: 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 | #if os(tvOS)
24 | ZStack {
:
73 | .minimumScaleFactor(0.5)
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
| |- error: 'identity' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
76 | .contentTransition(.numericText(value: seconds))
77 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:76:18: 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 | #if os(tvOS)
24 | ZStack {
:
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
| |- error: 'contentTransition' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
77 | .onReceive(timer) { _ in
78 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:76:37: 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 | #if os(tvOS)
24 | ZStack {
:
74 | .animation(.default, value: seconds)
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
| |- error: 'numericText(value:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
77 | .onReceive(timer) { _ in
78 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:77:18: 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 | #if os(tvOS)
24 | ZStack {
:
75 | .transition(.identity)
76 | .contentTransition(.numericText(value: seconds))
77 | .onReceive(timer) { _ in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | if seconds > 0 {
79 | seconds -= 1
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:79:25: 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 | #if os(tvOS)
24 | ZStack {
:
77 | .onReceive(timer) { _ in
78 | if seconds > 0 {
79 | 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
80 | }
81 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60: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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | 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
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:60: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 | #if os(tvOS)
24 | ZStack {
:
58 | })
59 | #else
60 | 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
61 | Circle()
62 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:86: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 | #if os(tvOS)
24 | ZStack {
:
84 | .foregroundStyle(.primary)
85 | #else
86 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | #endif
88 | .rotationEffect(.degrees(-90))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:88: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 | #if os(tvOS)
24 | ZStack {
:
86 | .foregroundColor(advert.tint)
87 | #endif
88 | .rotationEffect(.degrees(-90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .frame(width: 32, height: 32)
90 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:89: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 | #if os(tvOS)
24 | ZStack {
:
87 | #endif
88 | .rotationEffect(.degrees(-90))
89 | .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
90 | .onAppear {
91 | seconds = totalDuration
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:90: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 | #if os(tvOS)
24 | ZStack {
:
88 | .rotationEffect(.degrees(-90))
89 | .frame(width: 32, height: 32)
90 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | seconds = totalDuration
92 | withAnimation(.linear(duration: totalDuration)) {
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:91: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 | #if os(tvOS)
24 | ZStack {
:
89 | .frame(width: 32, height: 32)
90 | .onAppear {
91 | seconds = totalDuration
| |- error: setter for 'seconds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | withAnimation(.linear(duration: totalDuration)) {
93 | timerProgress = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:92: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 | #if os(tvOS)
24 | ZStack {
:
90 | .onAppear {
91 | seconds = totalDuration
92 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | timerProgress = 1.0
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:92: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 | #if os(tvOS)
24 | ZStack {
:
90 | .onAppear {
91 | seconds = totalDuration
92 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | timerProgress = 1.0
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:93: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 | #if os(tvOS)
24 | ZStack {
:
91 | seconds = totalDuration
92 | withAnimation(.linear(duration: totalDuration)) {
93 | timerProgress = 1.0
| |- error: setter for 'timerProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:96:10: error: 'onChange(of:initial:_:)' 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 | #if os(tvOS)
24 | ZStack {
:
94 | }
95 | }
96 | .onChange(of: seconds, {
| |- error: 'onChange(of:initial:_:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
97 | if seconds < 1 {
98 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:98: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 | #if os(tvOS)
24 | ZStack {
:
96 | .onChange(of: seconds, {
97 | if seconds < 1 {
98 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
99 | }
100 | })
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:101: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 | #if os(tvOS)
24 | ZStack {
:
99 | }
100 | })
101 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | #if DEBUG
103 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:103: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 | #if os(tvOS)
24 | ZStack {
:
101 | .onTapGesture {
102 | #if DEBUG
103 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
104 | #endif
105 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:113:9: error: 'ZStack' is only available in macOS 10.15 or newer
109 |
110 |
111 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
112 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
113 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
114 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
115 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
/Users/admin/builder/spi-builder-workspace/Sources/Views/BillboardCountdownView.swift:114:57: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
109 |
110 |
111 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
112 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
113 | ZStack {
114 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
115 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
116 | }
[28/30] Compiling Billboard AdvertisementViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:11:34: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:11:56: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:13:80: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:20:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | let config : BillboardConfiguration
22 | let paywall: () -> V
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:24:6: error: 'StateObject' is only available in macOS 11.0 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
22 | let paywall: () -> V
23 |
24 | @StateObject private var monitor : BillboardViewModel
| `- error: 'StateObject' is only available in macOS 11.0 or newer
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:26:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @StateObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
31 | }
32 |
33 | @State private var advertisement: BillboardAd? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
34 | @State private var showPaywall = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
32 |
33 | @State private var advertisement: BillboardAd? = nil
34 | @State private var showPaywall = false
| `- error: 'State' is only available in macOS 10.15 or newer
35 |
36 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:36:48: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
34 | @State private var showPaywall = false
35 |
36 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
37 | content
38 | .onChange(of: showAd.wrappedValue, {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:18:40: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:14:14: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:14:14: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:30:25: error: 'StateObject' is only available in macOS 11.0 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @StateObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| `- note: add @available attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
29 | self.paywall = paywall
30 | self._monitor = StateObject(wrappedValue: BillboardViewModel(configuration: config))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:45:45: error: cannot assign to property: '$monitor' is immutable
43 | }
44 | })
45 | .fullScreenCover(item: $monitor.advertisement, onDismiss: { showAd.wrappedValue = false }) { advert in
| `- error: cannot assign to property: '$monitor' is immutable
46 | BillboardView(advert: advert, config: config, paywall: { paywall() })
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/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/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,
[29/30] Compiling Billboard BillboardSamples.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:11:34: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:11:56: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:13:80: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:20:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | let config : BillboardConfiguration
22 | let paywall: () -> V
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:24:6: error: 'StateObject' is only available in macOS 11.0 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
22 | let paywall: () -> V
23 |
24 | @StateObject private var monitor : BillboardViewModel
| `- error: 'StateObject' is only available in macOS 11.0 or newer
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:26:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @StateObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
31 | }
32 |
33 | @State private var advertisement: BillboardAd? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
34 | @State private var showPaywall = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
32 |
33 | @State private var advertisement: BillboardAd? = nil
34 | @State private var showPaywall = false
| `- error: 'State' is only available in macOS 10.15 or newer
35 |
36 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:36:48: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
34 | @State private var showPaywall = false
35 |
36 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
37 | content
38 | .onChange(of: showAd.wrappedValue, {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:18:40: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:14:14: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:14:14: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:30:25: error: 'StateObject' is only available in macOS 11.0 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @StateObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| `- note: add @available attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
29 | self.paywall = paywall
30 | self._monitor = StateObject(wrappedValue: BillboardViewModel(configuration: config))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:45:45: error: cannot assign to property: '$monitor' is immutable
43 | }
44 | })
45 | .fullScreenCover(item: $monitor.advertisement, onDismiss: { showAd.wrappedValue = false }) { advert in
| `- error: cannot assign to property: '$monitor' is immutable
46 | BillboardView(advert: advert, config: config, paywall: { paywall() })
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/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/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,
[30/30] Compiling Billboard Color+Hex.swift
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:11:34: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:11:56: error: 'Binding' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:13:80: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
| `- error: 'View' is only available in macOS 10.15 or newer
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
15 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:10:11: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:20:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
| `- error: 'Binding' is only available in macOS 10.15 or newer
21 | let config : BillboardConfiguration
22 | let paywall: () -> V
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:24:6: error: 'StateObject' is only available in macOS 11.0 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
22 | let paywall: () -> V
23 |
24 | @StateObject private var monitor : BillboardViewModel
| `- error: 'StateObject' is only available in macOS 11.0 or newer
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:26:18: error: 'Binding' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @StateObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
31 | }
32 |
33 | @State private var advertisement: BillboardAd? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
34 | @State private var showPaywall = false
35 |
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
32 |
33 | @State private var advertisement: BillboardAd? = nil
34 | @State private var showPaywall = false
| `- error: 'State' is only available in macOS 10.15 or newer
35 |
36 | public func body(content: Content) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:36:48: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
34 | @State private var showPaywall = false
35 |
36 | public func body(content: Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
37 | content
38 | .onChange(of: showAd.wrappedValue, {
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:18:40: error: 'View' is only available in macOS 10.15 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:14:14: warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- warning: conformance of 'ModifiedContent<Content, Modifier>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:14:14: error: 'modifier' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension View {
| `- note: add @available attribute to enclosing extension
11 | public func showBillboard<V: View>(when condition: Binding<Bool>,
| `- note: add @available attribute to enclosing instance method
12 | configuration: BillboardConfiguration = BillboardConfiguration(),
13 | paywall: @escaping () -> V) -> some View {
14 | self.modifier(AdvertisementModifier(showAd: condition, config: configuration, paywall: paywall))
| |- error: 'modifier' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:30:25: error: 'StateObject' is only available in macOS 11.0 or newer
16 | }
17 |
18 | public struct AdvertisementModifier<V: View>: ViewModifier {
| `- note: add @available attribute to enclosing generic struct
19 |
20 | let showAd : Binding<Bool>
:
24 | @StateObject private var monitor : BillboardViewModel
25 |
26 | init(showAd: Binding<Bool>, config: BillboardConfiguration, paywall: @escaping () -> V) {
| `- note: add @available attribute to enclosing initializer
27 | self.showAd = showAd
28 | self.config = config
29 | self.paywall = paywall
30 | self._monitor = StateObject(wrappedValue: BillboardViewModel(configuration: config))
| |- error: 'StateObject' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
31 | }
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Utilities/AdvertisementViewModifier.swift:45:45: error: cannot assign to property: '$monitor' is immutable
43 | }
44 | })
45 | .fullScreenCover(item: $monitor.advertisement, onDismiss: { showAd.wrappedValue = false }) { advert in
| `- error: cannot assign to property: '$monitor' is immutable
46 | BillboardView(advert: advert, config: config, paywall: { paywall() })
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/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/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,
BUILD FAILURE 6.0 macosSpm