Build Information
Failed to build BIKCharts, reference main (60e267
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 16:35:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:34:31: error: 'View' is only available in macOS 10.15 or newer
31 | }
32 |
33 | struct PieChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
34 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
35 | PieChartSamples()
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:24:27: error: cannot find 'UIScreen' in scope
22 | }
23 | }
24 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
25 | }
26 | .navigationBarTitle("Pie Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:13:16: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:15:40: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | self.value = value
17 | self.color = color
[38/43] Compiling BIKCharts CalculationStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:32:31: error: 'View' is only available in macOS 10.15 or newer
29 | }
30 |
31 | struct LineChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
32 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LineChartSamples()
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:22:27: error: cannot find 'UIScreen' in scope
20 | }
21 | }
22 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
23 | }
24 | .navigationBarTitle("Line Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct PieChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:34:31: error: 'View' is only available in macOS 10.15 or newer
31 | }
32 |
33 | struct PieChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
34 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
35 | PieChartSamples()
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:24:27: error: cannot find 'UIScreen' in scope
22 | }
23 | }
24 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
25 | }
26 | .navigationBarTitle("Pie Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:13:16: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:15:40: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | self.value = value
17 | self.color = color
[39/43] Compiling BIKCharts ChartSliceDataModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:32:31: error: 'View' is only available in macOS 10.15 or newer
29 | }
30 |
31 | struct LineChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
32 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LineChartSamples()
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:22:27: error: cannot find 'UIScreen' in scope
20 | }
21 | }
22 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
23 | }
24 | .navigationBarTitle("Line Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct PieChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:34:31: error: 'View' is only available in macOS 10.15 or newer
31 | }
32 |
33 | struct PieChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
34 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
35 | PieChartSamples()
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:24:27: error: cannot find 'UIScreen' in scope
22 | }
23 | }
24 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
25 | }
26 | .navigationBarTitle("Pie Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:13:16: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:15:40: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | self.value = value
17 | self.color = color
[40/43] Compiling BIKCharts CircularChart.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:17:34: error: 'Color' is only available in macOS 10.15 or newer
12 | struct CircularChart: View {
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
| `- note: add @available attribute to enclosing enum
15 | static let circleWholeAreaRate: CGFloat = 0.5
16 | static let circleWholeAreaDegree: CGFloat = 180.0
17 | static let defaultColor: Color = .orange
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:17:43: error: 'orange' is only available in macOS 10.15 or newer
12 | struct CircularChart: View {
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
| `- note: add @available attribute to enclosing enum
15 | static let circleWholeAreaRate: CGFloat = 0.5
16 | static let circleWholeAreaDegree: CGFloat = 180.0
17 | static let defaultColor: Color = .orange
| | `- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:22:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
20 | // MARK: - Properties
21 |
22 | @ObservedObject private var viewModel: CircularChartModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
23 | @State private var shouldTrim = false
24 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
21 |
22 | @ObservedObject private var viewModel: CircularChartModel
23 | @State private var shouldTrim = false
| `- error: 'State' is only available in macOS 10.15 or newer
24 |
25 | public init(with viewModel: CircularChartModel) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:27: error: 'View' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:50:41: error: 'GeometryProxy' is only available in macOS 10.15 or newer
47 | // MARK: - Views
48 |
49 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
50 | func getSlice(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | let model = CircularSliceModel(shouldTrim: shouldTrim,
52 | trim: (from: .zero, to: shouldTrim ? getCalculatedValue(at: index) : .zero),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:50:64: error: 'View' is only available in macOS 10.15 or newer
47 | // MARK: - Views
48 |
49 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
50 | func getSlice(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | let model = CircularSliceModel(shouldTrim: shouldTrim,
52 | trim: (from: .zero, to: shouldTrim ? getCalculatedValue(at: index) : .zero),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:80:57: error: 'GeometryProxy' is only available in macOS 10.15 or newer
61 | // MARK: - Helper
62 |
63 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
64 |
65 | var sortedValues: [CGFloat] {
:
78 | }
79 |
80 | func getCalculatedPadding(at index: Int, for proxy: GeometryProxy) -> CGFloat {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
81 | return floor(circlePadding * CGFloat(index+1))
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:107:31: error: 'View' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:26:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
23 | @State private var shouldTrim = false
24 |
25 | public init(with viewModel: CircularChartModel) {
| `- note: add @available attribute to enclosing initializer
26 | self.viewModel = viewModel
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:24: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: error: 'ZStack' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: error: 'ForEach' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:36:50: error: 'linear' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | shouldTrim = true
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:37:29: error: setter for 'shouldTrim' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
:
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
37 | shouldTrim = true
| |- error: setter for 'shouldTrim' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:39:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
:
37 | shouldTrim = true
38 | }
39 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | height: proxy.height)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:20: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:24: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:108:67: error: 'red' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:109:67: error: 'orange' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | .init(value: 55, color: .purple),
111 | .init(value: 45, color: .blue)]))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:110:67: error: 'purple' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | .init(value: 45, color: .blue)]))
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:111:67: error: 'blue' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
111 | .init(value: 45, color: .blue)]))
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published public var strokeStyle: StrokeStyle
17 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:16:40: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
17 |
18 | public init(data: [ChartSliceDataModel],
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | public init(data: [ChartSliceDataModel],
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:20:30: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
21 | lineCap: .round,
22 | dash: [])) {
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, [ChartSliceDataModel]>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, [ChartSliceDataModel]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, CalculationStyle>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, CalculationStyle>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, StrokeStyle>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, StrokeStyle>'
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:12:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:23:9: error: setter for 'data' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
21 | lineCap: .round,
22 | dash: [])) {
23 | self.data = data
| |- error: setter for 'data' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | self.calculationStyle = calculationStyle
25 | self.strokeStyle = strokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:24:9: error: setter for 'calculationStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
:
22 | dash: [])) {
23 | self.data = data
24 | self.calculationStyle = calculationStyle
| |- error: setter for 'calculationStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | self.strokeStyle = strokeStyle
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:25:9: error: setter for 'strokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
:
23 | self.data = data
24 | self.calculationStyle = calculationStyle
25 | self.strokeStyle = strokeStyle
| |- error: setter for 'strokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceModel.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularSliceModel {
| `- note: add @available attribute to enclosing struct
13 | let shouldTrim: Bool
14 | let trim: (from: CGFloat, to: CGFloat)
15 | let rotationDegree: Double
16 | let padding: CGFloat
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let strokeStyle: StrokeStyle
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceModel.swift:18:22: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularSliceModel {
| `- note: add @available attribute to enclosing struct
13 | let shouldTrim: Bool
14 | let trim: (from: CGFloat, to: CGFloat)
:
16 | let padding: CGFloat
17 | let color: Color
18 | let strokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:23:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CircularSliceView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
24 | slice
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:31:21: error: 'View' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:45:31: error: 'View' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:32:9: error: 'Circle' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:33:14: error: 'trim(from:to:)' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | .stroke(viewModel.color,
35 | style: viewModel.strokeStyle)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:34:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:36:14: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:37:14: error: 'padding' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .animation(.easeInOut)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:38:14: error: 'animation' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:38:25: error: 'easeInOut' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
| |- error: 'easeInOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:50:46: error: 'Color' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
48 | rotationDegree: 180,
49 | padding: 30,
50 | color: Color.red,
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | strokeStyle: .init()))
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:50:52: error: 'red' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
48 | rotationDegree: 180,
49 | padding: 30,
50 | color: Color.red,
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | strokeStyle: .init()))
52 | }
[41/43] Compiling BIKCharts CircularChartModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:17:34: error: 'Color' is only available in macOS 10.15 or newer
12 | struct CircularChart: View {
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
| `- note: add @available attribute to enclosing enum
15 | static let circleWholeAreaRate: CGFloat = 0.5
16 | static let circleWholeAreaDegree: CGFloat = 180.0
17 | static let defaultColor: Color = .orange
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:17:43: error: 'orange' is only available in macOS 10.15 or newer
12 | struct CircularChart: View {
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
| `- note: add @available attribute to enclosing enum
15 | static let circleWholeAreaRate: CGFloat = 0.5
16 | static let circleWholeAreaDegree: CGFloat = 180.0
17 | static let defaultColor: Color = .orange
| | `- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:22:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
20 | // MARK: - Properties
21 |
22 | @ObservedObject private var viewModel: CircularChartModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
23 | @State private var shouldTrim = false
24 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
21 |
22 | @ObservedObject private var viewModel: CircularChartModel
23 | @State private var shouldTrim = false
| `- error: 'State' is only available in macOS 10.15 or newer
24 |
25 | public init(with viewModel: CircularChartModel) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:27: error: 'View' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:50:41: error: 'GeometryProxy' is only available in macOS 10.15 or newer
47 | // MARK: - Views
48 |
49 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
50 | func getSlice(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | let model = CircularSliceModel(shouldTrim: shouldTrim,
52 | trim: (from: .zero, to: shouldTrim ? getCalculatedValue(at: index) : .zero),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:50:64: error: 'View' is only available in macOS 10.15 or newer
47 | // MARK: - Views
48 |
49 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
50 | func getSlice(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | let model = CircularSliceModel(shouldTrim: shouldTrim,
52 | trim: (from: .zero, to: shouldTrim ? getCalculatedValue(at: index) : .zero),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:80:57: error: 'GeometryProxy' is only available in macOS 10.15 or newer
61 | // MARK: - Helper
62 |
63 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
64 |
65 | var sortedValues: [CGFloat] {
:
78 | }
79 |
80 | func getCalculatedPadding(at index: Int, for proxy: GeometryProxy) -> CGFloat {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
81 | return floor(circlePadding * CGFloat(index+1))
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:107:31: error: 'View' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:26:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
23 | @State private var shouldTrim = false
24 |
25 | public init(with viewModel: CircularChartModel) {
| `- note: add @available attribute to enclosing initializer
26 | self.viewModel = viewModel
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:24: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: error: 'ZStack' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: error: 'ForEach' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:36:50: error: 'linear' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | shouldTrim = true
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:37:29: error: setter for 'shouldTrim' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
:
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
37 | shouldTrim = true
| |- error: setter for 'shouldTrim' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:39:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
:
37 | shouldTrim = true
38 | }
39 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | height: proxy.height)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:20: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:24: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:108:67: error: 'red' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:109:67: error: 'orange' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | .init(value: 55, color: .purple),
111 | .init(value: 45, color: .blue)]))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:110:67: error: 'purple' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | .init(value: 45, color: .blue)]))
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:111:67: error: 'blue' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
111 | .init(value: 45, color: .blue)]))
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published public var strokeStyle: StrokeStyle
17 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:16:40: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
17 |
18 | public init(data: [ChartSliceDataModel],
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | public init(data: [ChartSliceDataModel],
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:20:30: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
21 | lineCap: .round,
22 | dash: [])) {
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, [ChartSliceDataModel]>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, [ChartSliceDataModel]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, CalculationStyle>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, CalculationStyle>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, StrokeStyle>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, StrokeStyle>'
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:12:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:23:9: error: setter for 'data' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
21 | lineCap: .round,
22 | dash: [])) {
23 | self.data = data
| |- error: setter for 'data' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | self.calculationStyle = calculationStyle
25 | self.strokeStyle = strokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:24:9: error: setter for 'calculationStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
:
22 | dash: [])) {
23 | self.data = data
24 | self.calculationStyle = calculationStyle
| |- error: setter for 'calculationStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | self.strokeStyle = strokeStyle
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:25:9: error: setter for 'strokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
:
23 | self.data = data
24 | self.calculationStyle = calculationStyle
25 | self.strokeStyle = strokeStyle
| |- error: setter for 'strokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceModel.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularSliceModel {
| `- note: add @available attribute to enclosing struct
13 | let shouldTrim: Bool
14 | let trim: (from: CGFloat, to: CGFloat)
15 | let rotationDegree: Double
16 | let padding: CGFloat
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let strokeStyle: StrokeStyle
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceModel.swift:18:22: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularSliceModel {
| `- note: add @available attribute to enclosing struct
13 | let shouldTrim: Bool
14 | let trim: (from: CGFloat, to: CGFloat)
:
16 | let padding: CGFloat
17 | let color: Color
18 | let strokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:23:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CircularSliceView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
24 | slice
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:31:21: error: 'View' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:45:31: error: 'View' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:32:9: error: 'Circle' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:33:14: error: 'trim(from:to:)' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | .stroke(viewModel.color,
35 | style: viewModel.strokeStyle)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:34:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:36:14: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:37:14: error: 'padding' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .animation(.easeInOut)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:38:14: error: 'animation' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:38:25: error: 'easeInOut' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
| |- error: 'easeInOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:50:46: error: 'Color' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
48 | rotationDegree: 180,
49 | padding: 30,
50 | color: Color.red,
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | strokeStyle: .init()))
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:50:52: error: 'red' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
48 | rotationDegree: 180,
49 | padding: 30,
50 | color: Color.red,
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | strokeStyle: .init()))
52 | }
[42/43] Compiling BIKCharts CircularSliceModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:17:34: error: 'Color' is only available in macOS 10.15 or newer
12 | struct CircularChart: View {
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
| `- note: add @available attribute to enclosing enum
15 | static let circleWholeAreaRate: CGFloat = 0.5
16 | static let circleWholeAreaDegree: CGFloat = 180.0
17 | static let defaultColor: Color = .orange
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:17:43: error: 'orange' is only available in macOS 10.15 or newer
12 | struct CircularChart: View {
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
| `- note: add @available attribute to enclosing enum
15 | static let circleWholeAreaRate: CGFloat = 0.5
16 | static let circleWholeAreaDegree: CGFloat = 180.0
17 | static let defaultColor: Color = .orange
| | `- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:22:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
20 | // MARK: - Properties
21 |
22 | @ObservedObject private var viewModel: CircularChartModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
23 | @State private var shouldTrim = false
24 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
21 |
22 | @ObservedObject private var viewModel: CircularChartModel
23 | @State private var shouldTrim = false
| `- error: 'State' is only available in macOS 10.15 or newer
24 |
25 | public init(with viewModel: CircularChartModel) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:27: error: 'View' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:50:41: error: 'GeometryProxy' is only available in macOS 10.15 or newer
47 | // MARK: - Views
48 |
49 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
50 | func getSlice(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | let model = CircularSliceModel(shouldTrim: shouldTrim,
52 | trim: (from: .zero, to: shouldTrim ? getCalculatedValue(at: index) : .zero),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:50:64: error: 'View' is only available in macOS 10.15 or newer
47 | // MARK: - Views
48 |
49 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
50 | func getSlice(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | let model = CircularSliceModel(shouldTrim: shouldTrim,
52 | trim: (from: .zero, to: shouldTrim ? getCalculatedValue(at: index) : .zero),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:80:57: error: 'GeometryProxy' is only available in macOS 10.15 or newer
61 | // MARK: - Helper
62 |
63 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
64 |
65 | var sortedValues: [CGFloat] {
:
78 | }
79 |
80 | func getCalculatedPadding(at index: Int, for proxy: GeometryProxy) -> CGFloat {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
81 | return floor(circlePadding * CGFloat(index+1))
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:107:31: error: 'View' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:26:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
23 | @State private var shouldTrim = false
24 |
25 | public init(with viewModel: CircularChartModel) {
| `- note: add @available attribute to enclosing initializer
26 | self.viewModel = viewModel
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:24: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: error: 'ZStack' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: error: 'ForEach' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:36:50: error: 'linear' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | shouldTrim = true
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:37:29: error: setter for 'shouldTrim' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
:
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
37 | shouldTrim = true
| |- error: setter for 'shouldTrim' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:39:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
:
37 | shouldTrim = true
38 | }
39 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | height: proxy.height)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:20: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:24: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:108:67: error: 'red' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:109:67: error: 'orange' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | .init(value: 55, color: .purple),
111 | .init(value: 45, color: .blue)]))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:110:67: error: 'purple' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | .init(value: 45, color: .blue)]))
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:111:67: error: 'blue' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
111 | .init(value: 45, color: .blue)]))
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published public var strokeStyle: StrokeStyle
17 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:16:40: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
17 |
18 | public init(data: [ChartSliceDataModel],
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | public init(data: [ChartSliceDataModel],
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:20:30: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
21 | lineCap: .round,
22 | dash: [])) {
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, [ChartSliceDataModel]>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, [ChartSliceDataModel]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, CalculationStyle>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, CalculationStyle>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, StrokeStyle>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, StrokeStyle>'
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:12:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:23:9: error: setter for 'data' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
21 | lineCap: .round,
22 | dash: [])) {
23 | self.data = data
| |- error: setter for 'data' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | self.calculationStyle = calculationStyle
25 | self.strokeStyle = strokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:24:9: error: setter for 'calculationStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
:
22 | dash: [])) {
23 | self.data = data
24 | self.calculationStyle = calculationStyle
| |- error: setter for 'calculationStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | self.strokeStyle = strokeStyle
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:25:9: error: setter for 'strokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
:
23 | self.data = data
24 | self.calculationStyle = calculationStyle
25 | self.strokeStyle = strokeStyle
| |- error: setter for 'strokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceModel.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularSliceModel {
| `- note: add @available attribute to enclosing struct
13 | let shouldTrim: Bool
14 | let trim: (from: CGFloat, to: CGFloat)
15 | let rotationDegree: Double
16 | let padding: CGFloat
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let strokeStyle: StrokeStyle
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceModel.swift:18:22: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularSliceModel {
| `- note: add @available attribute to enclosing struct
13 | let shouldTrim: Bool
14 | let trim: (from: CGFloat, to: CGFloat)
:
16 | let padding: CGFloat
17 | let color: Color
18 | let strokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:23:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CircularSliceView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
24 | slice
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:31:21: error: 'View' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:45:31: error: 'View' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:32:9: error: 'Circle' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:33:14: error: 'trim(from:to:)' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | .stroke(viewModel.color,
35 | style: viewModel.strokeStyle)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:34:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:36:14: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:37:14: error: 'padding' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .animation(.easeInOut)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:38:14: error: 'animation' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:38:25: error: 'easeInOut' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
| |- error: 'easeInOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:50:46: error: 'Color' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
48 | rotationDegree: 180,
49 | padding: 30,
50 | color: Color.red,
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | strokeStyle: .init()))
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:50:52: error: 'red' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
48 | rotationDegree: 180,
49 | padding: 30,
50 | color: Color.red,
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | strokeStyle: .init()))
52 | }
[43/43] Compiling BIKCharts CircularSliceView.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:17:34: error: 'Color' is only available in macOS 10.15 or newer
12 | struct CircularChart: View {
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
| `- note: add @available attribute to enclosing enum
15 | static let circleWholeAreaRate: CGFloat = 0.5
16 | static let circleWholeAreaDegree: CGFloat = 180.0
17 | static let defaultColor: Color = .orange
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:17:43: error: 'orange' is only available in macOS 10.15 or newer
12 | struct CircularChart: View {
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
| `- note: add @available attribute to enclosing enum
15 | static let circleWholeAreaRate: CGFloat = 0.5
16 | static let circleWholeAreaDegree: CGFloat = 180.0
17 | static let defaultColor: Color = .orange
| | `- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
18 | }
19 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:22:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
20 | // MARK: - Properties
21 |
22 | @ObservedObject private var viewModel: CircularChartModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
23 | @State private var shouldTrim = false
24 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
21 |
22 | @ObservedObject private var viewModel: CircularChartModel
23 | @State private var shouldTrim = false
| `- error: 'State' is only available in macOS 10.15 or newer
24 |
25 | public init(with viewModel: CircularChartModel) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:27: error: 'View' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:50:41: error: 'GeometryProxy' is only available in macOS 10.15 or newer
47 | // MARK: - Views
48 |
49 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
50 | func getSlice(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | let model = CircularSliceModel(shouldTrim: shouldTrim,
52 | trim: (from: .zero, to: shouldTrim ? getCalculatedValue(at: index) : .zero),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:50:64: error: 'View' is only available in macOS 10.15 or newer
47 | // MARK: - Views
48 |
49 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
50 | func getSlice(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
51 | let model = CircularSliceModel(shouldTrim: shouldTrim,
52 | trim: (from: .zero, to: shouldTrim ? getCalculatedValue(at: index) : .zero),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:80:57: error: 'GeometryProxy' is only available in macOS 10.15 or newer
61 | // MARK: - Helper
62 |
63 | private extension CircularChart {
| `- note: add @available attribute to enclosing extension
64 |
65 | var sortedValues: [CGFloat] {
:
78 | }
79 |
80 | func getCalculatedPadding(at index: Int, for proxy: GeometryProxy) -> CGFloat {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
81 | return floor(circlePadding * CGFloat(index+1))
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:107:31: error: 'View' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:26:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
23 | @State private var shouldTrim = false
24 |
25 | public init(with viewModel: CircularChartModel) {
| `- note: add @available attribute to enclosing initializer
26 | self.viewModel = viewModel
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:9: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:24: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: error: 'ZStack' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:13: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: error: 'ForEach' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:34:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:36:50: error: 'linear' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
| |- error: 'linear' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | shouldTrim = true
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:37:29: error: setter for 'shouldTrim' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
:
35 | getSlice(at: index, proxy: proxy)
36 | .animateOnAppear(using: .linear) {
37 | shouldTrim = true
| |- error: setter for 'shouldTrim' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:39:26: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
:
37 | shouldTrim = true
38 | }
39 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
40 | height: proxy.height)
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:33:20: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
35 | getSlice(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:32:24: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
33 | ZStack {
34 | ForEach(0..<sortedValues.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:31:32: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
10 | import SwiftUI
11 |
12 | struct CircularChart: View {
| `- note: add @available attribute to enclosing struct
13 | // TODO: Convert default color to ColorSet
14 | private enum Const {
:
29 | // MARK: - Body
30 |
31 | public var body: some View {
| | |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
32 | GeometryReader { proxy in
33 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:108:67: error: 'red' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:109:67: error: 'orange' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
110 | .init(value: 55, color: .purple),
111 | .init(value: 45, color: .blue)]))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:110:67: error: 'purple' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
111 | .init(value: 45, color: .blue)]))
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChart.swift:111:67: error: 'blue' is only available in macOS 10.15 or newer
104 | // MARK: - Preview
105 |
106 | struct CircularChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
107 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
108 | CircularChart(with: .init(data: [.init(value: 25, color: .red),
109 | .init(value: 35, color: .orange),
110 | .init(value: 55, color: .purple),
111 | .init(value: 45, color: .blue)]))
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published public var strokeStyle: StrokeStyle
17 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:16:40: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
17 |
18 | public init(data: [ChartSliceDataModel],
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
15 | @Published public var calculationStyle: CalculationStyle
16 | @Published public var strokeStyle: StrokeStyle
| `- error: 'Published' is only available in macOS 10.15 or newer
17 |
18 | public init(data: [ChartSliceDataModel],
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:20:30: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
21 | lineCap: .round,
22 | dash: [])) {
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, [ChartSliceDataModel]>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, [ChartSliceDataModel]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, CalculationStyle>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, CalculationStyle>'
<unknown>:0: error: cannot convert value of type 'KeyPath<CircularChartModel, StrokeStyle>' to expected argument type 'ReferenceWritableKeyPath<CircularChartModel, StrokeStyle>'
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:12:33: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:23:9: error: setter for 'data' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
21 | lineCap: .round,
22 | dash: [])) {
23 | self.data = data
| |- error: setter for 'data' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | self.calculationStyle = calculationStyle
25 | self.strokeStyle = strokeStyle
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:24:9: error: setter for 'calculationStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
:
22 | dash: [])) {
23 | self.data = data
24 | self.calculationStyle = calculationStyle
| |- error: setter for 'calculationStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | self.strokeStyle = strokeStyle
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularChartModel.swift:25:9: error: setter for 'strokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final class CircularChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 |
14 | @Published public var data: [ChartSliceDataModel]
:
16 | @Published public var strokeStyle: StrokeStyle
17 |
18 | public init(data: [ChartSliceDataModel],
| `- note: add @available attribute to enclosing initializer
19 | calculationStyle: CalculationStyle = .maxValue,
20 | strokeStyle: StrokeStyle = .init(lineWidth: 16,
:
23 | self.data = data
24 | self.calculationStyle = calculationStyle
25 | self.strokeStyle = strokeStyle
| |- error: setter for 'strokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | }
27 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceModel.swift:17:16: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularSliceModel {
| `- note: add @available attribute to enclosing struct
13 | let shouldTrim: Bool
14 | let trim: (from: CGFloat, to: CGFloat)
15 | let rotationDegree: Double
16 | let padding: CGFloat
17 | let color: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let strokeStyle: StrokeStyle
19 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceModel.swift:18:22: error: 'StrokeStyle' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct CircularSliceModel {
| `- note: add @available attribute to enclosing struct
13 | let shouldTrim: Bool
14 | let trim: (from: CGFloat, to: CGFloat)
:
16 | let padding: CGFloat
17 | let color: Color
18 | let strokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:23:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct CircularSliceView: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
24 | slice
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:31:21: error: 'View' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:45:31: error: 'View' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:32:9: error: 'Circle' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:33:14: error: 'trim(from:to:)' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
| |- error: 'trim(from:to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | .stroke(viewModel.color,
35 | style: viewModel.strokeStyle)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:34:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:36:14: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
34 | .stroke(viewModel.color,
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:37:14: error: 'padding' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
35 | style: viewModel.strokeStyle)
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
| |- error: 'padding' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | .animation(.easeInOut)
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:38:14: error: 'animation' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:38:25: error: 'easeInOut' is only available in macOS 10.15 or newer
28 | // MARK: - Views
29 |
30 | private extension CircularSliceView {
| `- note: add @available attribute to enclosing extension
31 | var slice: some View {
| `- note: add @available attribute to enclosing property
32 | Circle()
33 | .trim(from: viewModel.trim.from, to: viewModel.trim.to)
:
36 | .rotationEffect(.degrees(viewModel.rotationDegree))
37 | .padding(viewModel.padding)
38 | .animation(.easeInOut)
| |- error: 'easeInOut' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:50:46: error: 'Color' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
48 | rotationDegree: 180,
49 | padding: 30,
50 | color: Color.red,
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | strokeStyle: .init()))
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/CircularChart/CircularSpringPiece/CircularSliceView.swift:50:52: error: 'red' is only available in macOS 10.15 or newer
42 | // MARK: - Preview
43 |
44 | struct CircularSpringPieceView_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
45 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
46 | CircularSliceView(with: .init(shouldTrim: true,
47 | trim: (0, 0.4),
48 | rotationDegree: 180,
49 | padding: 30,
50 | color: Color.red,
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | strokeStyle: .init()))
52 | }
BUILD FAILURE 6.0 macosSpm