Build Information
Failed to build BIKCharts, reference 1.0.1 (817119
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 11:56:33 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
78 | height: viewModel.barHeight,
79 | alignment: .leading)
80 | .layoutPriority(99)
| |- error: 'layoutPriority' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | .font(.footnote)
82 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:81:22: error: 'font' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
79 | alignment: .leading)
80 | .layoutPriority(99)
81 | .font(.footnote)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | } else {
83 | Text(".")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:81:28: error: 'footnote' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
79 | alignment: .leading)
80 | .layoutPriority(99)
81 | .font(.footnote)
| |- error: 'footnote' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | } else {
83 | Text(".")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:75:72: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | Text(valueName)
77 | .frame(width: viewModel.descriptionLabelSize,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:83:17: error: 'Text' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
81 | .font(.footnote)
82 | } else {
83 | Text(".")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | .frame(width: viewModel.descriptionLabelSize,
85 | height: viewModel.barHeight,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:84:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
82 | } else {
83 | Text(".")
84 | .frame(width: viewModel.descriptionLabelSize,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | height: viewModel.barHeight,
86 | alignment: .leading)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:86:40: error: 'leading' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
84 | .frame(width: viewModel.descriptionLabelSize,
85 | height: viewModel.barHeight,
86 | alignment: .leading)
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | .layoutPriority(99)
88 | .hidden()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:87:22: error: 'layoutPriority' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
85 | height: viewModel.barHeight,
86 | alignment: .leading)
87 | .layoutPriority(99)
| |- error: 'layoutPriority' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
88 | .hidden()
89 | .font(.footnote)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:88:22: error: 'hidden()' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
86 | alignment: .leading)
87 | .layoutPriority(99)
88 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .font(.footnote)
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:89:22: error: 'font' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
87 | .layoutPriority(99)
88 | .hidden()
89 | .font(.footnote)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:89:28: error: 'footnote' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
87 | .layoutPriority(99)
88 | .hidden()
89 | .font(.footnote)
| |- error: 'footnote' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:82:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
80 | .layoutPriority(99)
81 | .font(.footnote)
82 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | Text(".")
84 | .frame(width: viewModel.descriptionLabelSize,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:74:43: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
76 | Text(valueName)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:74:43: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
76 | Text(valueName)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:92:13: error: 'EmptyView' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
90 | }
91 | } else {
92 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:91:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
89 | .font(.footnote)
90 | }
91 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | EmptyView()
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:73:41: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
38 | // MARK: - Views
39 |
40 | private extension HorizontalBar {
| `- note: add @available attribute to enclosing extension
41 |
42 | var emptyRect: some View {
:
71 |
72 | @ViewBuilder
73 | var valueDescriptionText: some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
74 | if viewModel.showValueDescription {
75 | if let valueName = viewModel.valueName, !valueName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:117:55: error: 'green' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct HorizontalBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | HorizontalBar(viewModel: .init(value: 50,
115 | valueName: "test",
116 | calculationStyle: .percentage(totalValue: 100),
117 | fillBarColor: .green,
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | emptyBarColor: .gray,
119 | barWidth: 100,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:118:56: error: 'gray' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct HorizontalBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | HorizontalBar(viewModel: .init(value: 50,
115 | valueName: "test",
116 | calculationStyle: .percentage(totalValue: 100),
117 | fillBarColor: .green,
118 | emptyBarColor: .gray,
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
119 | barWidth: 100,
120 | barHeight: 50,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/HorizontalBar.swift:125:14: error: 'previewLayout' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct HorizontalBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | HorizontalBar(viewModel: .init(value: 50,
115 | valueName: "test",
:
123 | showValueText: true,
124 | showValueDescription: true))
125 | .previewLayout(.fixed(width: 150, height: 50))
| |- error: 'previewLayout' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | }
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:23:20: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct VerticalBar: 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 | GeometryReader { proxy in
25 | VStack(spacing: .zero) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:41:25: error: 'View' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
42 | Rectangle()
43 | .foregroundColor(viewModel.emptyBarColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:49:26: error: 'View' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
47 | }
48 |
49 | var filledRect: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
50 | Rectangle()
51 | .foregroundColor(viewModel.fillBarColor)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:58:25: error: 'View' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:57:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
55 | }
56 |
57 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
58 | var valueText: some View {
59 | if viewModel.showValueText {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:72:36: error: 'View' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:71:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
69 | }
70 |
71 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
72 | var valueDescriptionText: some View {
73 | if viewModel.showValueDescription {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:110:31: error: 'View' is only available in macOS 10.15 or newer
107 | // MARK: - Preview
108 |
109 | struct VerticalBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
110 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
111 | VerticalBar(viewModel: .init(value: 50,
112 | valueName: "test",
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:24:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct VerticalBar: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| `- note: add @available attribute to enclosing property
24 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | VStack(spacing: .zero) {
26 | ZStack(alignment: .bottom) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:25:13: error: 'VStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct VerticalBar: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| `- note: add @available attribute to enclosing property
24 | GeometryReader { proxy in
25 | VStack(spacing: .zero) {
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
26 | ZStack(alignment: .bottom) {
27 | emptyRect
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:26:17: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct VerticalBar: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| `- note: add @available attribute to enclosing property
24 | GeometryReader { proxy in
25 | VStack(spacing: .zero) {
26 | ZStack(alignment: .bottom) {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | emptyRect
28 | filledRect
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:26:36: error: 'bottom' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct VerticalBar: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| `- note: add @available attribute to enclosing property
24 | GeometryReader { proxy in
25 | VStack(spacing: .zero) {
26 | ZStack(alignment: .bottom) {
| |- error: 'bottom' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
27 | emptyRect
28 | filledRect
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:32:15: error: 'animation' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct VerticalBar: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| `- note: add @available attribute to enclosing property
24 | GeometryReader { proxy in
25 | VStack(spacing: .zero) {
:
30 | }
31 | valueDescriptionText
32 | }.animation(.default)
| |- error: 'animation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:32:26: error: 'default' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct VerticalBar: View {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Body
22 |
23 | var body: some View {
| `- note: add @available attribute to enclosing property
24 | GeometryReader { proxy in
25 | VStack(spacing: .zero) {
:
30 | }
31 | valueDescriptionText
32 | }.animation(.default)
| |- error: 'default' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | }
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:42:9: error: 'Rectangle' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
| `- note: add @available attribute to enclosing property
42 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
43 | .foregroundColor(viewModel.emptyBarColor)
44 | .frame(width: viewModel.barWidth,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:43:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
| `- note: add @available attribute to enclosing property
42 | Rectangle()
43 | .foregroundColor(viewModel.emptyBarColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
44 | .frame(width: viewModel.barWidth,
45 | height: viewModel.barHeight)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:44:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
| `- note: add @available attribute to enclosing property
42 | Rectangle()
43 | .foregroundColor(viewModel.emptyBarColor)
44 | .frame(width: viewModel.barWidth,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
45 | height: viewModel.barHeight)
46 | .cornerRadius(viewModel.barCornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:46:14: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
| `- note: add @available attribute to enclosing property
42 | Rectangle()
43 | .foregroundColor(viewModel.emptyBarColor)
44 | .frame(width: viewModel.barWidth,
45 | height: viewModel.barHeight)
46 | .cornerRadius(viewModel.barCornerRadius)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | }
48 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:50:9: error: 'Rectangle' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
47 | }
48 |
49 | var filledRect: some View {
| `- note: add @available attribute to enclosing property
50 | Rectangle()
| |- error: 'Rectangle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | .foregroundColor(viewModel.fillBarColor)
52 | .frame(width: viewModel.barWidth,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:51:14: error: 'foregroundColor' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
47 | }
48 |
49 | var filledRect: some View {
| `- note: add @available attribute to enclosing property
50 | Rectangle()
51 | .foregroundColor(viewModel.fillBarColor)
| |- error: 'foregroundColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
52 | .frame(width: viewModel.barWidth,
53 | height: calculateFillBarHeight())
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:52:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
47 | }
48 |
49 | var filledRect: some View {
| `- note: add @available attribute to enclosing property
50 | Rectangle()
51 | .foregroundColor(viewModel.fillBarColor)
52 | .frame(width: viewModel.barWidth,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
53 | height: calculateFillBarHeight())
54 | .cornerRadius(viewModel.barCornerRadius)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:54:14: error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
47 | }
48 |
49 | var filledRect: some View {
| `- note: add @available attribute to enclosing property
50 | Rectangle()
51 | .foregroundColor(viewModel.fillBarColor)
52 | .frame(width: viewModel.barWidth,
53 | height: calculateFillBarHeight())
54 | .cornerRadius(viewModel.barCornerRadius)
| |- error: 'cornerRadius(_:antialiased:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:60:13: error: 'Text' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | .rotationEffect(.init(radians: -.pi/2))
62 | .lineLimit(1)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:61:18: error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
61 | .rotationEffect(.init(radians: -.pi/2))
| |- error: 'rotationEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
62 | .lineLimit(1)
63 | .offset(x: 0, y: viewModel.barWidth - viewModel.barHeight)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:62:18: error: 'lineLimit' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
61 | .rotationEffect(.init(radians: -.pi/2))
62 | .lineLimit(1)
| |- error: 'lineLimit' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
63 | .offset(x: 0, y: viewModel.barWidth - viewModel.barHeight)
64 | .font(.system(size: 10, weight: .bold))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:63:18: error: 'offset(x:y:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
61 | .rotationEffect(.init(radians: -.pi/2))
62 | .lineLimit(1)
63 | .offset(x: 0, y: viewModel.barWidth - viewModel.barHeight)
| |- error: 'offset(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
64 | .font(.system(size: 10, weight: .bold))
65 | .frame(width: viewModel.barWidth, height: viewModel.barWidth - 4)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:64:18: error: 'font' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
:
62 | .lineLimit(1)
63 | .offset(x: 0, y: viewModel.barWidth - viewModel.barHeight)
64 | .font(.system(size: 10, weight: .bold))
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
65 | .frame(width: viewModel.barWidth, height: viewModel.barWidth - 4)
66 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:64:24: error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
:
62 | .lineLimit(1)
63 | .offset(x: 0, y: viewModel.barWidth - viewModel.barHeight)
64 | .font(.system(size: 10, weight: .bold))
| |- error: 'system(size:weight:design:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
65 | .frame(width: viewModel.barWidth, height: viewModel.barWidth - 4)
66 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:65:18: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
:
63 | .offset(x: 0, y: viewModel.barWidth - viewModel.barHeight)
64 | .font(.system(size: 10, weight: .bold))
65 | .frame(width: viewModel.barWidth, height: viewModel.barWidth - 4)
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
66 | } else {
67 | EmptyView()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:59:36: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
60 | Text(String(format: "%.1f", (viewModel.value)))
61 | .rotationEffect(.init(radians: -.pi/2))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:67:13: error: 'EmptyView' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
:
65 | .frame(width: viewModel.barWidth, height: viewModel.barWidth - 4)
66 | } else {
67 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
68 | }
69 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:66:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
:
64 | .font(.system(size: 10, weight: .bold))
65 | .frame(width: viewModel.barWidth, height: viewModel.barWidth - 4)
66 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
67 | EmptyView()
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:58:30: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
56 |
57 | @ViewBuilder
58 | var valueText: some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
59 | if viewModel.showValueText {
60 | Text(String(format: "%.1f", (viewModel.value)))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:75:17: error: 'Text' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
75 | Text(valueName)
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
76 | .frame(width: viewModel.barWidth,
77 | height: viewModel.descriptionLabelSize,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:76:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
75 | Text(valueName)
76 | .frame(width: viewModel.barWidth,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | height: viewModel.descriptionLabelSize,
78 | alignment: .center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:78:40: error: 'center' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
76 | .frame(width: viewModel.barWidth,
77 | height: viewModel.descriptionLabelSize,
78 | alignment: .center)
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
79 | .font(.footnote)
80 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:79:22: error: 'font' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
77 | height: viewModel.descriptionLabelSize,
78 | alignment: .center)
79 | .font(.footnote)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | } else {
81 | Text(".")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:79:28: error: 'footnote' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
77 | height: viewModel.descriptionLabelSize,
78 | alignment: .center)
79 | .font(.footnote)
| |- error: 'footnote' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | } else {
81 | Text(".")
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:74:72: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | Text(valueName)
76 | .frame(width: viewModel.barWidth,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:81:17: error: 'Text' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
79 | .font(.footnote)
80 | } else {
81 | Text(".")
| |- error: 'Text' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | .hidden()
83 | .frame(width: viewModel.barWidth,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:82:22: error: 'hidden()' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
80 | } else {
81 | Text(".")
82 | .hidden()
| |- error: 'hidden()' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
83 | .frame(width: viewModel.barWidth,
84 | height: viewModel.descriptionLabelSize,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:83:22: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
81 | Text(".")
82 | .hidden()
83 | .frame(width: viewModel.barWidth,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
84 | height: viewModel.descriptionLabelSize,
85 | alignment: .center)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:85:40: error: 'center' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
83 | .frame(width: viewModel.barWidth,
84 | height: viewModel.descriptionLabelSize,
85 | alignment: .center)
| |- error: 'center' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
86 | .font(.footnote)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:86:22: error: 'font' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
84 | height: viewModel.descriptionLabelSize,
85 | alignment: .center)
86 | .font(.footnote)
| |- error: 'font' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:86:28: error: 'footnote' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
84 | height: viewModel.descriptionLabelSize,
85 | alignment: .center)
86 | .font(.footnote)
| |- error: 'footnote' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:80:20: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
78 | alignment: .center)
79 | .font(.footnote)
80 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | Text(".")
82 | .hidden()
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:73:43: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
75 | Text(valueName)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:73:43: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
75 | Text(valueName)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:89:13: error: 'EmptyView' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
87 | }
88 | } else {
89 | EmptyView()
| |- error: 'EmptyView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | }
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:88:16: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
:
86 | .font(.footnote)
87 | }
88 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | EmptyView()
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:72:41: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
37 | // MARK: - Views
38 |
39 | private extension VerticalBar {
| `- note: add @available attribute to enclosing extension
40 |
41 | var emptyRect: some View {
:
70 |
71 | @ViewBuilder
72 | var valueDescriptionText: some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing property
73 | if viewModel.showValueDescription {
74 | if let valueName = viewModel.valueName, !valueName.isEmpty {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:114:53: error: 'green' is only available in macOS 10.15 or newer
107 | // MARK: - Preview
108 |
109 | struct VerticalBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
110 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
111 | VerticalBar(viewModel: .init(value: 50,
112 | valueName: "test",
113 | calculationStyle: .percentage(totalValue: 100),
114 | fillBarColor: .green,
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
115 | emptyBarColor: .gray,
116 | barWidth: 50,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:115:54: error: 'gray' is only available in macOS 10.15 or newer
107 | // MARK: - Preview
108 |
109 | struct VerticalBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
110 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
111 | VerticalBar(viewModel: .init(value: 50,
112 | valueName: "test",
113 | calculationStyle: .percentage(totalValue: 100),
114 | fillBarColor: .green,
115 | emptyBarColor: .gray,
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | barWidth: 50,
117 | barHeight: 100,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/Bar/VerticalBar.swift:122:14: error: 'previewLayout' is only available in macOS 10.15 or newer
107 | // MARK: - Preview
108 |
109 | struct VerticalBar_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
110 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
111 | VerticalBar(viewModel: .init(value: 50,
112 | valueName: "test",
:
120 | showValueText: true,
121 | showValueDescription: true))
122 | .previewLayout(.fixed(width: 150, height: 150))
| |- error: 'previewLayout' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:27:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
25 | // MARK: - Proporties
26 |
27 | @ObservedObject private var viewModel: BarChartModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
28 | @State private var showBadgeView: Bool = false
29 | @State private var badgeValue: CGFloat = .zero
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:28:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
26 |
27 | @ObservedObject private var viewModel: BarChartModel
28 | @State private var showBadgeView: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
29 | @State private var badgeValue: CGFloat = .zero
30 | @State private var badgeViewLocation: CGPoint = .zero
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:29:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
27 | @ObservedObject private var viewModel: BarChartModel
28 | @State private var showBadgeView: Bool = false
29 | @State private var badgeValue: CGFloat = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
30 | @State private var badgeViewLocation: CGPoint = .zero
31 | @State private var badgeViewDirection: BadgeViewDirection = .bottom
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:30:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
28 | @State private var showBadgeView: Bool = false
29 | @State private var badgeValue: CGFloat = .zero
30 | @State private var badgeViewLocation: CGPoint = .zero
| `- error: 'State' is only available in macOS 10.15 or newer
31 | @State private var badgeViewDirection: BadgeViewDirection = .bottom
32 | @State private var shouldFillBars: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:31:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
29 | @State private var badgeValue: CGFloat = .zero
30 | @State private var badgeViewLocation: CGPoint = .zero
31 | @State private var badgeViewDirection: BadgeViewDirection = .bottom
| `- error: 'State' is only available in macOS 10.15 or newer
32 | @State private var shouldFillBars: Bool = false
33 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:32:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
30 | @State private var badgeViewLocation: CGPoint = .zero
31 | @State private var badgeViewDirection: BadgeViewDirection = .bottom
32 | @State private var shouldFillBars: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
33 |
34 | //isBadgeAppeared using for set first position of badgeValueView
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:35:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
33 |
34 | //isBadgeAppeared using for set first position of badgeValueView
35 | @State private var isBadgeAppeared: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
36 |
37 | private let dragAction: DragGestureAction?
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:46:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:71:49: error: 'View' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
71 | func getBar(barViewModel: BarModel) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
72 | switch viewModel.direction {
73 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:70:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
71 | func getBar(barViewModel: BarModel) -> some View {
| `- note: add @available attribute to enclosing instance method
72 | switch viewModel.direction {
73 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:81:32: error: 'View' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
79 |
80 | @ViewBuilder
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:81:39: error: 'ViewBuilder' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
79 |
80 | @ViewBuilder
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| | `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:81:83: error: 'View' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
79 |
80 | @ViewBuilder
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:80:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
78 | }
79 |
80 | @ViewBuilder
| `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:90:38: error: 'GeometryProxy' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
88 | }
89 |
90 | func getStackViewWithBars(proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
91 | getStackView() {
92 | ForEach(.zero..<viewModel.data.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:90:61: error: 'View' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
88 | }
89 |
90 | func getStackViewWithBars(proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
91 | getStackView() {
92 | ForEach(.zero..<viewModel.data.count, id: \.self) { index in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:98:36: error: 'View' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:98:73: error: 'GeometryProxy' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:98:96: error: 'View' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:161:40: error: 'GeometryProxy' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:161:63: error: 'View' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:206:48: error: 'GeometryProxy' is only available in macOS 10.15 or newer
173 | // MARK: - Helper
174 |
175 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
176 | var calculationStyle: CalculationStyle {
177 | switch viewModel.calculationType {
:
204 | }
205 |
206 | func getBarViewModel(at index: Int, proxy: GeometryProxy) -> BarModel {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
207 | BarModel(value: shouldFillBars ? viewModel.data[index] : .zero,
208 | valueName: getDescription(at: index),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:220:38: error: 'GeometryProxy' is only available in macOS 10.15 or newer
173 | // MARK: - Helper
174 |
175 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
176 | var calculationStyle: CalculationStyle {
177 | switch viewModel.calculationType {
:
218 | }
219 |
220 | func getCalculatedBarSize(proxy: GeometryProxy) -> CGSize {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
221 | let width: CGFloat
222 | let height: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:259:31: error: 'View' is only available in macOS 10.15 or newer
256 | // MARK: - Preview
257 |
258 | struct BarChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
259 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
260 | BarChart(with: .init(data: [50, 100, 150],
261 | dataDescriptions: ["test",nil,"deneme"],
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:40:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
37 | private let dragAction: DragGestureAction?
38 |
39 | public init(with viewModel: BarChartModel, dragAction: DragGestureAction? = nil) {
| `- note: add @available attribute to enclosing initializer
40 | self.viewModel = viewModel
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | self.dragAction = dragAction
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:47:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | ZStack {
49 | if viewModel.isBadgeViewEnabled || dragAction.isNotNil {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:47:24: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
48 | ZStack {
49 | if viewModel.isBadgeViewEnabled || dragAction.isNotNil {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:48:13: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
49 | if viewModel.isBadgeViewEnabled || dragAction.isNotNil {
50 | getDraggableView(content: {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:48:13: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
49 | if viewModel.isBadgeViewEnabled || dragAction.isNotNil {
50 | getDraggableView(content: {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:53:53: error: 'buildIf' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
:
51 | getStackViewWithBars(proxy: proxy)
52 | }, proxy: proxy)
53 | if viewModel.isBadgeViewEnabled {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
54 | getBadgeValueView(with: proxy)
55 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:55:21: error: 'buildIf' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
:
53 | if viewModel.isBadgeViewEnabled {
54 | getBadgeValueView(with: proxy)
55 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
56 | } else {
57 | getStackViewWithBars(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:49:72: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
49 | if viewModel.isBadgeViewEnabled || dragAction.isNotNil {
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | getDraggableView(content: {
51 | getStackViewWithBars(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:49:72: warning: conformance of 'Optional<Wrapped>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
49 | if viewModel.isBadgeViewEnabled || dragAction.isNotNil {
| |- warning: conformance of 'Optional<Wrapped>' 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
50 | getDraggableView(content: {
51 | getStackViewWithBars(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:56:24: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
:
54 | getBadgeValueView(with: proxy)
55 | }
56 | } else {
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | getStackViewWithBars(proxy: proxy)
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:48:20: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
49 | if viewModel.isBadgeViewEnabled || dragAction.isNotNil {
50 | getDraggableView(content: {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:59:15: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
:
57 | getStackViewWithBars(proxy: proxy)
58 | }
59 | }.animateOnAppear {
| |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
60 | shouldFillBars = true
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:60:17: error: setter for 'shouldFillBars' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BarChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias DragGestureAction = (_ data: CGFloat) -> Void
13 |
:
44 | // MARK: - Body
45 |
46 | public var body: some View {
| `- note: add @available attribute to enclosing property
47 | GeometryReader { proxy in
48 | ZStack {
:
58 | }
59 | }.animateOnAppear {
60 | shouldFillBars = true
| |- error: setter for 'shouldFillBars' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Extension/UI/View+Extension.swift:12:55: error: 'Animation' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func animateOnAppear(using animation: Animation = Animation.easeInOut(duration: 1),
| | `- error: 'Animation' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | delay: Double = 0.3,
14 | _ action: @escaping () -> Void) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Extension/UI/View+Extension.swift:12:65: error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | extension View {
| `- note: add @available attribute to enclosing extension
12 | func animateOnAppear(using animation: Animation = Animation.easeInOut(duration: 1),
| | `- error: 'easeInOut(duration:)' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
13 | delay: Double = 0.3,
14 | _ action: @escaping () -> Void) -> some View {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:74:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
71 | func getBar(barViewModel: BarModel) -> some View {
| `- note: add @available attribute to enclosing instance method
72 | switch viewModel.direction {
73 | case .horizontal:
74 | VerticalBar(viewModel: barViewModel)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
75 | case .vertical:
76 | HorizontalBar(viewModel: barViewModel)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:76:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
71 | func getBar(barViewModel: BarModel) -> some View {
| `- note: add @available attribute to enclosing instance method
72 | switch viewModel.direction {
73 | case .horizontal:
74 | VerticalBar(viewModel: barViewModel)
75 | case .vertical:
76 | HorizontalBar(viewModel: barViewModel)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | }
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:71:54: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
71 | func getBar(barViewModel: BarModel) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
72 | switch viewModel.direction {
73 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:84:13: error: 'HStack' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
79 |
80 | @ViewBuilder
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
84 | HStack(spacing: viewModel.barSpacing, content: content)
| |- error: 'HStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | case .vertical:
86 | VStack(alignment: .leading ,spacing: viewModel.barSpacing, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:84:13: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
79 |
80 | @ViewBuilder
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
84 | HStack(spacing: viewModel.barSpacing, content: content)
| |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
85 | case .vertical:
86 | VStack(alignment: .leading ,spacing: viewModel.barSpacing, content: content)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:86:13: error: 'VStack' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
79 |
80 | @ViewBuilder
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
84 | HStack(spacing: viewModel.barSpacing, content: content)
85 | case .vertical:
86 | VStack(alignment: .leading ,spacing: viewModel.barSpacing, content: content)
| |- error: 'VStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:86:32: error: 'leading' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
79 |
80 | @ViewBuilder
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
84 | HStack(spacing: viewModel.barSpacing, content: content)
85 | case .vertical:
86 | VStack(alignment: .leading ,spacing: viewModel.barSpacing, content: content)
| |- error: 'leading' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:86:13: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
79 |
80 | @ViewBuilder
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
84 | HStack(spacing: viewModel.barSpacing, content: content)
85 | case .vertical:
86 | VStack(alignment: .leading ,spacing: viewModel.barSpacing, content: content)
| |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
87 | }
88 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:81:88: warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
79 |
80 | @ViewBuilder
81 | func getStackView<Content: View>(@ViewBuilder content: () -> Content) -> some View {
| | |- warning: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| | `- note: add 'if #available' version check
| `- note: add @available attribute to enclosing instance method
82 | switch viewModel.direction {
83 | case .horizontal:
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:91: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
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
88 | }
89 |
90 | func getStackViewWithBars(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | getStackView() {
| |- 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
92 | ForEach(.zero..<viewModel.data.count, id: \.self) { index in
93 | getBar(barViewModel: getBarViewModel(at: index, proxy: proxy))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:92: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
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
88 | }
89 |
90 | func getStackViewWithBars(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | getStackView() {
92 | ForEach(.zero..<viewModel.data.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
93 | getBar(barViewModel: getBarViewModel(at: index, proxy: proxy))
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:92:13: error: 'ForEach' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
88 | }
89 |
90 | func getStackViewWithBars(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | getStackView() {
92 | ForEach(.zero..<viewModel.data.count, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | getBar(barViewModel: getBarViewModel(at: index, proxy: proxy))
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:92:13: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
88 | }
89 |
90 | func getStackViewWithBars(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | getStackView() {
92 | ForEach(.zero..<viewModel.data.count, id: \.self) { index in
| |- error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
93 | getBar(barViewModel: getBarViewModel(at: index, proxy: proxy))
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:91: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
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
88 | }
89 |
90 | func getStackViewWithBars(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
91 | getStackView() {
| |- 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
92 | ForEach(.zero..<viewModel.data.count, id: \.self) { index in
93 | getBar(barViewModel: getBarViewModel(at: index, proxy: proxy))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:100:14: error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
| |- error: 'gesture(_:including:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | .onChanged { dragGesture in
102 | guard proxy.height > dragGesture.location.y &&
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:100:22: error: 'DragGesture' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
| |- error: 'DragGesture' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | .onChanged { dragGesture in
102 | guard proxy.height > dragGesture.location.y &&
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:100:22: error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
| |- error: 'init(minimumDistance:coordinateSpace:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
101 | .onChanged { dragGesture in
102 | guard proxy.height > dragGesture.location.y &&
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:101:26: error: 'onChanged' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
101 | .onChanged { dragGesture in
| |- error: 'onChanged' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
102 | guard proxy.height > dragGesture.location.y &&
103 | dragGesture.location.y > .zero &&
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:106:33: error: setter for 'showBadgeView' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
104 | proxy.width > dragGesture.location.x &&
105 | dragGesture.location.x > .zero else {
106 | showBadgeView = false
| |- error: setter for 'showBadgeView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
107 | return
108 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:124:33: error: 'withAnimation' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
122 | value: viewModel.data[index],
123 | calculationStyle: calculationStyle)
124 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
125 | badgeViewDirection = fillBarSize > proxy.height / 2 ? .top : .bottom
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:125:37: error: setter for 'badgeViewDirection' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
123 | calculationStyle: calculationStyle)
124 | withAnimation {
125 | badgeViewDirection = fillBarSize > proxy.height / 2 ? .top : .bottom
| |- error: setter for 'badgeViewDirection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
126 | }
127 | let totalSpacing: CGFloat = CGFloat(index)*viewModel.barSpacing
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:138:33: error: 'withAnimation' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
136 | value: viewModel.data[index],
137 | calculationStyle: calculationStyle)
138 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
139 | badgeViewDirection = fillBarSize > proxy.width / 2 ? .right : .left
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:139:37: error: setter for 'badgeViewDirection' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
137 | calculationStyle: calculationStyle)
138 | withAnimation {
139 | badgeViewDirection = fillBarSize > proxy.width / 2 ? .right : .left
| |- error: setter for 'badgeViewDirection' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
140 | }
141 | let totalSpacing: CGFloat = CGFloat(index)*viewModel.barSpacing
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:149:29: error: setter for 'badgeValue' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
147 | let safeLocation: CGPoint = .init(x: safeXPoint, y: safeYPoint)
148 |
149 | badgeValue = viewModel.data[safeIndex]
| |- error: setter for 'badgeValue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
150 | withAnimation {
151 | badgeViewLocation = safeLocation
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:150:29: error: 'withAnimation' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
148 |
149 | badgeValue = viewModel.data[safeIndex]
150 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
151 | badgeViewLocation = safeLocation
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:151:33: error: setter for 'badgeViewLocation' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
149 | badgeValue = viewModel.data[safeIndex]
150 | withAnimation {
151 | badgeViewLocation = safeLocation
| |- error: setter for 'badgeViewLocation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
152 | }
153 | showBadgeView = viewModel.isBadgeViewEnabled
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:153:29: error: setter for 'showBadgeView' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
151 | badgeViewLocation = safeLocation
152 | }
153 | showBadgeView = viewModel.isBadgeViewEnabled
| |- error: setter for 'showBadgeView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
154 | isBadgeAppeared = viewModel.isBadgeViewEnabled
155 | dragAction?(viewModel.data[safeIndex])
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:154:29: error: setter for 'isBadgeAppeared' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
152 | }
153 | showBadgeView = viewModel.isBadgeViewEnabled
154 | isBadgeAppeared = viewModel.isBadgeViewEnabled
| |- error: setter for 'isBadgeAppeared' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
155 | dragAction?(viewModel.data[safeIndex])
156 | }.onEnded( {dragGesture in
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:156:27: error: 'onEnded' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
154 | isBadgeAppeared = viewModel.isBadgeViewEnabled
155 | dragAction?(viewModel.data[safeIndex])
156 | }.onEnded( {dragGesture in
| |- error: 'onEnded' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
157 | showBadgeView = false
158 | }))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:157:29: error: setter for 'showBadgeView' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
96 | }
97 |
98 | func getDraggableView<Content: View>(content: () -> Content, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
99 | content()
100 | .gesture(DragGesture(minimumDistance: .zero, coordinateSpace: .local)
:
155 | dragAction?(viewModel.data[safeIndex])
156 | }.onEnded( {dragGesture in
157 | showBadgeView = false
| |- error: setter for 'showBadgeView' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
158 | }))
159 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:163:14: error: 'opacity' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
| |- error: 'opacity' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
164 | .animation(.easeIn, value: showBadgeView)
165 | .zIndex(999)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:164:14: error: 'animation(_:value:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
164 | .animation(.easeIn, value: showBadgeView)
| |- error: 'animation(_:value:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 | .zIndex(999)
166 | .frame(width: showBadgeView ? Const.badgeViewSize.width : .zero,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:164:25: error: 'easeIn' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
164 | .animation(.easeIn, value: showBadgeView)
| |- error: 'easeIn' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
165 | .zIndex(999)
166 | .frame(width: showBadgeView ? Const.badgeViewSize.width : .zero,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:165:14: error: 'zIndex' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
164 | .animation(.easeIn, value: showBadgeView)
165 | .zIndex(999)
| |- error: 'zIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
166 | .frame(width: showBadgeView ? Const.badgeViewSize.width : .zero,
167 | height: showBadgeView ? Const.badgeViewSize.height : .zero)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:166:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
164 | .animation(.easeIn, value: showBadgeView)
165 | .zIndex(999)
166 | .frame(width: showBadgeView ? Const.badgeViewSize.width : .zero,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
167 | height: showBadgeView ? Const.badgeViewSize.height : .zero)
168 | .position(x: isBadgeAppeared ? badgeViewLocation.x - Const.badgeViewSize.width/2 : proxy.frame(in: .local).midX,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:168:14: error: 'position(x:y:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
:
166 | .frame(width: showBadgeView ? Const.badgeViewSize.width : .zero,
167 | height: showBadgeView ? Const.badgeViewSize.height : .zero)
168 | .position(x: isBadgeAppeared ? badgeViewLocation.x - Const.badgeViewSize.width/2 : proxy.frame(in: .local).midX,
| |- error: 'position(x:y:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | y: isBadgeAppeared ? badgeViewLocation.y - Const.badgeViewSize.height/2 : proxy.frame(in: .local).midY)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:168:102: error: 'frame(in:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
:
166 | .frame(width: showBadgeView ? Const.badgeViewSize.width : .zero,
167 | height: showBadgeView ? Const.badgeViewSize.height : .zero)
168 | .position(x: isBadgeAppeared ? badgeViewLocation.x - Const.badgeViewSize.width/2 : proxy.frame(in: .local).midX,
| |- error: 'frame(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
169 | y: isBadgeAppeared ? badgeViewLocation.y - Const.badgeViewSize.height/2 : proxy.frame(in: .local).midY)
170 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:169:103: error: 'frame(in:)' is only available in macOS 10.15 or newer
66 | // MARK: - Views
67 |
68 | private extension BarChart {
| `- note: add @available attribute to enclosing extension
69 |
70 | @ViewBuilder
:
159 | }
160 |
161 | func getBadgeValueView(with proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
162 | BadgeValue(with: viewModel.badgeViewModel, direction: badgeViewDirection, value: $badgeValue)
163 | .opacity(showBadgeView ? 1 : .zero)
:
167 | height: showBadgeView ? Const.badgeViewSize.height : .zero)
168 | .position(x: isBadgeAppeared ? badgeViewLocation.x - Const.badgeViewSize.width/2 : proxy.frame(in: .local).midX,
169 | y: isBadgeAppeared ? badgeViewLocation.y - Const.badgeViewSize.height/2 : proxy.frame(in: .local).midY)
| |- error: 'frame(in:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
170 | }
171 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:264:45: error: 'green' is only available in macOS 10.15 or newer
256 | // MARK: - Preview
257 |
258 | struct BarChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
259 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
260 | BarChart(with: .init(data: [50, 100, 150],
261 | dataDescriptions: ["test",nil,"deneme"],
262 | calculationType: .percentage,
263 | barSpacing: 10,
264 | fillBarColor: .green,
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
265 | emptyBarColor: .gray,
266 | barCornerRadius: 10,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:265:46: error: 'gray' is only available in macOS 10.15 or newer
256 | // MARK: - Preview
257 |
258 | struct BarChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
259 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
260 | BarChart(with: .init(data: [50, 100, 150],
261 | dataDescriptions: ["test",nil,"deneme"],
:
263 | barSpacing: 10,
264 | fillBarColor: .green,
265 | emptyBarColor: .gray,
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
266 | barCornerRadius: 10,
267 | showValueText: true,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChart.swift:270:14: error: 'previewLayout' is only available in macOS 10.15 or newer
256 | // MARK: - Preview
257 |
258 | struct BarChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
259 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
260 | BarChart(with: .init(data: [50, 100, 150],
261 | dataDescriptions: ["test",nil,"deneme"],
:
268 | showValueDescription: true,
269 | direction: .vertical))
270 | .previewLayout(.fixed(width: 400, height: 400))
| |- error: 'previewLayout' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
271 | }
272 | }
/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/BarChartModel.swift:13:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
| `- error: 'Published' is only available in macOS 10.15 or newer
14 | @Published public var dataDescriptions: [String?]?
15 | @Published public var calculationType: CalculationStyle
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:14:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
| `- error: 'Published' is only available in macOS 10.15 or newer
15 | @Published public var calculationType: CalculationStyle
16 | @Published public var barSpacing: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:15:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
15 | @Published public var calculationType: CalculationStyle
| `- error: 'Published' is only available in macOS 10.15 or newer
16 | @Published public var barSpacing: CGFloat
17 | @Published public var fillBarColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:16:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
15 | @Published public var calculationType: CalculationStyle
16 | @Published public var barSpacing: CGFloat
| `- error: 'Published' is only available in macOS 10.15 or newer
17 | @Published public var fillBarColor: Color
18 | @Published public var emptyBarColor: Color
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:17:41: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
15 | @Published public var calculationType: CalculationStyle
16 | @Published public var barSpacing: CGFloat
17 | @Published public var fillBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
18 | @Published public var emptyBarColor: Color
19 | @Published public var barCornerRadius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:17:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
15 | @Published public var calculationType: CalculationStyle
16 | @Published public var barSpacing: CGFloat
17 | @Published public var fillBarColor: Color
| `- error: 'Published' is only available in macOS 10.15 or newer
18 | @Published public var emptyBarColor: Color
19 | @Published public var barCornerRadius: CGFloat
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:18:42: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
16 | @Published public var barSpacing: CGFloat
17 | @Published public var fillBarColor: Color
18 | @Published public var emptyBarColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | @Published public var barCornerRadius: CGFloat
20 | @Published public var showValueText: Bool
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:18:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
16 | @Published public var barSpacing: CGFloat
17 | @Published public var fillBarColor: Color
18 | @Published public var emptyBarColor: Color
| `- error: 'Published' is only available in macOS 10.15 or newer
19 | @Published public var barCornerRadius: CGFloat
20 | @Published public var showValueText: Bool
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:19:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
17 | @Published public var fillBarColor: Color
18 | @Published public var emptyBarColor: Color
19 | @Published public var barCornerRadius: CGFloat
| `- error: 'Published' is only available in macOS 10.15 or newer
20 | @Published public var showValueText: Bool
21 | @Published public var showValueDescription: Bool
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:20:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
18 | @Published public var emptyBarColor: Color
19 | @Published public var barCornerRadius: CGFloat
20 | @Published public var showValueText: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
21 | @Published public var showValueDescription: Bool
22 | @Published public var isBadgeViewEnabled: Bool
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:21:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
19 | @Published public var barCornerRadius: CGFloat
20 | @Published public var showValueText: Bool
21 | @Published public var showValueDescription: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
22 | @Published public var isBadgeViewEnabled: Bool
23 | @Published public var badgeViewModel: BadgeValueModel
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:22:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
20 | @Published public var showValueText: Bool
21 | @Published public var showValueDescription: Bool
22 | @Published public var isBadgeViewEnabled: Bool
| `- error: 'Published' is only available in macOS 10.15 or newer
23 | @Published public var badgeViewModel: BadgeValueModel
24 | @Published public var direction: BarChartDirection
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:23:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
21 | @Published public var showValueDescription: Bool
22 | @Published public var isBadgeViewEnabled: Bool
23 | @Published public var badgeViewModel: BadgeValueModel
| `- error: 'Published' is only available in macOS 10.15 or newer
24 | @Published public var direction: BarChartDirection
25 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:24:6: error: 'Published' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
22 | @Published public var isBadgeViewEnabled: Bool
23 | @Published public var badgeViewModel: BadgeValueModel
24 | @Published public var direction: BarChartDirection
| `- error: 'Published' is only available in macOS 10.15 or newer
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:26:156: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:26:188: error: 'Color' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:26:165: error: 'orange' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| | `- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:26:197: error: 'gray' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| | `- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, [CGFloat]>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, [CGFloat]>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, [String?]?>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, [String?]?>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, CalculationStyle>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, CalculationStyle>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, Color>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, Color>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, Color>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, Color>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, CGFloat>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, CGFloat>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, Bool>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, Bool>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, Bool>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, Bool>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, BadgeValueModel>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, BadgeValueModel>'
<unknown>:0: error: cannot convert value of type 'KeyPath<BarChartModel, BarChartDirection>' to expected argument type 'ReferenceWritableKeyPath<BarChartModel, BarChartDirection>'
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:12:35: error: 'ObservableObject' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:27:9: error: setter for 'data' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
| |- error: setter for 'data' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
28 | self.dataDescriptions = dataDescriptions
29 | self.calculationType = calculationType
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:28:9: error: setter for 'dataDescriptions' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
| |- error: setter for 'dataDescriptions' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | self.calculationType = calculationType
30 | self.barSpacing = barSpacing
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:29:9: error: setter for 'calculationType' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
29 | self.calculationType = calculationType
| |- error: setter for 'calculationType' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | self.barSpacing = barSpacing
31 | self.fillBarColor = fillBarColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:30:9: error: setter for 'barSpacing' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
29 | self.calculationType = calculationType
30 | self.barSpacing = barSpacing
| |- error: setter for 'barSpacing' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
31 | self.fillBarColor = fillBarColor
32 | self.emptyBarColor = emptyBarColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:31:9: error: setter for 'fillBarColor' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
29 | self.calculationType = calculationType
30 | self.barSpacing = barSpacing
31 | self.fillBarColor = fillBarColor
| |- error: setter for 'fillBarColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | self.emptyBarColor = emptyBarColor
33 | self.barCornerRadius = barCornerRadius
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:32:9: error: setter for 'emptyBarColor' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
:
30 | self.barSpacing = barSpacing
31 | self.fillBarColor = fillBarColor
32 | self.emptyBarColor = emptyBarColor
| |- error: setter for 'emptyBarColor' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | self.barCornerRadius = barCornerRadius
34 | self.showValueText = showValueText
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:33:9: error: setter for 'barCornerRadius' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
:
31 | self.fillBarColor = fillBarColor
32 | self.emptyBarColor = emptyBarColor
33 | self.barCornerRadius = barCornerRadius
| |- error: setter for 'barCornerRadius' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
34 | self.showValueText = showValueText
35 | self.showValueDescription = showValueDescription
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:34:9: error: setter for 'showValueText' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
:
32 | self.emptyBarColor = emptyBarColor
33 | self.barCornerRadius = barCornerRadius
34 | self.showValueText = showValueText
| |- error: setter for 'showValueText' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | self.showValueDescription = showValueDescription
36 | self.isBadgeViewEnabled = isBadgeViewEnabled
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:35:9: error: setter for 'showValueDescription' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
:
33 | self.barCornerRadius = barCornerRadius
34 | self.showValueText = showValueText
35 | self.showValueDescription = showValueDescription
| |- error: setter for 'showValueDescription' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
36 | self.isBadgeViewEnabled = isBadgeViewEnabled
37 | self.badgeViewModel = badgeViewModel
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:36:9: error: setter for 'isBadgeViewEnabled' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
:
34 | self.showValueText = showValueText
35 | self.showValueDescription = showValueDescription
36 | self.isBadgeViewEnabled = isBadgeViewEnabled
| |- error: setter for 'isBadgeViewEnabled' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
37 | self.badgeViewModel = badgeViewModel
38 | self.direction = direction
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:37:9: error: setter for 'badgeViewModel' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
:
35 | self.showValueDescription = showValueDescription
36 | self.isBadgeViewEnabled = isBadgeViewEnabled
37 | self.badgeViewModel = badgeViewModel
| |- error: setter for 'badgeViewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | self.direction = direction
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/BarChart/BarChartModel.swift:38:9: error: setter for 'direction' is only available in macOS 10.15 or newer
10 | import SwiftUI
11 |
12 | final public class BarChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
13 | @Published public var data: [CGFloat]
14 | @Published public var dataDescriptions: [String?]?
:
24 | @Published public var direction: BarChartDirection
25 |
26 | public init(data: [CGFloat], dataDescriptions: [String?]? = nil, calculationType: CalculationStyle = .maxValue, barSpacing: CGFloat = 8, fillBarColor: Color = .orange, emptyBarColor: Color = .gray, barCornerRadius: CGFloat = .zero, showValueText: Bool = false, showValueDescription: Bool = true, isBadgeViewEnabled: Bool = true, badgeViewModel: BadgeValueModel = BadgeValueModel(), direction: BarChartDirection = .horizontal) {
| `- note: add @available attribute to enclosing initializer
27 | self.data = data
28 | self.dataDescriptions = dataDescriptions
:
36 | self.isBadgeViewEnabled = isBadgeViewEnabled
37 | self.badgeViewModel = badgeViewModel
38 | self.direction = direction
| |- error: setter for 'direction' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | }
40 | }
[39/42] Compiling BIKCharts LineChartSamples.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:32:31: error: 'View' is only available in macOS 10.15 or newer
29 | }
30 |
31 | struct LineChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
32 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LineChartSamples()
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:22:27: error: cannot find 'UIScreen' in scope
20 | }
21 | }
22 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
23 | }
24 | .navigationBarTitle("Line Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct PieChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:34:31: error: 'View' is only available in macOS 10.15 or newer
31 | }
32 |
33 | struct PieChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
34 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
35 | PieChartSamples()
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:24:27: error: cannot find 'UIScreen' in scope
22 | }
23 | }
24 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
25 | }
26 | .navigationBarTitle("Pie Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:13:16: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:15:40: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | self.value = value
17 | self.color = color
[40/42] Compiling BIKCharts PieChartSamples.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:32:31: error: 'View' is only available in macOS 10.15 or newer
29 | }
30 |
31 | struct LineChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
32 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LineChartSamples()
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:22:27: error: cannot find 'UIScreen' in scope
20 | }
21 | }
22 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
23 | }
24 | .navigationBarTitle("Line Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct PieChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:34:31: error: 'View' is only available in macOS 10.15 or newer
31 | }
32 |
33 | struct PieChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
34 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
35 | PieChartSamples()
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:24:27: error: cannot find 'UIScreen' in scope
22 | }
23 | }
24 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
25 | }
26 | .navigationBarTitle("Pie Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:13:16: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:15:40: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | self.value = value
17 | self.color = color
[41/42] Compiling BIKCharts CalculationStyle.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:32:31: error: 'View' is only available in macOS 10.15 or newer
29 | }
30 |
31 | struct LineChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
32 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LineChartSamples()
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:22:27: error: cannot find 'UIScreen' in scope
20 | }
21 | }
22 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
23 | }
24 | .navigationBarTitle("Line Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct PieChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:34:31: error: 'View' is only available in macOS 10.15 or newer
31 | }
32 |
33 | struct PieChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
34 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
35 | PieChartSamples()
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:24:27: error: cannot find 'UIScreen' in scope
22 | }
23 | }
24 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
25 | }
26 | .navigationBarTitle("Pie Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:13:16: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:15:40: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | self.value = value
17 | self.color = color
[42/42] Compiling BIKCharts ChartSliceDataModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct LineChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:32:31: error: 'View' is only available in macOS 10.15 or newer
29 | }
30 |
31 | struct LineChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
32 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
33 | LineChartSamples()
34 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/LineChartSamples.swift:22:27: error: cannot find 'UIScreen' in scope
20 | }
21 | }
22 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
23 | }
24 | .navigationBarTitle("Line Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:12:27: error: 'View' is only available in macOS 10.15 or newer
8 | import SwiftUI
9 |
10 | public struct PieChartSamples: View {
| `- note: add @available attribute to enclosing struct
11 |
12 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
13 | ScrollView(showsIndicators: false) {
14 | VStack(alignment: .center, spacing: 24) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:34:31: error: 'View' is only available in macOS 10.15 or newer
31 | }
32 |
33 | struct PieChartSamples_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
34 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
35 | PieChartSamples()
36 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Sample/SampleCharts/PieChartSamples.swift:24:27: error: cannot find 'UIScreen' in scope
22 | }
23 | }
24 | .frame(width: UIScreen.main.bounds.width)
| `- error: cannot find 'UIScreen' in scope
25 | }
26 | .navigationBarTitle("Pie Charts", displayMode: .inline)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:13:16: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/Util/Common/ChartSliceDataModel.swift:15:40: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct ChartSliceDataModel {
| `- note: add @available attribute to enclosing struct
12 | let value: CGFloat
13 | let color: Color?
14 |
15 | public init(value: CGFloat, color: Color? = nil) {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | self.value = value
17 | self.color = color
BUILD FAILURE 6.1 macosSpm