Build Information
Failed to build BIKCharts, reference 1.0.1 (817119
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 16:35:51 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
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 | }
[39/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 | }
[40/43] Compiling BIKCharts BadgeShape.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:16:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:17:20: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:19:14: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:20:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:21:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:22:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:23:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:24:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
26 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:25:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 |
27 | return path
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:19:6: error: 'Binding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
18 |
19 | @Binding var value: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
20 | private let direction: BadgeViewDirection
21 | private let viewModel: BadgeValueModel
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:23:81: error: 'Binding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
21 | private let viewModel: BadgeValueModel
22 |
23 | init(with viewModel: BadgeValueModel, direction: BadgeViewDirection, value: Binding<CGFloat>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
24 | self.viewModel = viewModel
25 | self.direction = direction
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:31:20: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:46:24: error: 'View' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:32:9: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:34:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .cornerRadius(35)
36 | .rotationEffect(.degrees(rotationDegree))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:35:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
35 | .cornerRadius(35)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .rotationEffect(.degrees(rotationDegree))
37 | infoText
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:36:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
35 | .cornerRadius(35)
36 | .rotationEffect(.degrees(rotationDegree))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | infoText
38 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:38:18: error: 'padding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
:
36 | .rotationEffect(.degrees(rotationDegree))
37 | infoText
38 | .padding()
| |- error: 'padding' 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/BarChart/BadgeValue/BadgeValue.swift:47:9: error: 'VStack' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:48:13: error: 'Text' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:49:18: error: 'underline(_:color:)' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
| |- error: 'underline(_:color:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:50:18: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .font(.system(size: 10))
52 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:51:18: error: 'font' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:51:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:52:18: error: 'lineLimit' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
52 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:53:13: error: 'Text' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
51 | .font(.system(size: 10))
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:54:18: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .font(.system(size: 10))
56 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:55:18: error: 'font' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .lineLimit(1)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:55:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
56 | .lineLimit(1)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:56:18: error: 'lineLimit' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
56 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:13:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
13 | let underlineColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | let foregroundColor: Color
15 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:14:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
13 | let underlineColor: Color
14 | let foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:61: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:119: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:70: error: 'black' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:128: error: 'red' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'red' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:16:23: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
15 | let calculationStyle: BarChart.CalculationStyle
16 | let fillBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | let emptyBarColor: Color
18 | let barWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:17:24: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
15 | let calculationStyle: BarChart.CalculationStyle
16 | let fillBarColor: Color
17 | let emptyBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let barWidth: CGFloat
19 | let barHeight: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:25:105: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
:
23 | let showValueDescription: Bool
24 |
25 | init(value: CGFloat, valueName: String?, calculationStyle: BarChart.CalculationStyle, fillBarColor: Color, emptyBarColor: Color, barWidth: CGFloat, barHeight: CGFloat, barCornerRadius: CGFloat, descriptionLabelSize: CGFloat, showValueText: Bool, showValueDescription: Bool) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.showValueText = showValueText
27 | self.showValueDescription = showValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:25:127: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
:
23 | let showValueDescription: Bool
24 |
25 | init(value: CGFloat, valueName: String?, calculationStyle: BarChart.CalculationStyle, fillBarColor: Color, emptyBarColor: Color, barWidth: CGFloat, barHeight: CGFloat, barCornerRadius: CGFloat, descriptionLabelSize: CGFloat, showValueText: Bool, showValueDescription: Bool) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.showValueText = showValueText
27 | self.showValueDescription = showValueDescription
[41/43] Compiling BIKCharts BadgeValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:16:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:17:20: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:19:14: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:20:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:21:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:22:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:23:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:24:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
26 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:25:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 |
27 | return path
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:19:6: error: 'Binding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
18 |
19 | @Binding var value: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
20 | private let direction: BadgeViewDirection
21 | private let viewModel: BadgeValueModel
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:23:81: error: 'Binding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
21 | private let viewModel: BadgeValueModel
22 |
23 | init(with viewModel: BadgeValueModel, direction: BadgeViewDirection, value: Binding<CGFloat>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
24 | self.viewModel = viewModel
25 | self.direction = direction
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:31:20: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:46:24: error: 'View' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:32:9: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:34:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .cornerRadius(35)
36 | .rotationEffect(.degrees(rotationDegree))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:35:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
35 | .cornerRadius(35)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .rotationEffect(.degrees(rotationDegree))
37 | infoText
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:36:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
35 | .cornerRadius(35)
36 | .rotationEffect(.degrees(rotationDegree))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | infoText
38 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:38:18: error: 'padding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
:
36 | .rotationEffect(.degrees(rotationDegree))
37 | infoText
38 | .padding()
| |- error: 'padding' 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/BarChart/BadgeValue/BadgeValue.swift:47:9: error: 'VStack' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:48:13: error: 'Text' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:49:18: error: 'underline(_:color:)' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
| |- error: 'underline(_:color:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:50:18: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .font(.system(size: 10))
52 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:51:18: error: 'font' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:51:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:52:18: error: 'lineLimit' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
52 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:53:13: error: 'Text' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
51 | .font(.system(size: 10))
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:54:18: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .font(.system(size: 10))
56 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:55:18: error: 'font' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .lineLimit(1)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:55:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
56 | .lineLimit(1)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:56:18: error: 'lineLimit' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
56 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:13:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
13 | let underlineColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | let foregroundColor: Color
15 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:14:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
13 | let underlineColor: Color
14 | let foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:61: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:119: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:70: error: 'black' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:128: error: 'red' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'red' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:16:23: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
15 | let calculationStyle: BarChart.CalculationStyle
16 | let fillBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | let emptyBarColor: Color
18 | let barWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:17:24: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
15 | let calculationStyle: BarChart.CalculationStyle
16 | let fillBarColor: Color
17 | let emptyBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let barWidth: CGFloat
19 | let barHeight: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:25:105: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
:
23 | let showValueDescription: Bool
24 |
25 | init(value: CGFloat, valueName: String?, calculationStyle: BarChart.CalculationStyle, fillBarColor: Color, emptyBarColor: Color, barWidth: CGFloat, barHeight: CGFloat, barCornerRadius: CGFloat, descriptionLabelSize: CGFloat, showValueText: Bool, showValueDescription: Bool) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.showValueText = showValueText
27 | self.showValueDescription = showValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:25:127: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
:
23 | let showValueDescription: Bool
24 |
25 | init(value: CGFloat, valueName: String?, calculationStyle: BarChart.CalculationStyle, fillBarColor: Color, emptyBarColor: Color, barWidth: CGFloat, barHeight: CGFloat, barCornerRadius: CGFloat, descriptionLabelSize: CGFloat, showValueText: Bool, showValueDescription: Bool) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.showValueText = showValueText
27 | self.showValueDescription = showValueDescription
[42/43] Compiling BIKCharts BadgeValueModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:16:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:17:20: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:19:14: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:20:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:21:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:22:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:23:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:24:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
26 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:25:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 |
27 | return path
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:19:6: error: 'Binding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
18 |
19 | @Binding var value: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
20 | private let direction: BadgeViewDirection
21 | private let viewModel: BadgeValueModel
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:23:81: error: 'Binding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
21 | private let viewModel: BadgeValueModel
22 |
23 | init(with viewModel: BadgeValueModel, direction: BadgeViewDirection, value: Binding<CGFloat>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
24 | self.viewModel = viewModel
25 | self.direction = direction
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:31:20: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:46:24: error: 'View' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:32:9: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:34:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .cornerRadius(35)
36 | .rotationEffect(.degrees(rotationDegree))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:35:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
35 | .cornerRadius(35)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .rotationEffect(.degrees(rotationDegree))
37 | infoText
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:36:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
35 | .cornerRadius(35)
36 | .rotationEffect(.degrees(rotationDegree))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | infoText
38 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:38:18: error: 'padding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
:
36 | .rotationEffect(.degrees(rotationDegree))
37 | infoText
38 | .padding()
| |- error: 'padding' 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/BarChart/BadgeValue/BadgeValue.swift:47:9: error: 'VStack' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:48:13: error: 'Text' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:49:18: error: 'underline(_:color:)' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
| |- error: 'underline(_:color:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:50:18: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .font(.system(size: 10))
52 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:51:18: error: 'font' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:51:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:52:18: error: 'lineLimit' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
52 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:53:13: error: 'Text' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
51 | .font(.system(size: 10))
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:54:18: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .font(.system(size: 10))
56 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:55:18: error: 'font' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .lineLimit(1)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:55:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
56 | .lineLimit(1)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:56:18: error: 'lineLimit' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
56 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:13:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
13 | let underlineColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | let foregroundColor: Color
15 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:14:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
13 | let underlineColor: Color
14 | let foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:61: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:119: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:70: error: 'black' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:128: error: 'red' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'red' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:16:23: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
15 | let calculationStyle: BarChart.CalculationStyle
16 | let fillBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | let emptyBarColor: Color
18 | let barWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:17:24: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
15 | let calculationStyle: BarChart.CalculationStyle
16 | let fillBarColor: Color
17 | let emptyBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let barWidth: CGFloat
19 | let barHeight: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:25:105: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
:
23 | let showValueDescription: Bool
24 |
25 | init(value: CGFloat, valueName: String?, calculationStyle: BarChart.CalculationStyle, fillBarColor: Color, emptyBarColor: Color, barWidth: CGFloat, barHeight: CGFloat, barCornerRadius: CGFloat, descriptionLabelSize: CGFloat, showValueText: Bool, showValueDescription: Bool) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.showValueText = showValueText
27 | self.showValueDescription = showValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:25:127: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
:
23 | let showValueDescription: Bool
24 |
25 | init(value: CGFloat, valueName: String?, calculationStyle: BarChart.CalculationStyle, fillBarColor: Color, emptyBarColor: Color, barWidth: CGFloat, barHeight: CGFloat, barCornerRadius: CGFloat, descriptionLabelSize: CGFloat, showValueText: Bool, showValueDescription: Bool) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.showValueText = showValueText
27 | self.showValueDescription = showValueDescription
[43/43] Compiling BIKCharts BarModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:16:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:17:20: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:19:14: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:20:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:21:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
19 | path.move(to: CGPoint(x: rect.minX, y: rect.minY))
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:22:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
20 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY))
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:23:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
21 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY-Const.triangleSize/2))
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:24:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
22 | path.addLine(to: CGPoint(x: rect.midX+Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
26 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeShape.swift:25:14: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct BadgeShape: Shape {
| `- note: add @available attribute to enclosing struct
12 | private enum Const {
13 | static let triangleSize: CGFloat = 20
14 | }
15 |
16 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
17 | var path = Path()
18 |
:
23 | path.addLine(to: CGPoint(x: rect.midX, y: rect.maxY))
24 | path.addLine(to: CGPoint(x: rect.midX-Const.triangleSize/2, y: rect.maxY-Const.triangleSize/2))
25 | path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY-Const.triangleSize/2))
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 |
27 | return path
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:19:6: error: 'Binding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
18 |
19 | @Binding var value: CGFloat
| `- error: 'Binding' is only available in macOS 10.15 or newer
20 | private let direction: BadgeViewDirection
21 | private let viewModel: BadgeValueModel
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:23:81: error: 'Binding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
21 | private let viewModel: BadgeValueModel
22 |
23 | init(with viewModel: BadgeValueModel, direction: BadgeViewDirection, value: Binding<CGFloat>) {
| | `- error: 'Binding' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
24 | self.viewModel = viewModel
25 | self.direction = direction
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:31:20: error: 'View' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:46:24: error: 'View' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:32:9: error: 'ZStack' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:34:18: error: 'foregroundColor' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | .cornerRadius(35)
36 | .rotationEffect(.degrees(rotationDegree))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:35:18: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
35 | .cornerRadius(35)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | .rotationEffect(.degrees(rotationDegree))
37 | infoText
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:36:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
34 | .foregroundColor(viewModel.foregroundColor)
35 | .cornerRadius(35)
36 | .rotationEffect(.degrees(rotationDegree))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | infoText
38 | .padding()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:38:18: error: 'padding' is only available in macOS 10.15 or newer
13 | }
14 |
15 | struct BadgeValue: View {
| `- note: add @available attribute to enclosing struct
16 |
17 | // MARK: - Proporties
:
29 | // MARK: - Body
30 |
31 | var body: some View {
| `- note: add @available attribute to enclosing property
32 | ZStack {
33 | BadgeShape()
:
36 | .rotationEffect(.degrees(rotationDegree))
37 | infoText
38 | .padding()
| |- error: 'padding' 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/BarChart/BadgeValue/BadgeValue.swift:47:9: error: 'VStack' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:48:13: error: 'Text' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:49:18: error: 'underline(_:color:)' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
| |- error: 'underline(_:color:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:50:18: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .font(.system(size: 10))
52 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:51:18: error: 'font' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:51:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
49 | .underline(viewModel.showUnderline, color: viewModel.underlineColor)
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:52:18: error: 'lineLimit' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
50 | .multilineTextAlignment(.center)
51 | .font(.system(size: 10))
52 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:53:13: error: 'Text' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
51 | .font(.system(size: 10))
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:54:18: error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
52 | .lineLimit(1)
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
| |- error: 'multilineTextAlignment' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | .font(.system(size: 10))
56 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:55:18: error: 'font' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | .lineLimit(1)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:55:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
53 | Text("\(String(format: "%.1f", value))")
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
56 | .lineLimit(1)
57 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValue.swift:56:18: error: 'lineLimit' is only available in macOS 10.15 or newer
43 | // MARK: - Views
44 |
45 | private extension BadgeValue {
| `- note: add @available attribute to enclosing extension
46 | var infoText: some View {
| `- note: add @available attribute to enclosing property
47 | VStack {
48 | Text(viewModel.title)
:
54 | .multilineTextAlignment(.center)
55 | .font(.system(size: 10))
56 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:13:25: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
13 | let underlineColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 | let foregroundColor: Color
15 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:14:26: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
13 | let underlineColor: Color
14 | let foregroundColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:61: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:119: error: 'Color' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:70: error: 'black' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'black' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BadgeValue/BadgeValueModel.swift:16:128: error: 'red' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct BadgeValueModel {
| `- note: add @available attribute to enclosing struct
11 | let title: String
12 | let showUnderline: Bool
:
14 | let foregroundColor: Color
15 |
16 | public init(showUnderline: Bool = true, underlineColor: Color = .black, title: String = "Value", foregroundColor: Color = .red) {
| | `- error: 'red' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
17 | self.showUnderline = showUnderline
18 | self.underlineColor = underlineColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:16:23: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
15 | let calculationStyle: BarChart.CalculationStyle
16 | let fillBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
17 | let emptyBarColor: Color
18 | let barWidth: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:17:24: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
15 | let calculationStyle: BarChart.CalculationStyle
16 | let fillBarColor: Color
17 | let emptyBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | let barWidth: CGFloat
19 | let barHeight: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:25:105: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
:
23 | let showValueDescription: Bool
24 |
25 | init(value: CGFloat, valueName: String?, calculationStyle: BarChart.CalculationStyle, fillBarColor: Color, emptyBarColor: Color, barWidth: CGFloat, barHeight: CGFloat, barCornerRadius: CGFloat, descriptionLabelSize: CGFloat, showValueText: Bool, showValueDescription: Bool) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.showValueText = showValueText
27 | self.showValueDescription = showValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/BarModel.swift:25:127: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | struct BarModel {
| `- note: add @available attribute to enclosing struct
13 | let value: CGFloat
14 | let valueName: String?
:
23 | let showValueDescription: Bool
24 |
25 | init(value: CGFloat, valueName: String?, calculationStyle: BarChart.CalculationStyle, fillBarColor: Color, emptyBarColor: Color, barWidth: CGFloat, barHeight: CGFloat, barCornerRadius: CGFloat, descriptionLabelSize: CGFloat, showValueText: Bool, showValueDescription: Bool) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
26 | self.showValueText = showValueText
27 | self.showValueDescription = showValueDescription
BUILD FAILURE 6.0 macosSpm