Build Information
Failed to build Billboard, reference 1.0.2 (c6c74e
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 19:13:36 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
Build Log
42 | }
43 | .buttonStyle(.bordered)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:38:26: warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
36 | Button {
37 | showPaywall.toggle()
38 | } label: {
| |- warning: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
39 | Text("Remove Ads")
40 | .font(.system(.footnote, design: .rounded))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:43:18: error: 'buttonStyle' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
41 | .bold()
42 | }
43 | .buttonStyle(.bordered)
| |- error: 'buttonStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .controlSize(.small)
45 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:43:31: error: 'bordered' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
41 | .bold()
42 | }
43 | .buttonStyle(.bordered)
| |- error: 'bordered' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .controlSize(.small)
45 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:44:18: error: 'controlSize' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
42 | }
43 | .buttonStyle(.bordered)
44 | .controlSize(.small)
| |- error: 'controlSize' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 |
46 | Spacer()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:46:17: 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
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
44 | .controlSize(.small)
45 |
46 | 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
47 |
48 | // TimerView
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:46:17: error: 'Spacer' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
44 | .controlSize(.small)
45 |
46 | Spacer()
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 |
48 | // TimerView
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:51:26: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
49 | if canDismiss {
50 | BillboardDismissButton()
51 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | #if os(iOS)
53 | if config.allowHaptics {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:49:31: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
47 |
48 | // TimerView
49 | if canDismiss {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | BillboardDismissButton()
51 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:58:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
56 | #endif
57 | }
58 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | BillboardCountdownView(advert:advert,
60 | totalDuration: config.duration,
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:20: 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
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- 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
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:35:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
33 | }
34 |
35 | HStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
36 | Button {
37 | showPaywall.toggle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:64:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
62 | }
63 | }
64 | .frame(height: 40)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .tint(advert.tint)
66 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:65:14: error: 'tint' is only available in macOS 12.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
63 | }
64 | .frame(height: 40)
65 | .tint(advert.tint)
| |- error: 'tint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
66 | .padding()
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:66:14: error: 'padding' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
64 | .frame(height: 40)
65 | .tint(advert.tint)
66 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | }
68 | .sheet(isPresented: $showPaywall) { paywall() }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:26:33: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
27 | advert.background.ignoresSafeArea()
28 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:68:10: error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
66 | .padding()
67 | }
68 | .sheet(isPresented: $showPaywall) { paywall() }
| |- error: 'sheet(isPresented:onDismiss:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | .onAppear(perform: displayOverlay)
70 | .onDisappear(perform: dismissOverlay)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:69:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
67 | }
68 | .sheet(isPresented: $showPaywall) { paywall() }
69 | .onAppear(perform: displayOverlay)
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
70 | .onDisappear(perform: dismissOverlay)
71 | .onChange(of: showPaywall) { newValue in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:70:10: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
68 | .sheet(isPresented: $showPaywall) { paywall() }
69 | .onAppear(perform: displayOverlay)
70 | .onDisappear(perform: dismissOverlay)
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | .onChange(of: showPaywall) { newValue in
72 | if newValue {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:71:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
8 | import StoreKit
9 |
10 | public struct BillboardView<Content:View>: View {
| `- note: add @available attribute to enclosing generic struct
11 | let advert : BillboardAd
12 | let config : BillboardConfiguration
:
23 | }
24 |
25 | public var body: some View {
| `- note: add @available attribute to enclosing property
26 | ZStack(alignment: .top) {
27 | advert.background.ignoresSafeArea()
:
69 | .onAppear(perform: displayOverlay)
70 | .onDisappear(perform: dismissOverlay)
71 | .onChange(of: showPaywall) { newValue in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
72 | if newValue {
73 | dismissOverlay()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:78:10: error: 'statusBarHidden' is unavailable in macOS
76 | }
77 | }
78 | .statusBarHidden(true)
| `- error: 'statusBarHidden' is unavailable in macOS
79 | }
80 |
SwiftUI.View:6:29: note: 'statusBarHidden' has been explicitly marked unavailable here
4 | @available(tvOS, unavailable)
5 | @available(watchOS, unavailable)
6 | nonisolated public func statusBarHidden(_ hidden: Bool = true) -> some View
| `- note: 'statusBarHidden' has been explicitly marked unavailable here
7 |
8 | @available(iOS 13.0, watchOS 6.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:84:22: error: 'SKOverlay' is unavailable in macOS
82 |
83 | private var storeOverlay : SKOverlay {
84 | let config = SKOverlay.AppConfiguration(appIdentifier: advert.appStoreID, position: .bottom)
| `- error: 'SKOverlay' is unavailable in macOS
85 | let overlay = SKOverlay(configuration: config)
86 | return overlay
StoreKit.SKOverlay:2:14: note: 'SKOverlay' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public class SKOverlay : NSObject {
| `- note: 'SKOverlay' has been explicitly marked unavailable here
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:85:23: error: 'SKOverlay' is unavailable in macOS
83 | private var storeOverlay : SKOverlay {
84 | let config = SKOverlay.AppConfiguration(appIdentifier: advert.appStoreID, position: .bottom)
85 | let overlay = SKOverlay(configuration: config)
| `- error: 'SKOverlay' is unavailable in macOS
86 | return overlay
87 | }
StoreKit.SKOverlay:2:14: note: 'SKOverlay' has been explicitly marked unavailable here
1 | @available(macOS, unavailable)
2 | public class SKOverlay : NSObject {
| `- note: 'SKOverlay' has been explicitly marked unavailable here
3 | @available(*, unavailable)
4 | public convenience init()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:98:19: error: type 'SKOverlay' has no member 'dismiss'
96 | private func dismissOverlay() {
97 | guard let scene else { return }
98 | SKOverlay.dismiss(in: scene)
| `- error: type 'SKOverlay' has no member 'dismiss'
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardView.swift:103:22: error: value of type 'SKOverlay' has no member 'present'
101 | private func displayOverlay() {
102 | guard let scene else { return }
103 | storeOverlay.present(in: scene)
| `- error: value of type 'SKOverlay' has no member 'present'
104 |
105 | #if os(iOS)
[21/26] Compiling Billboard Font+iOS15.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:11:50: error: 'TextStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| | `- error: 'TextStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:11:69: error: 'Design' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| | `- error: 'Design' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:11:86: error: 'Weight' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| | `- error: 'Weight' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:11:98: error: 'Font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:10:11: error: 'Font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
12 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:13:21: error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
14 | } else {
15 | return .system(style, design: design ?? .default).weight(weight ?? .regular)
[22/26] Compiling Billboard Haptics.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:11:50: error: 'TextStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| | `- error: 'TextStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:11:69: error: 'Design' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| | `- error: 'Design' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:11:86: error: 'Weight' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| | `- error: 'Weight' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:11:98: error: 'Font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:10:11: error: 'Font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| | `- error: 'Font' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
12 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Font+iOS15.swift:13:21: error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | extension Font {
| `- note: add @available attribute to enclosing extension
11 | public static func compatibleSystem(_ style: TextStyle, design: Design?, weight: Weight?) -> Font {
| `- note: add @available attribute to enclosing static method
12 | if #available(iOS 16.0, *) {
13 | return .system(style, design: design, weight: weight)
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
14 | } else {
15 | return .system(style, design: design ?? .default).weight(weight ?? .regular)
[23/26] Compiling Billboard BillboardSamples.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/BillboardSamples.swift:13:16: warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct BillboardSamples {
12 |
13 | static let sampleDefaultAd : BillboardAd = BillboardAd(appStoreID: "1596487035",
| |- warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampleDefaultAd' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | name: "NowPlaying",
15 | title: "Learn everything about any song",
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:12:15: note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/BillboardSamples.swift:24:16: warning: static property 'sampleFullScreenAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
22 | transparent: true)
23 |
24 | static let sampleFullScreenAd : BillboardAd = BillboardAd(appStoreID: "1661833753",
| |- warning: static property 'sampleFullScreenAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampleFullScreenAd' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | name: "Sample Ad",
26 | title: "Red Pandas",
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:12:15: note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Color+Hex.swift:10:11: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | init(hex: String) {
12 | let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Color+Hex.swift:27:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| `- note: add @available attribute to enclosing extension
11 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
12 | let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
13 | var int: UInt64 = 0
:
25 | }
26 |
27 | self.init(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .sRGB,
29 | red: Double(r) / 255,
[24/26] Compiling Billboard Color+Hex.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/BillboardSamples.swift:13:16: warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct BillboardSamples {
12 |
13 | static let sampleDefaultAd : BillboardAd = BillboardAd(appStoreID: "1596487035",
| |- warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampleDefaultAd' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | name: "NowPlaying",
15 | title: "Learn everything about any song",
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:12:15: note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/BillboardSamples.swift:24:16: warning: static property 'sampleFullScreenAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
22 | transparent: true)
23 |
24 | static let sampleFullScreenAd : BillboardAd = BillboardAd(appStoreID: "1661833753",
| |- warning: static property 'sampleFullScreenAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampleFullScreenAd' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | name: "Sample Ad",
26 | title: "Red Pandas",
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:12:15: note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Color+Hex.swift:10:11: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
11 | init(hex: String) {
12 | let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/Color+Hex.swift:27:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | extension Color {
| `- note: add @available attribute to enclosing extension
11 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
12 | let hex = hex.trimmingCharacters(in: CharacterSet.alphanumerics.inverted)
13 | var int: UInt64 = 0
:
25 | }
26 |
27 | self.init(
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .sRGB,
29 | red: Double(r) / 255,
[25/26] Compiling Billboard BillboardBannerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:10:20: error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
| `- error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
11 | @Environment(\.openURL) private var openURL
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:11:20: error: 'openURL' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
| `- error: 'openURL' is only available in macOS 11.0 or newer
12 |
13 | let advert : BillboardAd
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:19:34: error: cannot find type 'UIImage' in scope
17 |
18 | @State private var canDismiss = false
19 | @State private var appIcon : UIImage? = nil
| `- error: cannot find type 'UIImage' in scope
20 | @State private var showAdvertisement = true
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:10:6: error: 'Environment' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
| `- error: 'Environment' is only available in macOS 10.15 or newer
11 | @Environment(\.openURL) private var openURL
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | let advert : BillboardAd
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
16 | let hideDismissButtonAndTimer : Bool
17 |
18 | @State private var canDismiss = false
| `- error: 'State' is only available in macOS 10.15 or newer
19 | @State private var appIcon : UIImage? = nil
20 | @State private var showAdvertisement = true
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
17 |
18 | @State private var canDismiss = false
19 | @State private var appIcon : UIImage? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var showAdvertisement = true
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
18 | @State private var canDismiss = false
19 | @State private var appIcon : UIImage? = nil
20 | @State private var showAdvertisement = true
| `- error: 'State' is only available in macOS 10.15 or newer
21 |
22 | public init(advert: BillboardAd, config: BillboardConfiguration = BillboardConfiguration(), includeShadow: Bool = true, hideDismissButtonAndTimer: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 |
31 | HStack(spacing: 10) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:124:31: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:123:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
121 | }
122 |
123 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
124 | var backgroundView : some View {
125 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:139:31: error: 'View' is only available in macOS 10.15 or newer
136 |
137 |
138 | struct BillboardBannerView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
139 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
140 | VStack {
141 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:70:29: error: cannot find 'haptics' in scope
68 | Button {
69 | if config.allowHaptics {
70 | haptics(.light)
| `- error: cannot find 'haptics' in scope
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:118:27: error: cannot find 'UIImage' in scope
116 | if let data = try? await advert.getAppIcon() {
117 | await MainActor.run {
118 | appIcon = UIImage(data: data)
| `- error: cannot find 'UIImage' in scope
119 | }
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:125:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
123 | @ViewBuilder
124 | var backgroundView : some View {
125 | if #available(iOS 16.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:126:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | .fill(advert.background.gradient)
128 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:127:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
128 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
129 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:127:41: error: 'gradient' is only available in macOS 13.0 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
| |- error: 'gradient' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
128 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
129 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:128:18: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .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
129 | } else {
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:128:66: error: 'opacity' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .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
129 | } else {
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:128:81: error: 'Color' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .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
129 | } else {
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:128:87: error: 'clear' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .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
129 | } else {
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:125:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:125:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:129:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
129 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
131 | .fill(advert.background)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:124:36: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:140:9: error: 'VStack' is only available in macOS 10.15 or newer
136 |
137 |
138 | struct BillboardBannerView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
139 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
140 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
142 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd, includeShadow: false)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:144:10: error: 'padding' is only available in macOS 10.15 or newer
136 |
137 |
138 | struct BillboardBannerView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
139 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
140 | VStack {
141 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
142 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd, includeShadow: false)
143 | }
144 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 |
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/BillboardSamples.swift:13:16: warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct BillboardSamples {
12 |
13 | static let sampleDefaultAd : BillboardAd = BillboardAd(appStoreID: "1596487035",
| |- warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampleDefaultAd' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | name: "NowPlaying",
15 | title: "Learn everything about any song",
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:12:15: note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/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/Billboard/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/Billboard/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/Billboard/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/Billboard/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/Billboard/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 | ZStack {
24 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:78:31: error: 'View' is only available in macOS 10.15 or newer
75 |
76 |
77 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
78 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
79 | ZStack {
80 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:29:16: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23: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 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:24:13: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:24:13: error: 'Circle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:25:18: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:25:37: error: 'opacity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:25:58: error: 'StrokeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:26:13: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:26:13: error: 'Circle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:27:18: error: 'trim(from:to:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:28:18: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:28:45: error: 'StrokeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:17: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:22: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:24: warning: conformance of 'Double' to '_FormatSpecifiable' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- warning: conformance of 'Double' to '_FormatSpecifiable' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:31:22: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:31:90: error: 'monospacedDigit()' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
| |- error: 'monospacedDigit()' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:32:22: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:33:22: error: 'minimumScaleFactor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
| |- error: 'minimumScaleFactor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:34:22: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:34:33: error: 'default' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:35:22: error: 'transition' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
36 | .contentTransition(.numericText(value: seconds))
37 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:35:34: error: 'identity' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
| |- error: 'identity' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
36 | .contentTransition(.numericText(value: seconds))
37 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:36:22: error: 'contentTransition' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
| |- error: 'contentTransition' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
37 | .onReceive(timer) { _ in
38 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:36:41: error: 'numericText(value:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
| |- error: 'numericText(value:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
37 | .onReceive(timer) { _ in
38 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:37:22: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
37 | .onReceive(timer) { _ in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | if seconds > 0 {
39 | seconds -= 1
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:39:29: error: cannot pass as inout because setter for 'seconds' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
37 | .onReceive(timer) { _ in
38 | if seconds > 0 {
39 | seconds -= 1
| |- error: cannot pass as inout because setter for 'seconds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:29:40: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:29:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:42:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
40 | }
41 | }
42 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | Text("\(seconds, specifier: "%.0f")")
44 | .font(.compatibleSystem(.caption, design: .rounded, weight: .bold)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:54:10: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
52 | }
53 | }
54 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .rotationEffect(.degrees(-90))
56 | .frame(width: 32, height: 32)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:55:10: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
53 | }
54 | .foregroundColor(advert.tint)
55 | .rotationEffect(.degrees(-90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .frame(width: 32, height: 32)
57 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:56:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
54 | .foregroundColor(advert.tint)
55 | .rotationEffect(.degrees(-90))
56 | .frame(width: 32, height: 32)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .onAppear {
58 | seconds = totalDuration
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:57:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
55 | .rotationEffect(.degrees(-90))
56 | .frame(width: 32, height: 32)
57 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:58:13: error: setter for 'seconds' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
56 | .frame(width: 32, height: 32)
57 | .onAppear {
58 | seconds = totalDuration
| |- error: setter for 'seconds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | withAnimation(.linear(duration: totalDuration)) {
60 | timerProgress = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:59:13: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
57 | .onAppear {
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | timerProgress = 1.0
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:59:28: error: 'linear(duration:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
57 | .onAppear {
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | timerProgress = 1.0
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:60:17: error: setter for 'timerProgress' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
60 | timerProgress = 1.0
| |- error: setter for 'timerProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:63:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
61 | }
62 | }
63 | .onChange(of: seconds) { _ in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
64 | if seconds < 1 {
65 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:65:17: error: setter for 'canDismiss' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
63 | .onChange(of: seconds) { _ in
64 | if seconds < 1 {
65 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:68:10: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
66 | }
67 | }
68 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | #if DEBUG
70 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:70:13: error: setter for 'canDismiss' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
68 | .onTapGesture {
69 | #if DEBUG
70 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | #endif
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:79:9: error: 'ZStack' is only available in macOS 10.15 or newer
75 |
76 |
77 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
78 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
79 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
81 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:80:57: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
75 |
76 |
77 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
78 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
79 | ZStack {
80 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
81 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
82 | }
[26/26] Compiling Billboard BillboardCountdownView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:10:20: error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
| `- error: 'accessibilityReduceMotion' is only available in macOS 10.15 or newer
11 | @Environment(\.openURL) private var openURL
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:11:20: error: 'openURL' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
| `- error: 'openURL' is only available in macOS 11.0 or newer
12 |
13 | let advert : BillboardAd
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:19:34: error: cannot find type 'UIImage' in scope
17 |
18 | @State private var canDismiss = false
19 | @State private var appIcon : UIImage? = nil
| `- error: cannot find type 'UIImage' in scope
20 | @State private var showAdvertisement = true
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:10:6: error: 'Environment' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
| `- error: 'Environment' is only available in macOS 10.15 or newer
11 | @Environment(\.openURL) private var openURL
12 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:11:6: error: 'Environment' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
| `- error: 'Environment' is only available in macOS 10.15 or newer
12 |
13 | let advert : BillboardAd
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:18:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
16 | let hideDismissButtonAndTimer : Bool
17 |
18 | @State private var canDismiss = false
| `- error: 'State' is only available in macOS 10.15 or newer
19 | @State private var appIcon : UIImage? = nil
20 | @State private var showAdvertisement = true
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:19:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
17 |
18 | @State private var canDismiss = false
19 | @State private var appIcon : UIImage? = nil
| `- error: 'State' is only available in macOS 10.15 or newer
20 | @State private var showAdvertisement = true
21 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:20:6: error: 'State' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
18 | @State private var canDismiss = false
19 | @State private var appIcon : UIImage? = nil
20 | @State private var showAdvertisement = true
| `- error: 'State' is only available in macOS 10.15 or newer
21 |
22 | public init(advert: BillboardAd, config: BillboardConfiguration = BillboardConfiguration(), includeShadow: Bool = true, hideDismissButtonAndTimer: Bool = false) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:29:27: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
27 | }
28 |
29 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
30 |
31 | HStack(spacing: 10) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:124:31: error: 'View' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:123:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
121 | }
122 |
123 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
124 | var backgroundView : some View {
125 | if #available(iOS 16.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:139:31: error: 'View' is only available in macOS 10.15 or newer
136 |
137 |
138 | struct BillboardBannerView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
139 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
140 | VStack {
141 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:70:29: error: cannot find 'haptics' in scope
68 | Button {
69 | if config.allowHaptics {
70 | haptics(.light)
| `- error: cannot find 'haptics' in scope
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:118:27: error: cannot find 'UIImage' in scope
116 | if let data = try? await advert.getAppIcon() {
117 | await MainActor.run {
118 | appIcon = UIImage(data: data)
| `- error: cannot find 'UIImage' in scope
119 | }
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:125:12: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
123 | @ViewBuilder
124 | var backgroundView : some View {
125 | if #available(iOS 16.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:126:13: error: 'RoundedRectangle' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
| |- error: 'RoundedRectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | .fill(advert.background.gradient)
128 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:127:18: error: 'fill(_:style:)' is only available in macOS 14.0 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
| |- error: 'fill(_:style:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
128 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
129 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:127:41: error: 'gradient' is only available in macOS 13.0 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
| |- error: 'gradient' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
128 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
129 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:128:18: error: 'shadow(color:radius:x:y:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .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
129 | } else {
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:128:66: error: 'opacity' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .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
129 | } else {
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:128:81: error: 'Color' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .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
129 | } else {
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:128:87: error: 'clear' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .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
129 | } else {
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:125:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:125:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:129:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
127 | .fill(advert.background.gradient)
128 | .shadow(color: includeShadow ? advert.background.opacity(0.5) : Color.clear, radius: 6, x: 0, y: 2)
129 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
130 | RoundedRectangle(cornerRadius: 16, style: .continuous)
131 | .fill(advert.background)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:124:36: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
7 | import SwiftUI
8 |
9 | public struct BillboardBannerView : View {
| `- note: add @available attribute to enclosing struct
10 | @Environment(\.accessibilityReduceMotion) private var reducedMotion
11 | @Environment(\.openURL) private var openURL
:
122 |
123 | @ViewBuilder
124 | var backgroundView : some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
125 | if #available(iOS 16.0, *) {
126 | RoundedRectangle(cornerRadius: 16, style: .continuous)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:140:9: error: 'VStack' is only available in macOS 10.15 or newer
136 |
137 |
138 | struct BillboardBannerView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
139 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
140 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
141 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
142 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd, includeShadow: false)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardBannerView.swift:144:10: error: 'padding' is only available in macOS 10.15 or newer
136 |
137 |
138 | struct BillboardBannerView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
139 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
140 | VStack {
141 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd)
142 | BillboardBannerView(advert: BillboardSamples.sampleDefaultAd, includeShadow: false)
143 | }
144 | .padding()
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
145 |
146 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Utilities/BillboardSamples.swift:13:16: warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public struct BillboardSamples {
12 |
13 | static let sampleDefaultAd : BillboardAd = BillboardAd(appStoreID: "1596487035",
| |- warning: static property 'sampleDefaultAd' is not concurrency-safe because non-'Sendable' type 'BillboardAd' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sampleDefaultAd' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | name: "NowPlaying",
15 | title: "Learn everything about any song",
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Models/BillboardAd.swift:12:15: note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
10 |
11 |
12 | public struct BillboardAd : Codable, Identifiable, Equatable {
| `- note: consider making struct 'BillboardAd' conform to the 'Sendable' protocol
13 |
14 | public static func == (lhs: BillboardAd, rhs: BillboardAd) -> Bool {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/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/Billboard/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/Billboard/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/Billboard/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/Billboard/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/Billboard/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 | ZStack {
24 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:78:31: error: 'View' is only available in macOS 10.15 or newer
75 |
76 |
77 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
78 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
79 | ZStack {
80 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:29:16: warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
| `- warning: result builder 'ViewBuilder' does not implement 'buildLimitedAvailability'; this code may crash on earlier versions of the OS
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23: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 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:24:13: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:24:13: error: 'Circle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:25:18: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:25:37: error: 'opacity' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:25:58: error: 'StrokeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:26:13: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:26:13: error: 'Circle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:27:18: error: 'trim(from:to:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:28:18: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:28:45: error: 'StrokeStyle' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
26 | Circle()
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:17: error: 'Text' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:17: error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'init(_:tableName:bundle:comment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:22: error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- error: 'LocalizedStringKey' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:30:24: warning: conformance of 'Double' to '_FormatSpecifiable' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
| |- warning: conformance of 'Double' to '_FormatSpecifiable' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:31:22: error: 'font' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:31:90: error: 'monospacedDigit()' is only available in macOS 12.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
29 | if #available(iOS 17.0, *) {
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
| |- error: 'monospacedDigit()' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:32:22: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:33:22: error: 'minimumScaleFactor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
| |- error: 'minimumScaleFactor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:34:22: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:34:33: error: 'default' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
32 | .rotationEffect(.degrees(90))
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:35:22: error: 'transition' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
| |- error: 'transition' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
36 | .contentTransition(.numericText(value: seconds))
37 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:35:34: error: 'identity' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
33 | .minimumScaleFactor(0.5)
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
| |- error: 'identity' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
36 | .contentTransition(.numericText(value: seconds))
37 | .onReceive(timer) { _ in
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:36:22: error: 'contentTransition' is only available in macOS 13.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
| |- error: 'contentTransition' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
37 | .onReceive(timer) { _ in
38 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:36:41: error: 'numericText(value:)' is only available in macOS 14.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
34 | .animation(.default, value: seconds)
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
| |- error: 'numericText(value:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
37 | .onReceive(timer) { _ in
38 | if seconds > 0 {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:37:22: error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
35 | .transition(.identity)
36 | .contentTransition(.numericText(value: seconds))
37 | .onReceive(timer) { _ in
| |- error: 'onReceive(_:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | if seconds > 0 {
39 | seconds -= 1
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:39:29: error: cannot pass as inout because setter for 'seconds' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
37 | .onReceive(timer) { _ in
38 | if seconds > 0 {
39 | seconds -= 1
| |- error: cannot pass as inout because setter for 'seconds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:29:40: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:29:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
27 | .trim(from: 0, to: timerProgress)
28 | .stroke(advert.tint, style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
29 | if #available(iOS 17.0, *) {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | Text("\(seconds, specifier: "%.0f")")
31 | .font(.compatibleSystem(.caption, design: .rounded, weight: .heavy)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:42:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
40 | }
41 | }
42 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | Text("\(seconds, specifier: "%.0f")")
44 | .font(.compatibleSystem(.caption, design: .rounded, weight: .bold)).monospacedDigit()
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:23:16: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
24 | Circle()
25 | .stroke(advert.tint.opacity(0.2), style: StrokeStyle(lineWidth: 2, lineCap: .round, lineJoin: .round))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:54:10: error: 'foregroundColor' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
52 | }
53 | }
54 | .foregroundColor(advert.tint)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .rotationEffect(.degrees(-90))
56 | .frame(width: 32, height: 32)
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:55:10: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
53 | }
54 | .foregroundColor(advert.tint)
55 | .rotationEffect(.degrees(-90))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .frame(width: 32, height: 32)
57 | .onAppear {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:56:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
54 | .foregroundColor(advert.tint)
55 | .rotationEffect(.degrees(-90))
56 | .frame(width: 32, height: 32)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | .onAppear {
58 | seconds = totalDuration
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:57:10: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
55 | .rotationEffect(.degrees(-90))
56 | .frame(width: 32, height: 32)
57 | .onAppear {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:58:13: error: setter for 'seconds' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
56 | .frame(width: 32, height: 32)
57 | .onAppear {
58 | seconds = totalDuration
| |- error: setter for 'seconds' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
59 | withAnimation(.linear(duration: totalDuration)) {
60 | timerProgress = 1.0
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:59:13: error: 'withAnimation' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
57 | .onAppear {
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | timerProgress = 1.0
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:59:28: error: 'linear(duration:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
57 | .onAppear {
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
| |- error: 'linear(duration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | timerProgress = 1.0
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:60:17: error: setter for 'timerProgress' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
58 | seconds = totalDuration
59 | withAnimation(.linear(duration: totalDuration)) {
60 | timerProgress = 1.0
| |- error: setter for 'timerProgress' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:63:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
61 | }
62 | }
63 | .onChange(of: seconds) { _ in
| |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
64 | if seconds < 1 {
65 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:65:17: error: setter for 'canDismiss' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
63 | .onChange(of: seconds) { _ in
64 | if seconds < 1 {
65 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:68:10: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
66 | }
67 | }
68 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
69 | #if DEBUG
70 | canDismiss = true
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:70:13: error: setter for 'canDismiss' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | struct BillboardCountdownView : View {
| `- note: add @available attribute to enclosing struct
11 |
12 | let advert : BillboardAd
:
20 | private let timer = Timer.publish(every: 1, on: .main, in: .common).autoconnect()
21 |
22 | var body: some View {
| `- note: add @available attribute to enclosing property
23 | ZStack {
24 | Circle()
:
68 | .onTapGesture {
69 | #if DEBUG
70 | canDismiss = true
| |- error: setter for 'canDismiss' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | #endif
72 | }
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:79:9: error: 'ZStack' is only available in macOS 10.15 or newer
75 |
76 |
77 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
78 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
79 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
81 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
/Users/admin/builder/spi-builder-workspace/Sources/Billboard/Views/BillboardCountdownView.swift:80:57: error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
75 |
76 |
77 | struct BillboardCountdownView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
78 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
79 | ZStack {
80 | BillboardSamples.sampleDefaultAd.background.ignoresSafeArea()
| |- error: 'ignoresSafeArea(_:edges:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
81 | BillboardCountdownView(advert: BillboardSamples.sampleDefaultAd, totalDuration: 15.0, canDismiss: .constant(false))
82 | }
BUILD FAILURE 6.0 macosSpm