Build Information
Failed to build Recap, reference main (38b486
), with Swift 6.0 for macOS (SPM) on 3 Dec 2024 01:46:50 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
Build Log
107 | init(releases: [Release], @ViewBuilder trailingView: () -> TrailingView) {
108 | self.releases = releases
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:115:32: error: 'ViewBuilder' is only available in macOS 10.15 or newer
112 | }
113 |
114 | public extension RecapScreen where TrailingView == EmptyView {
| `- note: add @available attribute to enclosing extension
115 | init(releases: [Release], @ViewBuilder leadingView: () -> LeadingView) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
116 | self.releases = releases
117 | self.leadingView = leadingView()
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:114:52: error: 'EmptyView' is only available in macOS 10.15 or newer
112 | }
113 |
114 | public extension RecapScreen where TrailingView == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
115 | init(releases: [Release], @ViewBuilder leadingView: () -> LeadingView) {
116 | self.releases = releases
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:122:51: error: 'EmptyView' is only available in macOS 10.15 or newer
120 | }
121 |
122 | public extension RecapScreen where LeadingView == EmptyView, TrailingView == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
123 | init(releases: [Release]) {
124 | self.releases = releases
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:122:78: error: 'EmptyView' is only available in macOS 10.15 or newer
120 | }
121 |
122 | public extension RecapScreen where LeadingView == EmptyView, TrailingView == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
123 | init(releases: [Release]) {
124 | self.releases = releases
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:137:33: error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| | `- error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:192:50: error: 'View' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:191:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
189 | }
190 |
191 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:174:19: error: 'View' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:48:9: error: 'VStack' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | TabView(selection: $selectedIndex) {
50 | self.leadingView
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:49:13: error: 'TabView' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
| |- error: 'TabView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | self.leadingView
51 | .tag(self.tabIndex(from: .leadingView))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:51:22: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
50 | self.leadingView
51 | .tag(self.tabIndex(from: .leadingView))
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 |
53 | ForEach(self.displayedReleases) { release in
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:53:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
51 | .tag(self.tabIndex(from: .leadingView))
52 |
53 | ForEach(self.displayedReleases) { release in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:53:17: error: 'ForEach' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
51 | .tag(self.tabIndex(from: .leadingView))
52 |
53 | ForEach(self.displayedReleases) { release in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:53:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
51 | .tag(self.tabIndex(from: .leadingView))
52 |
53 | ForEach(self.displayedReleases) { release in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:55:26: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
53 | ForEach(self.displayedReleases) { release in
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .tag((self.tabIndex(from: .release(
57 | self.displayedReleases.firstIndex(of: release) ?? 0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:56:26: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
56 | .tag((self.tabIndex(from: .release(
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | self.displayedReleases.firstIndex(of: release) ?? 0)
58 | )))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:62:22: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
60 |
61 | self.trailingView
62 | .tag(self.tabIndex(from: .trailingView))
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .tabViewStyle(.page(indexDisplayMode: self.releases.count > 1 ? .always : .never))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:49:48: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | self.leadingView
51 | .tag(self.tabIndex(from: .leadingView))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:64:14: error: 'tabViewStyle' is only available in macOS 11.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
62 | .tag(self.tabIndex(from: .trailingView))
63 | }
64 | .tabViewStyle(.page(indexDisplayMode: self.releases.count > 1 ? .always : .never))
| |- error: 'tabViewStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
65 | .background(self.derivedBackgroundStyle)
66 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:64:28: error: 'page(indexDisplayMode:)' is unavailable in macOS
62 | .tag(self.tabIndex(from: .trailingView))
63 | }
64 | .tabViewStyle(.page(indexDisplayMode: self.releases.count > 1 ? .always : .never))
| `- error: 'page(indexDisplayMode:)' is unavailable in macOS
65 | .background(self.derivedBackgroundStyle)
66 |
SwiftUI.TabViewStyle:5:51: note: 'page(indexDisplayMode:)' has been explicitly marked unavailable here
3 | extension TabViewStyle where Self == PageTabViewStyle {
4 | @MainActor @preconcurrency public static var page: PageTabViewStyle { get }
5 | @MainActor @preconcurrency public static func page(indexDisplayMode: PageTabViewStyle.IndexDisplayMode) -> PageTabViewStyle
| `- note: 'page(indexDisplayMode:)' has been explicitly marked unavailable here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:65:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
63 | }
64 | .tabViewStyle(.page(indexDisplayMode: self.releases.count > 1 ? .always : .never))
65 | .background(self.derivedBackgroundStyle)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
66 |
67 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:67:13: error: 'Button' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
65 | .background(self.derivedBackgroundStyle)
66 |
67 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | dismissAction?() ?? dismiss()
69 | }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:70:17: error: 'HStack' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
68 | dismissAction?() ?? dismiss()
69 | }, label: {
70 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | Spacer(minLength: 0.0)
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:71:21: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
69 | }, label: {
70 | HStack {
71 | Spacer(minLength: 0.0)
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 |
73 | Text(self.dismissButtonTitle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:71:21: error: 'Spacer' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
69 | }, label: {
70 | HStack {
71 | Spacer(minLength: 0.0)
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 |
73 | Text(self.dismissButtonTitle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:73:21: error: 'Text' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
71 | Spacer(minLength: 0.0)
72 |
73 | Text(self.dismissButtonTitle)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | .font(.system(.title3, weight: .bold))
75 | .padding(8.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:73:21: error: 'init(_:)' is only available in macOS 13 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
71 | Spacer(minLength: 0.0)
72 |
73 | Text(self.dismissButtonTitle)
| |- error: 'init(_:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
74 | .font(.system(.title3, weight: .bold))
75 | .padding(8.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:74:26: error: 'font' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
72 |
73 | Text(self.dismissButtonTitle)
74 | .font(.system(.title3, weight: .bold))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:74:32: error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
72 |
73 | Text(self.dismissButtonTitle)
74 | .font(.system(.title3, weight: .bold))
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:74:40: error: 'title3' is only available in macOS 11.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
72 |
73 | Text(self.dismissButtonTitle)
74 | .font(.system(.title3, weight: .bold))
| |- error: 'title3' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:75:26: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
73 | Text(self.dismissButtonTitle)
74 | .font(.system(.title3, weight: .bold))
75 | .padding(8.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .padding(.vertical, 4.0)
77 | .padding(.horizontal, 16.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:76:26: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
74 | .font(.system(.title3, weight: .bold))
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .padding(.horizontal, 16.0)
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:77:26: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
77 | .padding(.horizontal, 16.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
79 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:78:26: error: 'foregroundStyle' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
76 | .padding(.vertical, 4.0)
77 | .padding(.horizontal, 16.0)
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
79 |
80 | Spacer(minLength: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:80:21: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
79 |
80 | Spacer(minLength: 0.0)
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | .contentShape(.rect(cornerRadius: 16.0))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:80:21: error: 'Spacer' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
79 |
80 | Spacer(minLength: 0.0)
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | .contentShape(.rect(cornerRadius: 16.0))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:70:24: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
68 | dismissAction?() ?? dismiss()
69 | }, label: {
70 | HStack {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | Spacer(minLength: 0.0)
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:70:24: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
68 | dismissAction?() ?? dismiss()
69 | }, label: {
70 | HStack {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | Spacer(minLength: 0.0)
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:82:18: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
80 | Spacer(minLength: 0.0)
81 | }
82 | .contentShape(.rect(cornerRadius: 16.0))
| |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | })
84 | .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:82:32: error: 'rect(cornerRadius:style:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
80 | Spacer(minLength: 0.0)
81 | }
82 | .contentShape(.rect(cornerRadius: 16.0))
| |- error: 'rect(cornerRadius:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | })
84 | .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:84:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
82 | .contentShape(.rect(cornerRadius: 16.0))
83 | })
84 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .background(self.dismissButtonStyle.backgroundStyle)
86 | .clipShape(.rect(cornerRadius: 16.0))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:85:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
83 | })
84 | .frame(maxWidth: .infinity)
85 | .background(self.dismissButtonStyle.backgroundStyle)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
86 | .clipShape(.rect(cornerRadius: 16.0))
87 | .padding(.horizontal, 40.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:86:14: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
84 | .frame(maxWidth: .infinity)
85 | .background(self.dismissButtonStyle.backgroundStyle)
86 | .clipShape(.rect(cornerRadius: 16.0))
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | .padding(.horizontal, 40.0)
88 | .foregroundStyle(.primary)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:86:25: error: 'rect(cornerRadius:style:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
84 | .frame(maxWidth: .infinity)
85 | .background(self.dismissButtonStyle.backgroundStyle)
86 | .clipShape(.rect(cornerRadius: 16.0))
| |- error: 'rect(cornerRadius:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | .padding(.horizontal, 40.0)
88 | .foregroundStyle(.primary)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:87:14: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
85 | .background(self.dismissButtonStyle.backgroundStyle)
86 | .clipShape(.rect(cornerRadius: 16.0))
87 | .padding(.horizontal, 40.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | .foregroundStyle(.primary)
89 | .withBottomPaddingIfNoSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:88:14: error: 'foregroundStyle' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
86 | .clipShape(.rect(cornerRadius: 16.0))
87 | .padding(.horizontal, 40.0)
88 | .foregroundStyle(.primary)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
89 | .withBottomPaddingIfNoSafeArea()
90 | .background(self.derivedBackgroundStyle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:88:31: error: 'primary' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
86 | .clipShape(.rect(cornerRadius: 16.0))
87 | .padding(.horizontal, 40.0)
88 | .foregroundStyle(.primary)
| |- error: 'primary' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
89 | .withBottomPaddingIfNoSafeArea()
90 | .background(self.derivedBackgroundStyle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:90:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
88 | .foregroundStyle(.primary)
89 | .withBottomPaddingIfNoSafeArea()
90 | .background(self.derivedBackgroundStyle)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
91 | .onAppear(perform: {
92 | self.selectedIndex = self.tabIndex(from: self.startIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:91:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
89 | .withBottomPaddingIfNoSafeArea()
90 | .background(self.derivedBackgroundStyle)
91 | .onAppear(perform: {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | self.selectedIndex = self.tabIndex(from: self.startIndex)
93 | })
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:92:17: error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
90 | .background(self.derivedBackgroundStyle)
91 | .onAppear(perform: {
92 | self.selectedIndex = self.tabIndex(from: self.startIndex)
| |- error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | })
94 | .onAppear(perform: {
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:94:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
92 | self.selectedIndex = self.tabIndex(from: self.startIndex)
93 | })
94 | .onAppear(perform: {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | self.setupAppearanceChanges()
96 | })
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:97:14: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
95 | self.setupAppearanceChanges()
96 | })
97 | .onDisappear(perform: {
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | self.teardownAppearanceChanges()
99 | })
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:109:28: error: 'EmptyView' is only available in macOS 10.15 or newer
104 | // MARK: Convenience Initializers
105 |
106 | public extension RecapScreen where LeadingView == EmptyView {
| `- note: add @available attribute to enclosing extension
107 | init(releases: [Release], @ViewBuilder trailingView: () -> TrailingView) {
| `- note: add @available attribute to enclosing initializer
108 | self.releases = releases
109 | self.leadingView = EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | self.trailingView = trailingView()
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:118:29: error: 'EmptyView' is only available in macOS 10.15 or newer
112 | }
113 |
114 | public extension RecapScreen where TrailingView == EmptyView {
| `- note: add @available attribute to enclosing extension
115 | init(releases: [Release], @ViewBuilder leadingView: () -> LeadingView) {
| `- note: add @available attribute to enclosing initializer
116 | self.releases = releases
117 | self.leadingView = leadingView()
118 | self.trailingView = EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | }
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:125:28: error: 'EmptyView' is only available in macOS 10.15 or newer
120 | }
121 |
122 | public extension RecapScreen where LeadingView == EmptyView, TrailingView == EmptyView {
| `- note: add @available attribute to enclosing extension
123 | init(releases: [Release]) {
| `- note: add @available attribute to enclosing initializer
124 | self.releases = releases
125 | self.leadingView = EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | self.trailingView = EmptyView()
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:126:29: error: 'EmptyView' is only available in macOS 10.15 or newer
120 | }
121 |
122 | public extension RecapScreen where LeadingView == EmptyView, TrailingView == EmptyView {
| `- note: add @available attribute to enclosing extension
123 | init(releases: [Release]) {
| `- note: add @available attribute to enclosing initializer
124 | self.releases = releases
125 | self.leadingView = EmptyView()
126 | self.trailingView = EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | }
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:13: error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:13: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:55: error: 'Color' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:61: error: 'black' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:69: error: 'Color' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:75: error: 'white' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:193:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | self
195 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:196:18: error: 'padding' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
195 | } else {
196 | self.padding(.bottom, 24.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:195:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
195 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
196 | self.padding(.bottom, 24.0)
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:192:55: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
[19/21] Compiling Recap RecapScreenStartIndex.swift
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:23:20: error: 'dismiss' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
| `- error: 'dismiss' is only available in macOS 12.0 or newer
24 | @Environment(\.backgroundStyle) private var backgroundStyle
25 | @Environment(\.colorScheme) private var colorScheme
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:24:20: error: 'backgroundStyle' is only available in macOS 13.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
| `- error: 'backgroundStyle' is only available in macOS 13.0 or newer
25 | @Environment(\.colorScheme) private var colorScheme
26 | @Environment(\.recapScreenStartIndex) private var startIndex
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:25:20: error: 'colorScheme' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
25 | @Environment(\.colorScheme) private var colorScheme
| `- error: 'colorScheme' is only available in macOS 10.15 or newer
26 | @Environment(\.recapScreenStartIndex) private var startIndex
27 | @Environment(\.recapScreenSelectedPageIndicatorColor) private var selectedPageIndicatorColor
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:33:60: error: cannot find type 'UIColor' in scope
31 | @Environment(\.recapScreenDismissAction) private var dismissAction
32 |
33 | @State private var originalSelectedPageIndicatorColor: UIColor?
| `- error: cannot find type 'UIColor' in scope
34 | @State private var originalDeselectedPageIndicatorColor: UIColor?
35 | @State private var selectedIndex = 0
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:34:62: error: cannot find type 'UIColor' in scope
32 |
33 | @State private var originalSelectedPageIndicatorColor: UIColor?
34 | @State private var originalDeselectedPageIndicatorColor: UIColor?
| `- error: cannot find type 'UIColor' in scope
35 | @State private var selectedIndex = 0
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:23:6: error: 'Environment' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
| `- error: 'Environment' is only available in macOS 10.15 or newer
24 | @Environment(\.backgroundStyle) private var backgroundStyle
25 | @Environment(\.colorScheme) private var colorScheme
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:24:6: error: 'Environment' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
25 | @Environment(\.colorScheme) private var colorScheme
26 | @Environment(\.recapScreenStartIndex) private var startIndex
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:25:6: error: 'Environment' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
25 | @Environment(\.colorScheme) private var colorScheme
| `- error: 'Environment' is only available in macOS 10.15 or newer
26 | @Environment(\.recapScreenStartIndex) private var startIndex
27 | @Environment(\.recapScreenSelectedPageIndicatorColor) private var selectedPageIndicatorColor
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:26:6: error: 'Environment' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
25 | @Environment(\.colorScheme) private var colorScheme
26 | @Environment(\.recapScreenStartIndex) private var startIndex
| `- error: 'Environment' is only available in macOS 10.15 or newer
27 | @Environment(\.recapScreenSelectedPageIndicatorColor) private var selectedPageIndicatorColor
28 | @Environment(\.recapScreenDeselectedPageIndicatorColor) private var deselectedPageIndicatorColor
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:27:6: error: 'Environment' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
25 | @Environment(\.colorScheme) private var colorScheme
26 | @Environment(\.recapScreenStartIndex) private var startIndex
27 | @Environment(\.recapScreenSelectedPageIndicatorColor) private var selectedPageIndicatorColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
28 | @Environment(\.recapScreenDeselectedPageIndicatorColor) private var deselectedPageIndicatorColor
29 | @Environment(\.recapScreenDismissButtonStyle) private var dismissButtonStyle
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:28:6: error: 'Environment' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
26 | @Environment(\.recapScreenStartIndex) private var startIndex
27 | @Environment(\.recapScreenSelectedPageIndicatorColor) private var selectedPageIndicatorColor
28 | @Environment(\.recapScreenDeselectedPageIndicatorColor) private var deselectedPageIndicatorColor
| `- error: 'Environment' is only available in macOS 10.15 or newer
29 | @Environment(\.recapScreenDismissButtonStyle) private var dismissButtonStyle
30 | @Environment(\.recapScreenDismissButtonTitle) private var dismissButtonTitle
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:29:6: error: 'Environment' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
27 | @Environment(\.recapScreenSelectedPageIndicatorColor) private var selectedPageIndicatorColor
28 | @Environment(\.recapScreenDeselectedPageIndicatorColor) private var deselectedPageIndicatorColor
29 | @Environment(\.recapScreenDismissButtonStyle) private var dismissButtonStyle
| `- error: 'Environment' is only available in macOS 10.15 or newer
30 | @Environment(\.recapScreenDismissButtonTitle) private var dismissButtonTitle
31 | @Environment(\.recapScreenDismissAction) private var dismissAction
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:30:6: error: 'Environment' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
28 | @Environment(\.recapScreenDeselectedPageIndicatorColor) private var deselectedPageIndicatorColor
29 | @Environment(\.recapScreenDismissButtonStyle) private var dismissButtonStyle
30 | @Environment(\.recapScreenDismissButtonTitle) private var dismissButtonTitle
| `- error: 'Environment' is only available in macOS 10.15 or newer
31 | @Environment(\.recapScreenDismissAction) private var dismissAction
32 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:31:6: error: 'Environment' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
29 | @Environment(\.recapScreenDismissButtonStyle) private var dismissButtonStyle
30 | @Environment(\.recapScreenDismissButtonTitle) private var dismissButtonTitle
31 | @Environment(\.recapScreenDismissAction) private var dismissAction
| `- error: 'Environment' is only available in macOS 10.15 or newer
32 |
33 | @State private var originalSelectedPageIndicatorColor: UIColor?
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:33:6: error: 'State' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
31 | @Environment(\.recapScreenDismissAction) private var dismissAction
32 |
33 | @State private var originalSelectedPageIndicatorColor: UIColor?
| `- error: 'State' is only available in macOS 10.15 or newer
34 | @State private var originalDeselectedPageIndicatorColor: UIColor?
35 | @State private var selectedIndex = 0
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:34:6: error: 'State' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
32 |
33 | @State private var originalSelectedPageIndicatorColor: UIColor?
34 | @State private var originalDeselectedPageIndicatorColor: UIColor?
| `- error: 'State' is only available in macOS 10.15 or newer
35 | @State private var selectedIndex = 0
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
33 | @State private var originalSelectedPageIndicatorColor: UIColor?
34 | @State private var originalDeselectedPageIndicatorColor: UIColor?
35 | @State private var selectedIndex = 0
| `- error: 'State' is only available in macOS 10.15 or newer
36 |
37 | private let releases: [Release]
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:41:39: error: 'ViewBuilder' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
39 | private let trailingView: TrailingView
40 |
41 | public init(releases: [Release], @ViewBuilder leadingView: () -> LeadingView, @ViewBuilder trailingView: () -> TrailingView) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
42 | self.releases = releases
43 | self.leadingView = leadingView()
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:41:84: error: 'ViewBuilder' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
39 | private let trailingView: TrailingView
40 |
41 | public init(releases: [Release], @ViewBuilder leadingView: () -> LeadingView, @ViewBuilder trailingView: () -> TrailingView) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
42 | self.releases = releases
43 | self.leadingView = leadingView()
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:47:27: error: 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:22:40: error: 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:22:60: error: 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:107:32: error: 'ViewBuilder' is only available in macOS 10.15 or newer
104 | // MARK: Convenience Initializers
105 |
106 | public extension RecapScreen where LeadingView == EmptyView {
| `- note: add @available attribute to enclosing extension
107 | init(releases: [Release], @ViewBuilder trailingView: () -> TrailingView) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
108 | self.releases = releases
109 | self.leadingView = EmptyView()
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:106:51: error: 'EmptyView' is only available in macOS 10.15 or newer
104 | // MARK: Convenience Initializers
105 |
106 | public extension RecapScreen where LeadingView == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
107 | init(releases: [Release], @ViewBuilder trailingView: () -> TrailingView) {
108 | self.releases = releases
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:115:32: error: 'ViewBuilder' is only available in macOS 10.15 or newer
112 | }
113 |
114 | public extension RecapScreen where TrailingView == EmptyView {
| `- note: add @available attribute to enclosing extension
115 | init(releases: [Release], @ViewBuilder leadingView: () -> LeadingView) {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
116 | self.releases = releases
117 | self.leadingView = leadingView()
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:114:52: error: 'EmptyView' is only available in macOS 10.15 or newer
112 | }
113 |
114 | public extension RecapScreen where TrailingView == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
115 | init(releases: [Release], @ViewBuilder leadingView: () -> LeadingView) {
116 | self.releases = releases
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:122:51: error: 'EmptyView' is only available in macOS 10.15 or newer
120 | }
121 |
122 | public extension RecapScreen where LeadingView == EmptyView, TrailingView == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
123 | init(releases: [Release]) {
124 | self.releases = releases
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:122:78: error: 'EmptyView' is only available in macOS 10.15 or newer
120 | }
121 |
122 | public extension RecapScreen where LeadingView == EmptyView, TrailingView == EmptyView {
| | `- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
123 | init(releases: [Release]) {
124 | self.releases = releases
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:137:33: error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| | `- error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:192:50: error: 'View' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:191:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
189 | }
190 |
191 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:174:19: error: 'View' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:48:9: error: 'VStack' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | TabView(selection: $selectedIndex) {
50 | self.leadingView
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:49:13: error: 'TabView' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
| |- error: 'TabView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | self.leadingView
51 | .tag(self.tabIndex(from: .leadingView))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:51:22: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
50 | self.leadingView
51 | .tag(self.tabIndex(from: .leadingView))
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 |
53 | ForEach(self.displayedReleases) { release in
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:53:17: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
51 | .tag(self.tabIndex(from: .leadingView))
52 |
53 | ForEach(self.displayedReleases) { release in
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:53:17: error: 'ForEach' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
51 | .tag(self.tabIndex(from: .leadingView))
52 |
53 | ForEach(self.displayedReleases) { release in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:53:17: error: 'init(_:content:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
51 | .tag(self.tabIndex(from: .leadingView))
52 |
53 | ForEach(self.displayedReleases) { release in
| |- error: 'init(_:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:55:26: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
53 | ForEach(self.displayedReleases) { release in
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .tag((self.tabIndex(from: .release(
57 | self.displayedReleases.firstIndex(of: release) ?? 0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:56:26: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
54 | ReleaseView(release: release)
55 | .padding(.bottom, 32.0)
56 | .tag((self.tabIndex(from: .release(
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | self.displayedReleases.firstIndex(of: release) ?? 0)
58 | )))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:62:22: error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
60 |
61 | self.trailingView
62 | .tag(self.tabIndex(from: .trailingView))
| |- error: 'tag(_:includeOptional:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | }
64 | .tabViewStyle(.page(indexDisplayMode: self.releases.count > 1 ? .always : .never))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:49:48: error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
| |- error: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | self.leadingView
51 | .tag(self.tabIndex(from: .leadingView))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:64:14: error: 'tabViewStyle' is only available in macOS 11.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
62 | .tag(self.tabIndex(from: .trailingView))
63 | }
64 | .tabViewStyle(.page(indexDisplayMode: self.releases.count > 1 ? .always : .never))
| |- error: 'tabViewStyle' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
65 | .background(self.derivedBackgroundStyle)
66 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:64:28: error: 'page(indexDisplayMode:)' is unavailable in macOS
62 | .tag(self.tabIndex(from: .trailingView))
63 | }
64 | .tabViewStyle(.page(indexDisplayMode: self.releases.count > 1 ? .always : .never))
| `- error: 'page(indexDisplayMode:)' is unavailable in macOS
65 | .background(self.derivedBackgroundStyle)
66 |
SwiftUI.TabViewStyle:5:51: note: 'page(indexDisplayMode:)' has been explicitly marked unavailable here
3 | extension TabViewStyle where Self == PageTabViewStyle {
4 | @MainActor @preconcurrency public static var page: PageTabViewStyle { get }
5 | @MainActor @preconcurrency public static func page(indexDisplayMode: PageTabViewStyle.IndexDisplayMode) -> PageTabViewStyle
| `- note: 'page(indexDisplayMode:)' has been explicitly marked unavailable here
6 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:65:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
63 | }
64 | .tabViewStyle(.page(indexDisplayMode: self.releases.count > 1 ? .always : .never))
65 | .background(self.derivedBackgroundStyle)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
66 |
67 | Button(action: {
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:67:13: error: 'Button' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
65 | .background(self.derivedBackgroundStyle)
66 |
67 | Button(action: {
| |- error: 'Button' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | dismissAction?() ?? dismiss()
69 | }, label: {
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:70:17: error: 'HStack' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
68 | dismissAction?() ?? dismiss()
69 | }, label: {
70 | HStack {
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | Spacer(minLength: 0.0)
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:71:21: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
69 | }, label: {
70 | HStack {
71 | Spacer(minLength: 0.0)
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 |
73 | Text(self.dismissButtonTitle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:71:21: error: 'Spacer' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
69 | }, label: {
70 | HStack {
71 | Spacer(minLength: 0.0)
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
72 |
73 | Text(self.dismissButtonTitle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:73:21: error: 'Text' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
71 | Spacer(minLength: 0.0)
72 |
73 | Text(self.dismissButtonTitle)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | .font(.system(.title3, weight: .bold))
75 | .padding(8.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:73:21: error: 'init(_:)' is only available in macOS 13 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
71 | Spacer(minLength: 0.0)
72 |
73 | Text(self.dismissButtonTitle)
| |- error: 'init(_:)' is only available in macOS 13 or newer
| `- note: add 'if #available' version check
74 | .font(.system(.title3, weight: .bold))
75 | .padding(8.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:74:26: error: 'font' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
72 |
73 | Text(self.dismissButtonTitle)
74 | .font(.system(.title3, weight: .bold))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:74:32: error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
72 |
73 | Text(self.dismissButtonTitle)
74 | .font(.system(.title3, weight: .bold))
| |- error: 'system(_:design:weight:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:74:40: error: 'title3' is only available in macOS 11.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
72 |
73 | Text(self.dismissButtonTitle)
74 | .font(.system(.title3, weight: .bold))
| |- error: 'title3' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:75:26: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
73 | Text(self.dismissButtonTitle)
74 | .font(.system(.title3, weight: .bold))
75 | .padding(8.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .padding(.vertical, 4.0)
77 | .padding(.horizontal, 16.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:76:26: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
74 | .font(.system(.title3, weight: .bold))
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .padding(.horizontal, 16.0)
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:77:26: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
75 | .padding(8.0)
76 | .padding(.vertical, 4.0)
77 | .padding(.horizontal, 16.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
79 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:78:26: error: 'foregroundStyle' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
76 | .padding(.vertical, 4.0)
77 | .padding(.horizontal, 16.0)
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
79 |
80 | Spacer(minLength: 0.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:80:21: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
79 |
80 | Spacer(minLength: 0.0)
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | .contentShape(.rect(cornerRadius: 16.0))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:80:21: error: 'Spacer' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
78 | .foregroundStyle(dismissButtonStyle.foregroundStyle)
79 |
80 | Spacer(minLength: 0.0)
| |- error: 'Spacer' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | }
82 | .contentShape(.rect(cornerRadius: 16.0))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:70:24: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
68 | dismissAction?() ?? dismiss()
69 | }, label: {
70 | HStack {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | Spacer(minLength: 0.0)
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:70:24: error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
68 | dismissAction?() ?? dismiss()
69 | }, label: {
70 | HStack {
| |- error: conformance of 'Spacer' to 'View' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
71 | Spacer(minLength: 0.0)
72 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:82:18: error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
80 | Spacer(minLength: 0.0)
81 | }
82 | .contentShape(.rect(cornerRadius: 16.0))
| |- error: 'contentShape(_:eoFill:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | })
84 | .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:82:32: error: 'rect(cornerRadius:style:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
80 | Spacer(minLength: 0.0)
81 | }
82 | .contentShape(.rect(cornerRadius: 16.0))
| |- error: 'rect(cornerRadius:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | })
84 | .frame(maxWidth: .infinity)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:84:14: error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
82 | .contentShape(.rect(cornerRadius: 16.0))
83 | })
84 | .frame(maxWidth: .infinity)
| |- error: 'frame(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | .background(self.dismissButtonStyle.backgroundStyle)
86 | .clipShape(.rect(cornerRadius: 16.0))
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:85:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
83 | })
84 | .frame(maxWidth: .infinity)
85 | .background(self.dismissButtonStyle.backgroundStyle)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
86 | .clipShape(.rect(cornerRadius: 16.0))
87 | .padding(.horizontal, 40.0)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:86:14: error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
84 | .frame(maxWidth: .infinity)
85 | .background(self.dismissButtonStyle.backgroundStyle)
86 | .clipShape(.rect(cornerRadius: 16.0))
| |- error: 'clipShape(_:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | .padding(.horizontal, 40.0)
88 | .foregroundStyle(.primary)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:86:25: error: 'rect(cornerRadius:style:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
84 | .frame(maxWidth: .infinity)
85 | .background(self.dismissButtonStyle.backgroundStyle)
86 | .clipShape(.rect(cornerRadius: 16.0))
| |- error: 'rect(cornerRadius:style:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | .padding(.horizontal, 40.0)
88 | .foregroundStyle(.primary)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:87:14: error: 'padding' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
85 | .background(self.dismissButtonStyle.backgroundStyle)
86 | .clipShape(.rect(cornerRadius: 16.0))
87 | .padding(.horizontal, 40.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | .foregroundStyle(.primary)
89 | .withBottomPaddingIfNoSafeArea()
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:88:14: error: 'foregroundStyle' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
86 | .clipShape(.rect(cornerRadius: 16.0))
87 | .padding(.horizontal, 40.0)
88 | .foregroundStyle(.primary)
| |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
89 | .withBottomPaddingIfNoSafeArea()
90 | .background(self.derivedBackgroundStyle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:88:31: error: 'primary' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
86 | .clipShape(.rect(cornerRadius: 16.0))
87 | .padding(.horizontal, 40.0)
88 | .foregroundStyle(.primary)
| |- error: 'primary' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
89 | .withBottomPaddingIfNoSafeArea()
90 | .background(self.derivedBackgroundStyle)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:90:14: error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
88 | .foregroundStyle(.primary)
89 | .withBottomPaddingIfNoSafeArea()
90 | .background(self.derivedBackgroundStyle)
| |- error: 'background(_:ignoresSafeAreaEdges:)' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
91 | .onAppear(perform: {
92 | self.selectedIndex = self.tabIndex(from: self.startIndex)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:91:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
89 | .withBottomPaddingIfNoSafeArea()
90 | .background(self.derivedBackgroundStyle)
91 | .onAppear(perform: {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | self.selectedIndex = self.tabIndex(from: self.startIndex)
93 | })
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:92:17: error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
90 | .background(self.derivedBackgroundStyle)
91 | .onAppear(perform: {
92 | self.selectedIndex = self.tabIndex(from: self.startIndex)
| |- error: setter for 'selectedIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | })
94 | .onAppear(perform: {
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:94:14: error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
92 | self.selectedIndex = self.tabIndex(from: self.startIndex)
93 | })
94 | .onAppear(perform: {
| |- error: 'onAppear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
95 | self.setupAppearanceChanges()
96 | })
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:97:14: error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
20 | ///
21 | /// - Note: The releases are displayed in reverse chronological order, with the most recent release shown first.
22 | public struct RecapScreen<LeadingView: View, TrailingView: View>: View {
| `- note: add @available attribute to enclosing generic struct
23 | @Environment(\.dismiss) private var dismiss
24 | @Environment(\.backgroundStyle) private var backgroundStyle
:
45 | }
46 |
47 | public var body: some View {
| `- note: add @available attribute to enclosing property
48 | VStack(spacing: 0.0) {
49 | TabView(selection: $selectedIndex) {
:
95 | self.setupAppearanceChanges()
96 | })
97 | .onDisappear(perform: {
| |- error: 'onDisappear(perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
98 | self.teardownAppearanceChanges()
99 | })
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:109:28: error: 'EmptyView' is only available in macOS 10.15 or newer
104 | // MARK: Convenience Initializers
105 |
106 | public extension RecapScreen where LeadingView == EmptyView {
| `- note: add @available attribute to enclosing extension
107 | init(releases: [Release], @ViewBuilder trailingView: () -> TrailingView) {
| `- note: add @available attribute to enclosing initializer
108 | self.releases = releases
109 | self.leadingView = EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | self.trailingView = trailingView()
111 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:118:29: error: 'EmptyView' is only available in macOS 10.15 or newer
112 | }
113 |
114 | public extension RecapScreen where TrailingView == EmptyView {
| `- note: add @available attribute to enclosing extension
115 | init(releases: [Release], @ViewBuilder leadingView: () -> LeadingView) {
| `- note: add @available attribute to enclosing initializer
116 | self.releases = releases
117 | self.leadingView = leadingView()
118 | self.trailingView = EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | }
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:125:28: error: 'EmptyView' is only available in macOS 10.15 or newer
120 | }
121 |
122 | public extension RecapScreen where LeadingView == EmptyView, TrailingView == EmptyView {
| `- note: add @available attribute to enclosing extension
123 | init(releases: [Release]) {
| `- note: add @available attribute to enclosing initializer
124 | self.releases = releases
125 | self.leadingView = EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | self.trailingView = EmptyView()
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:126:29: error: 'EmptyView' is only available in macOS 10.15 or newer
120 | }
121 |
122 | public extension RecapScreen where LeadingView == EmptyView, TrailingView == EmptyView {
| `- note: add @available attribute to enclosing extension
123 | init(releases: [Release]) {
| `- note: add @available attribute to enclosing initializer
124 | self.releases = releases
125 | self.leadingView = EmptyView()
126 | self.trailingView = EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
127 | }
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:13: error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'AnyShapeStyle' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:13: error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: conformance of 'Color' to 'ShapeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:55: error: 'Color' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:61: error: 'black' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:69: error: 'Color' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:141:75: error: 'white' is only available in macOS 10.15 or newer
130 | // MARK: Private
131 |
132 | private extension RecapScreen {
| `- note: add @available attribute to enclosing extension
133 | var displayedReleases: [Release] {
134 | self.releases.reversed()
135 | }
136 |
137 | var derivedBackgroundStyle: AnyShapeStyle {
| `- note: add @available attribute to enclosing property
138 | if let backgroundStyle {
139 | backgroundStyle
140 | } else {
141 | AnyShapeStyle(self.colorScheme == .dark ? Color.black : Color.white)
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
142 | }
143 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:193:40: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
194 | self
195 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:196:18: error: 'padding' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
195 | } else {
196 | self.padding(.bottom, 24.0)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
197 | }
198 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:195:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
195 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
196 | self.padding(.bottom, 24.0)
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Public/RecapScreen.swift:192:55: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
172 | // MARK: Safe Area Insets
173 |
174 | private extension View {
| `- note: add @available attribute to enclosing extension
175 | var hasSafeAreaForBottomPadding: Bool {
176 | #if os(macOS)
:
190 |
191 | @ViewBuilder
192 | func withBottomPaddingIfNoSafeArea() -> some View {
| | |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
193 | if hasSafeAreaForBottomPadding {
194 | self
[20/21] Compiling Recap Color+Hex.swift
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:3:20: error: 'Color' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:16:18: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
6 | hexString = hexString.replacingOccurrences(of: "#", with: "")
:
14 |
15 | guard Scanner(string: hexString).scanHexInt64(&rgb) else {
16 | self.init(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | return
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:39:18: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
6 | hexString = hexString.replacingOccurrences(of: "#", with: "")
:
37 | a = CGFloat(rgb & 0x000000FF) / 255.0
38 | } else {
39 | self.init(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | return
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:43:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
6 | hexString = hexString.replacingOccurrences(of: "#", with: "")
:
41 | }
42 |
43 | self.init(.sRGB, red: r, green: g, blue: b, opacity: a)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:50:26: error: 'init(_:)' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
:
44 | }
45 |
46 | var hex: String {
| `- note: add @available attribute to enclosing property
47 | #if os(iOS) || os(watchOS)
48 | let components = UIColor(self).cgColor.components
49 | #elseif os(macOS)
50 | let components = NSColor(self).cgColor.components
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
51 | #endif
52 | let red: CGFloat = components?[0] ?? 0.0
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:3:11: error: 'Color' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
5 | let sanitizedColorName = systemName
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:10:32: error: 'accentColor' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
8 |
9 | switch sanitizedColorName {
10 | case "accent": self = .accentColor
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case "black": self = .black
12 | case "blue": self = .blue
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:11:31: error: 'black' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
9 | switch sanitizedColorName {
10 | case "accent": self = .accentColor
11 | case "black": self = .black
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case "blue": self = .blue
13 | case "brown": self = .brown
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:12:30: error: 'blue' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
10 | case "accent": self = .accentColor
11 | case "black": self = .black
12 | case "blue": self = .blue
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | case "brown": self = .brown
14 | case "cyan": self = .cyan
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:13:31: error: 'brown' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
11 | case "black": self = .black
12 | case "blue": self = .blue
13 | case "brown": self = .brown
| |- error: 'brown' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
14 | case "cyan": self = .cyan
15 | case "gray": self = .gray
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:14:30: error: 'cyan' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
12 | case "blue": self = .blue
13 | case "brown": self = .brown
14 | case "cyan": self = .cyan
| |- error: 'cyan' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
15 | case "gray": self = .gray
16 | case "green": self = .green
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:15:30: error: 'gray' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
13 | case "brown": self = .brown
14 | case "cyan": self = .cyan
15 | case "gray": self = .gray
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | case "green": self = .green
17 | case "indigo": self = .indigo
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:16:31: error: 'green' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
14 | case "cyan": self = .cyan
15 | case "gray": self = .gray
16 | case "green": self = .green
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | case "indigo": self = .indigo
18 | case "mint": self = .mint
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:17:32: error: 'indigo' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
15 | case "gray": self = .gray
16 | case "green": self = .green
17 | case "indigo": self = .indigo
| |- error: 'indigo' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
18 | case "mint": self = .mint
19 | case "orange": self = .orange
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:18:30: error: 'mint' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
16 | case "green": self = .green
17 | case "indigo": self = .indigo
18 | case "mint": self = .mint
| |- error: 'mint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
19 | case "orange": self = .orange
20 | case "pink": self = .pink
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:19:32: error: 'orange' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
17 | case "indigo": self = .indigo
18 | case "mint": self = .mint
19 | case "orange": self = .orange
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | case "pink": self = .pink
21 | case "primary": self = .primary
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:20:30: error: 'pink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
18 | case "mint": self = .mint
19 | case "orange": self = .orange
20 | case "pink": self = .pink
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | case "primary": self = .primary
22 | case "purple": self = .purple
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:21:33: error: 'primary' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
19 | case "orange": self = .orange
20 | case "pink": self = .pink
21 | case "primary": self = .primary
| |- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | case "purple": self = .purple
23 | case "secondary": self = .secondary
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:22:32: error: 'purple' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
20 | case "pink": self = .pink
21 | case "primary": self = .primary
22 | case "purple": self = .purple
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | case "secondary": self = .secondary
24 | case "red": self = .red
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:23:35: error: 'secondary' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
21 | case "primary": self = .primary
22 | case "purple": self = .purple
23 | case "secondary": self = .secondary
| |- error: 'secondary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | case "red": self = .red
25 | case "teal": self = .teal
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:24:29: error: 'red' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
22 | case "purple": self = .purple
23 | case "secondary": self = .secondary
24 | case "red": self = .red
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | case "teal": self = .teal
26 | case "white": self = .white
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:25:30: error: 'teal' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
23 | case "secondary": self = .secondary
24 | case "red": self = .red
25 | case "teal": self = .teal
| |- error: 'teal' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
26 | case "white": self = .white
27 | case "yellow": self = .yellow
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:26:31: error: 'white' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
24 | case "red": self = .red
25 | case "teal": self = .teal
26 | case "white": self = .white
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | case "yellow": self = .yellow
28 | default: return nil
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:27:32: error: 'yellow' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
25 | case "teal": self = .teal
26 | case "white": self = .white
27 | case "yellow": self = .yellow
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | default: return nil
29 | }
[21/21] Compiling Recap Color+SystemNames.swift
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:3:20: error: 'Color' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:16:18: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
6 | hexString = hexString.replacingOccurrences(of: "#", with: "")
:
14 |
15 | guard Scanner(string: hexString).scanHexInt64(&rgb) else {
16 | self.init(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | return
18 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:39:18: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
6 | hexString = hexString.replacingOccurrences(of: "#", with: "")
:
37 | a = CGFloat(rgb & 0x000000FF) / 255.0
38 | } else {
39 | self.init(.sRGB, red: 1, green: 1, blue: 1, opacity: 1)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | return
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:43:14: error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
| `- note: add @available attribute to enclosing initializer
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
6 | hexString = hexString.replacingOccurrences(of: "#", with: "")
:
41 | }
42 |
43 | self.init(.sRGB, red: r, green: g, blue: b, opacity: a)
| |- error: 'init(_:red:green:blue:opacity:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+Hex.swift:50:26: error: 'init(_:)' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | internal extension Color {
| `- note: add @available attribute to enclosing extension
4 | init(hex: String) {
5 | var hexString = hex.trimmingCharacters(in: .whitespacesAndNewlines)
:
44 | }
45 |
46 | var hex: String {
| `- note: add @available attribute to enclosing property
47 | #if os(iOS) || os(watchOS)
48 | let components = UIColor(self).cgColor.components
49 | #elseif os(macOS)
50 | let components = NSColor(self).cgColor.components
| |- error: 'init(_:)' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
51 | #endif
52 | let red: CGFloat = components?[0] ?? 0.0
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:3:11: error: 'Color' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
5 | let sanitizedColorName = systemName
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:10:32: error: 'accentColor' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
8 |
9 | switch sanitizedColorName {
10 | case "accent": self = .accentColor
| |- error: 'accentColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
11 | case "black": self = .black
12 | case "blue": self = .blue
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:11:31: error: 'black' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
9 | switch sanitizedColorName {
10 | case "accent": self = .accentColor
11 | case "black": self = .black
| |- error: 'black' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
12 | case "blue": self = .blue
13 | case "brown": self = .brown
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:12:30: error: 'blue' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
10 | case "accent": self = .accentColor
11 | case "black": self = .black
12 | case "blue": self = .blue
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
13 | case "brown": self = .brown
14 | case "cyan": self = .cyan
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:13:31: error: 'brown' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
11 | case "black": self = .black
12 | case "blue": self = .blue
13 | case "brown": self = .brown
| |- error: 'brown' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
14 | case "cyan": self = .cyan
15 | case "gray": self = .gray
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:14:30: error: 'cyan' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
12 | case "blue": self = .blue
13 | case "brown": self = .brown
14 | case "cyan": self = .cyan
| |- error: 'cyan' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
15 | case "gray": self = .gray
16 | case "green": self = .green
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:15:30: error: 'gray' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
13 | case "brown": self = .brown
14 | case "cyan": self = .cyan
15 | case "gray": self = .gray
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
16 | case "green": self = .green
17 | case "indigo": self = .indigo
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:16:31: error: 'green' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
14 | case "cyan": self = .cyan
15 | case "gray": self = .gray
16 | case "green": self = .green
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
17 | case "indigo": self = .indigo
18 | case "mint": self = .mint
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:17:32: error: 'indigo' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
15 | case "gray": self = .gray
16 | case "green": self = .green
17 | case "indigo": self = .indigo
| |- error: 'indigo' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
18 | case "mint": self = .mint
19 | case "orange": self = .orange
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:18:30: error: 'mint' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
16 | case "green": self = .green
17 | case "indigo": self = .indigo
18 | case "mint": self = .mint
| |- error: 'mint' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
19 | case "orange": self = .orange
20 | case "pink": self = .pink
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:19:32: error: 'orange' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
17 | case "indigo": self = .indigo
18 | case "mint": self = .mint
19 | case "orange": self = .orange
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | case "pink": self = .pink
21 | case "primary": self = .primary
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:20:30: error: 'pink' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
18 | case "mint": self = .mint
19 | case "orange": self = .orange
20 | case "pink": self = .pink
| |- error: 'pink' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | case "primary": self = .primary
22 | case "purple": self = .purple
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:21:33: error: 'primary' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
19 | case "orange": self = .orange
20 | case "pink": self = .pink
21 | case "primary": self = .primary
| |- error: 'primary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | case "purple": self = .purple
23 | case "secondary": self = .secondary
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:22:32: error: 'purple' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
20 | case "pink": self = .pink
21 | case "primary": self = .primary
22 | case "purple": self = .purple
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | case "secondary": self = .secondary
24 | case "red": self = .red
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:23:35: error: 'secondary' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
21 | case "primary": self = .primary
22 | case "purple": self = .purple
23 | case "secondary": self = .secondary
| |- error: 'secondary' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | case "red": self = .red
25 | case "teal": self = .teal
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:24:29: error: 'red' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
22 | case "purple": self = .purple
23 | case "secondary": self = .secondary
24 | case "red": self = .red
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | case "teal": self = .teal
26 | case "white": self = .white
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:25:30: error: 'teal' is only available in macOS 12.0 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
23 | case "secondary": self = .secondary
24 | case "red": self = .red
25 | case "teal": self = .teal
| |- error: 'teal' is only available in macOS 12.0 or newer
| `- note: add 'if #available' version check
26 | case "white": self = .white
27 | case "yellow": self = .yellow
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:26:31: error: 'white' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
24 | case "red": self = .red
25 | case "teal": self = .teal
26 | case "white": self = .white
| |- error: 'white' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | case "yellow": self = .yellow
28 | default: return nil
/Users/admin/builder/spi-builder-workspace/Sources/Recap/Internal/Color+SystemNames.swift:27:32: error: 'yellow' is only available in macOS 10.15 or newer
1 | import SwiftUI
2 |
3 | extension Color {
| `- note: add @available attribute to enclosing extension
4 | init?(systemName: String) {
| `- note: add @available attribute to enclosing initializer
5 | let sanitizedColorName = systemName
6 | .trimmingCharacters(in: .whitespaces)
:
25 | case "teal": self = .teal
26 | case "white": self = .white
27 | case "yellow": self = .yellow
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | default: return nil
29 | }
BUILD FAILURE 6.0 macosSpm