Build Information
Failed to build BIKCharts, reference 1.0.1 (817119
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 02:13:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
| `- note: add 'if #available' version check
25 | for (index, value) in viewModel.data.enumerated() {
26 | let xDot = CGFloat(index) * (rect.width / CGFloat(viewModel.data.count-1))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:31:30: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
29 | if index == 0 {
30 | if viewModel.shouldFill {
31 | path.move(to: .init(x: 0, y: rect.height))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | path.addLine(to: point)
33 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:32:30: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
30 | if viewModel.shouldFill {
31 | path.move(to: .init(x: 0, y: rect.height))
32 | path.addLine(to: point)
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | } else {
34 | path.move(to: point)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:34:30: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
32 | path.addLine(to: point)
33 | } else {
34 | path.move(to: point)
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | }
36 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:37:26: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
35 | }
36 | } else {
37 | path.addLine(to: point)
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:41:22: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
39 | }
40 | if viewModel.shouldFill {
41 | path.addLine(to: .init(x: CGFloat(viewModel.data.count-1) * (rect.width / CGFloat(viewModel.data.count-1)),
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | y: rect.height))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:20:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
18 | // MARK: - Properties
19 |
20 | @ObservedObject private var viewModel: PieChartModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
21 |
22 | @State private var shouldDraw: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
20 | @ObservedObject private var viewModel: PieChartModel
21 |
22 | @State private var shouldDraw: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
23 | @State private var tappedPieceIndex: Int?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
21 |
22 | @State private var shouldDraw: Bool = false
23 | @State private var tappedPieceIndex: Int?
| `- error: 'State' is only available in macOS 10.15 or newer
24 |
25 | private var tapAction: TapAction?
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:27:28: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:44:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:66:45: error: 'GeometryProxy' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:66:68: error: 'View' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:87:27: error: 'GeometryProxy' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:87:50: error: 'View' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:113:31: error: 'View' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:28:24: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:22: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:33: error: 'red' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:39: error: 'green' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:47: error: 'yellow' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:56: error: 'blue' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:63: error: 'gray' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:70: error: 'orange' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:79: error: 'purple' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:38:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
35 | }
36 |
37 | public init(viewModel: PieChartModel, tapAction: TapAction? = nil) {
| `- note: add @available attribute to enclosing initializer
38 | self.viewModel = viewModel
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | self.tapAction = tapAction
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:45:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | ZStack {
47 | if viewModel.borderStyle != nil {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:46:13: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:47:49: error: 'buildIf' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
47 | if viewModel.borderStyle != nil {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | getBorder(proxy: proxy)
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:49:17: error: 'buildIf' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
49 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | ForEach(0..<viewModel.data.count, id: \.self) { index in
51 | getPieceView(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:50:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
48 | getBorder(proxy: proxy)
49 | }
50 | ForEach(0..<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
51 | getPieceView(at: index, proxy: proxy)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:50:17: error: 'ForEach' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
48 | getBorder(proxy: proxy)
49 | }
50 | ForEach(0..<viewModel.data.count, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | getPieceView(at: index, proxy: proxy)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:50:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
48 | getBorder(proxy: proxy)
49 | }
50 | ForEach(0..<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
51 | getPieceView(at: index, proxy: proxy)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:46:20: 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 PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
| |- 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
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:46:20: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:54:14: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
52 | }
53 | }
54 | .scaleEffect(shouldDraw ? 1 : 0)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 | .animateOnAppear(using: .spring(response: 1, dampingFraction: 0.5, blendDuration: 0.7)) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:56:34: error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
54 | .scaleEffect(shouldDraw ? 1 : 0)
55 | }
56 | .animateOnAppear(using: .spring(response: 1, dampingFraction: 0.5, blendDuration: 0.7)) {
| |- error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | shouldDraw = true
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:57:13: error: setter for 'shouldDraw' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
55 | }
56 | .animateOnAppear(using: .spring(response: 1, dampingFraction: 0.5, blendDuration: 0.7)) {
57 | shouldDraw = true
| |- error: setter for 'shouldDraw' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:76:14: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
74 | titleConfiguration: viewModel.data[index].titleConfiguration)
75 | return PieSlice(viewModel: sliceViewModel)
76 | .scaleEffect(tappedPieceIndex == index ? 1.2 : 1)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .frame(width: proxy.width,
78 | height: proxy.height)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:77:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
75 | return PieSlice(viewModel: sliceViewModel)
76 | .scaleEffect(tappedPieceIndex == index ? 1.2 : 1)
77 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | height: proxy.height)
79 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:79:14: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
77 | .frame(width: proxy.width,
78 | height: proxy.height)
79 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | withAnimation {
81 | tappedPieceIndex = index == tappedPieceIndex ? nil : index
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:80:17: error: 'withAnimation' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
78 | height: proxy.height)
79 | .onTapGesture {
80 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | tappedPieceIndex = index == tappedPieceIndex ? nil : index
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:81:21: error: setter for 'tappedPieceIndex' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
79 | .onTapGesture {
80 | withAnimation {
81 | tappedPieceIndex = index == tappedPieceIndex ? nil : index
| |- error: setter for 'tappedPieceIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | tapAction?(viewModel.data[index])
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:88:9: error: 'Circle' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:89:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:89:73: error: 'Color' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:89:79: error: 'red' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:90:85: error: 'StrokeStyle' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .frame(width: proxy.width,
92 | height: proxy.height)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:91:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | height: proxy.height)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:115:116: error: 'blue' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:115:129: error: 'body' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
| |- error: 'body' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:117:117: error: 'red' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:117:129: error: 'callout' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
| |- error: 'callout' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:119:117: error: 'gray' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:119:130: error: 'headline' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:122:114: error: 'purple' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
122 | titleConfiguration: .init(title: "Test", foregroundColor: .purple, font: .subheadline)),
| |- error: 'purple' 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/PieChart/PieChart.swift:122:129: error: 'subheadline' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
122 | titleConfiguration: .init(title: "Test", foregroundColor: .purple, font: .subheadline)),
| |- error: 'subheadline' 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/PieChart/PieSlice/PieSliceModel.swift:33:63: error: 'white' is only available in macOS 10.15 or newer
26 | }
27 |
28 | public struct TitleConfiguration {
| `- note: add @available attribute to enclosing struct
29 | let title: String
30 | let foregroundColor: Color
31 | let font: Font
32 |
33 | public init(title: String = "", foregroundColor: Color = .white, font: Font = .headline) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
34 | self.title = title
35 | self.foregroundColor = foregroundColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieSlice/PieSliceModel.swift:33:84: error: 'headline' is only available in macOS 10.15 or newer
26 | }
27 |
28 | public struct TitleConfiguration {
| `- note: add @available attribute to enclosing struct
29 | let title: String
30 | let foregroundColor: Color
31 | let font: Font
32 |
33 | public init(title: String = "", foregroundColor: Color = .white, font: Font = .headline) {
| | `- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
34 | self.title = title
35 | self.foregroundColor = foregroundColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:18:52: error: 'red' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
| `- note: add @available attribute to enclosing initializer
16 | lineCap: .square,
17 | dash: [20]),
18 | circumferenceBorderColor: Color = .red) {
| `- error: 'red' is only available in macOS 10.15 or newer
19 | self.circumferenceBorderStrokeStyle = circumferenceBorderStrokeStyle
20 | self.circumferenceBorderColor = circumferenceBorderColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:12:41: error: 'StrokeStyle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
13 | let circumferenceBorderColor: Color
14 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:13:35: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:15:49: error: 'StrokeStyle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
| | `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | lineCap: .square,
17 | dash: [20]),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:18:43: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
| `- note: add @available attribute to enclosing initializer
16 | lineCap: .square,
17 | dash: [20]),
18 | circumferenceBorderColor: Color = .red) {
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | self.circumferenceBorderStrokeStyle = circumferenceBorderStrokeStyle
20 | self.circumferenceBorderColor = circumferenceBorderColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:36:6: error: 'Published' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
| `- error: 'Published' is only available in macOS 10.15 or newer
37 | @Published public var borderStyle: BorderStyle?
38 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:37:6: error: 'Published' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
| `- error: 'Published' is only available in macOS 10.15 or newer
38 |
39 | public init(data: [PieChartData], borderStyle: BorderStyle? = BorderStyle()) {
<unknown>:0: error: cannot convert value of type 'any KeyPath<PieChartModel, [PieChartData]> & Sendable' to expected argument type 'ReferenceWritableKeyPath<PieChartModel, [PieChartData]>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<PieChartModel, BorderStyle?> & Sendable' to expected argument type 'ReferenceWritableKeyPath<PieChartModel, BorderStyle?>'
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:35:35: error: 'ObservableObject' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:40:9: error: setter for 'data' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
38 |
39 | public init(data: [PieChartData], borderStyle: BorderStyle? = BorderStyle()) {
| `- note: add @available attribute to enclosing initializer
40 | self.data = data
| |- error: setter for 'data' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | self.borderStyle = borderStyle
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:41:9: error: setter for 'borderStyle' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
38 |
39 | public init(data: [PieChartData], borderStyle: BorderStyle? = BorderStyle()) {
| `- note: add @available attribute to enclosing initializer
40 | self.data = data
41 | self.borderStyle = borderStyle
| |- error: setter for 'borderStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
[42/43] Compiling BIKCharts PieChart.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:23:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:15:17: warning: stored property 'viewModel' of 'Sendable'-conforming struct 'LineShape' has non-sendable type 'LineShapeModel'; this is an error in the Swift 6 language mode
13 | // MARK: - Properties
14 |
15 | private let viewModel: LineShapeModel
| `- warning: stored property 'viewModel' of 'Sendable'-conforming struct 'LineShape' has non-sendable type 'LineShapeModel'; this is an error in the Swift 6 language mode
16 |
17 | init(viewModel: LineShapeModel) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShapeModel.swift:11:8: note: consider making struct 'LineShapeModel' conform to the 'Sendable' protocol
9 | import SwiftUI
10 |
11 | struct LineShapeModel {
| `- note: consider making struct 'LineShapeModel' conform to the 'Sendable' protocol
12 | let data: [CGFloat]
13 | let shouldFill: Bool
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:24:9: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | for (index, value) in viewModel.data.enumerated() {
26 | let xDot = CGFloat(index) * (rect.width / CGFloat(viewModel.data.count-1))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:31:30: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
29 | if index == 0 {
30 | if viewModel.shouldFill {
31 | path.move(to: .init(x: 0, y: rect.height))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | path.addLine(to: point)
33 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:32:30: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
30 | if viewModel.shouldFill {
31 | path.move(to: .init(x: 0, y: rect.height))
32 | path.addLine(to: point)
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | } else {
34 | path.move(to: point)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:34:30: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
32 | path.addLine(to: point)
33 | } else {
34 | path.move(to: point)
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | }
36 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:37:26: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
35 | }
36 | } else {
37 | path.addLine(to: point)
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:41:22: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
39 | }
40 | if viewModel.shouldFill {
41 | path.addLine(to: .init(x: CGFloat(viewModel.data.count-1) * (rect.width / CGFloat(viewModel.data.count-1)),
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | y: rect.height))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:20:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
18 | // MARK: - Properties
19 |
20 | @ObservedObject private var viewModel: PieChartModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
21 |
22 | @State private var shouldDraw: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
20 | @ObservedObject private var viewModel: PieChartModel
21 |
22 | @State private var shouldDraw: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
23 | @State private var tappedPieceIndex: Int?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
21 |
22 | @State private var shouldDraw: Bool = false
23 | @State private var tappedPieceIndex: Int?
| `- error: 'State' is only available in macOS 10.15 or newer
24 |
25 | private var tapAction: TapAction?
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:27:28: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:44:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:66:45: error: 'GeometryProxy' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:66:68: error: 'View' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:87:27: error: 'GeometryProxy' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:87:50: error: 'View' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:113:31: error: 'View' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:28:24: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:22: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:33: error: 'red' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:39: error: 'green' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:47: error: 'yellow' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:56: error: 'blue' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:63: error: 'gray' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:70: error: 'orange' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:79: error: 'purple' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:38:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
35 | }
36 |
37 | public init(viewModel: PieChartModel, tapAction: TapAction? = nil) {
| `- note: add @available attribute to enclosing initializer
38 | self.viewModel = viewModel
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | self.tapAction = tapAction
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:45:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | ZStack {
47 | if viewModel.borderStyle != nil {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:46:13: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:47:49: error: 'buildIf' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
47 | if viewModel.borderStyle != nil {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | getBorder(proxy: proxy)
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:49:17: error: 'buildIf' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
49 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | ForEach(0..<viewModel.data.count, id: \.self) { index in
51 | getPieceView(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:50:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
48 | getBorder(proxy: proxy)
49 | }
50 | ForEach(0..<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
51 | getPieceView(at: index, proxy: proxy)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:50:17: error: 'ForEach' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
48 | getBorder(proxy: proxy)
49 | }
50 | ForEach(0..<viewModel.data.count, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | getPieceView(at: index, proxy: proxy)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:50:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
48 | getBorder(proxy: proxy)
49 | }
50 | ForEach(0..<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
51 | getPieceView(at: index, proxy: proxy)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:46:20: 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 PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
| |- 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
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:46:20: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:54:14: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
52 | }
53 | }
54 | .scaleEffect(shouldDraw ? 1 : 0)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 | .animateOnAppear(using: .spring(response: 1, dampingFraction: 0.5, blendDuration: 0.7)) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:56:34: error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
54 | .scaleEffect(shouldDraw ? 1 : 0)
55 | }
56 | .animateOnAppear(using: .spring(response: 1, dampingFraction: 0.5, blendDuration: 0.7)) {
| |- error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | shouldDraw = true
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:57:13: error: setter for 'shouldDraw' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
55 | }
56 | .animateOnAppear(using: .spring(response: 1, dampingFraction: 0.5, blendDuration: 0.7)) {
57 | shouldDraw = true
| |- error: setter for 'shouldDraw' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:76:14: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
74 | titleConfiguration: viewModel.data[index].titleConfiguration)
75 | return PieSlice(viewModel: sliceViewModel)
76 | .scaleEffect(tappedPieceIndex == index ? 1.2 : 1)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .frame(width: proxy.width,
78 | height: proxy.height)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:77:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
75 | return PieSlice(viewModel: sliceViewModel)
76 | .scaleEffect(tappedPieceIndex == index ? 1.2 : 1)
77 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | height: proxy.height)
79 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:79:14: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
77 | .frame(width: proxy.width,
78 | height: proxy.height)
79 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | withAnimation {
81 | tappedPieceIndex = index == tappedPieceIndex ? nil : index
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:80:17: error: 'withAnimation' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
78 | height: proxy.height)
79 | .onTapGesture {
80 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | tappedPieceIndex = index == tappedPieceIndex ? nil : index
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:81:21: error: setter for 'tappedPieceIndex' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
79 | .onTapGesture {
80 | withAnimation {
81 | tappedPieceIndex = index == tappedPieceIndex ? nil : index
| |- error: setter for 'tappedPieceIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | tapAction?(viewModel.data[index])
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:88:9: error: 'Circle' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:89:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:89:73: error: 'Color' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:89:79: error: 'red' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:90:85: error: 'StrokeStyle' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .frame(width: proxy.width,
92 | height: proxy.height)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:91:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | height: proxy.height)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:115:116: error: 'blue' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:115:129: error: 'body' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
| |- error: 'body' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:117:117: error: 'red' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:117:129: error: 'callout' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
| |- error: 'callout' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:119:117: error: 'gray' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:119:130: error: 'headline' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:122:114: error: 'purple' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
122 | titleConfiguration: .init(title: "Test", foregroundColor: .purple, font: .subheadline)),
| |- error: 'purple' 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/PieChart/PieChart.swift:122:129: error: 'subheadline' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
122 | titleConfiguration: .init(title: "Test", foregroundColor: .purple, font: .subheadline)),
| |- error: 'subheadline' 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/PieChart/PieSlice/PieSliceModel.swift:33:63: error: 'white' is only available in macOS 10.15 or newer
26 | }
27 |
28 | public struct TitleConfiguration {
| `- note: add @available attribute to enclosing struct
29 | let title: String
30 | let foregroundColor: Color
31 | let font: Font
32 |
33 | public init(title: String = "", foregroundColor: Color = .white, font: Font = .headline) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
34 | self.title = title
35 | self.foregroundColor = foregroundColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieSlice/PieSliceModel.swift:33:84: error: 'headline' is only available in macOS 10.15 or newer
26 | }
27 |
28 | public struct TitleConfiguration {
| `- note: add @available attribute to enclosing struct
29 | let title: String
30 | let foregroundColor: Color
31 | let font: Font
32 |
33 | public init(title: String = "", foregroundColor: Color = .white, font: Font = .headline) {
| | `- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
34 | self.title = title
35 | self.foregroundColor = foregroundColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:18:52: error: 'red' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
| `- note: add @available attribute to enclosing initializer
16 | lineCap: .square,
17 | dash: [20]),
18 | circumferenceBorderColor: Color = .red) {
| `- error: 'red' is only available in macOS 10.15 or newer
19 | self.circumferenceBorderStrokeStyle = circumferenceBorderStrokeStyle
20 | self.circumferenceBorderColor = circumferenceBorderColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:12:41: error: 'StrokeStyle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
13 | let circumferenceBorderColor: Color
14 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:13:35: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:15:49: error: 'StrokeStyle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
| | `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | lineCap: .square,
17 | dash: [20]),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:18:43: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
| `- note: add @available attribute to enclosing initializer
16 | lineCap: .square,
17 | dash: [20]),
18 | circumferenceBorderColor: Color = .red) {
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | self.circumferenceBorderStrokeStyle = circumferenceBorderStrokeStyle
20 | self.circumferenceBorderColor = circumferenceBorderColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:36:6: error: 'Published' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
| `- error: 'Published' is only available in macOS 10.15 or newer
37 | @Published public var borderStyle: BorderStyle?
38 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:37:6: error: 'Published' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
| `- error: 'Published' is only available in macOS 10.15 or newer
38 |
39 | public init(data: [PieChartData], borderStyle: BorderStyle? = BorderStyle()) {
<unknown>:0: error: cannot convert value of type 'any KeyPath<PieChartModel, [PieChartData]> & Sendable' to expected argument type 'ReferenceWritableKeyPath<PieChartModel, [PieChartData]>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<PieChartModel, BorderStyle?> & Sendable' to expected argument type 'ReferenceWritableKeyPath<PieChartModel, BorderStyle?>'
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:35:35: error: 'ObservableObject' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:40:9: error: setter for 'data' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
38 |
39 | public init(data: [PieChartData], borderStyle: BorderStyle? = BorderStyle()) {
| `- note: add @available attribute to enclosing initializer
40 | self.data = data
| |- error: setter for 'data' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | self.borderStyle = borderStyle
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:41:9: error: setter for 'borderStyle' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
38 |
39 | public init(data: [PieChartData], borderStyle: BorderStyle? = BorderStyle()) {
| `- note: add @available attribute to enclosing initializer
40 | self.data = data
41 | self.borderStyle = borderStyle
| |- error: setter for 'borderStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
[43/43] Compiling BIKCharts PieChartModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:23:35: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| | `- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:15:17: warning: stored property 'viewModel' of 'Sendable'-conforming struct 'LineShape' has non-sendable type 'LineShapeModel'; this is an error in the Swift 6 language mode
13 | // MARK: - Properties
14 |
15 | private let viewModel: LineShapeModel
| `- warning: stored property 'viewModel' of 'Sendable'-conforming struct 'LineShape' has non-sendable type 'LineShapeModel'; this is an error in the Swift 6 language mode
16 |
17 | init(viewModel: LineShapeModel) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShapeModel.swift:11:8: note: consider making struct 'LineShapeModel' conform to the 'Sendable' protocol
9 | import SwiftUI
10 |
11 | struct LineShapeModel {
| `- note: consider making struct 'LineShapeModel' conform to the 'Sendable' protocol
12 | let data: [CGFloat]
13 | let shouldFill: Bool
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:24:9: error: 'Path' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
| |- error: 'Path' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
25 | for (index, value) in viewModel.data.enumerated() {
26 | let xDot = CGFloat(index) * (rect.width / CGFloat(viewModel.data.count-1))
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:31:30: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
29 | if index == 0 {
30 | if viewModel.shouldFill {
31 | path.move(to: .init(x: 0, y: rect.height))
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
32 | path.addLine(to: point)
33 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:32:30: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
30 | if viewModel.shouldFill {
31 | path.move(to: .init(x: 0, y: rect.height))
32 | path.addLine(to: point)
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
33 | } else {
34 | path.move(to: point)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:34:30: error: 'move(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
32 | path.addLine(to: point)
33 | } else {
34 | path.move(to: point)
| |- error: 'move(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
35 | }
36 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:37:26: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
35 | }
36 | } else {
37 | path.addLine(to: point)
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/LineChart/LineShape/LineShape.swift:41:22: error: 'addLine(to:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | struct LineShape: Shape {
| `- note: add @available attribute to enclosing struct
12 |
13 | // MARK: - Properties
:
21 | // MARK: - Path
22 |
23 | func path(in rect: CGRect) -> Path {
| `- note: add @available attribute to enclosing instance method
24 | Path { path in
25 | for (index, value) in viewModel.data.enumerated() {
:
39 | }
40 | if viewModel.shouldFill {
41 | path.addLine(to: .init(x: CGFloat(viewModel.data.count-1) * (rect.width / CGFloat(viewModel.data.count-1)),
| |- error: 'addLine(to:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | y: rect.height))
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:20:6: error: 'ObservedObject' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
18 | // MARK: - Properties
19 |
20 | @ObservedObject private var viewModel: PieChartModel
| `- error: 'ObservedObject' is only available in macOS 10.15 or newer
21 |
22 | @State private var shouldDraw: Bool = false
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:22:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
20 | @ObservedObject private var viewModel: PieChartModel
21 |
22 | @State private var shouldDraw: Bool = false
| `- error: 'State' is only available in macOS 10.15 or newer
23 | @State private var tappedPieceIndex: Int?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:23:6: error: 'State' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
21 |
22 | @State private var shouldDraw: Bool = false
23 | @State private var tappedPieceIndex: Int?
| `- error: 'State' is only available in macOS 10.15 or newer
24 |
25 | private var tapAction: TapAction?
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:27:28: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| | `- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:44:27: error: 'View' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:66:45: error: 'GeometryProxy' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:66:68: error: 'View' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:87:27: error: 'GeometryProxy' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| | `- error: 'GeometryProxy' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:87:50: error: 'View' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:113:31: error: 'View' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| | `- error: 'View' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:28:24: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:22: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:33: error: 'red' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:39: error: 'green' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'green' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:47: error: 'yellow' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'yellow' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:56: error: 'blue' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:63: error: 'gray' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:70: error: 'orange' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'orange' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:29:79: error: 'purple' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
25 | private var tapAction: TapAction?
26 |
27 | private var colorSet: [Color] {
| `- note: add @available attribute to enclosing property
28 | var colorSet: [Color] = []
29 | var colors: [Color] = [.red, .green, .yellow, .blue, .gray, .orange, .purple]
| |- error: 'purple' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
30 | colors.removeAll(where: { $0 == viewModel.borderStyle?.circumferenceBorderColor })
31 | for index in 0..<viewModel.data.count {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:38:9: error: setter for 'viewModel' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
35 | }
36 |
37 | public init(viewModel: PieChartModel, tapAction: TapAction? = nil) {
| `- note: add @available attribute to enclosing initializer
38 | self.viewModel = viewModel
| |- error: setter for 'viewModel' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
39 | self.tapAction = tapAction
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:45:9: error: 'GeometryReader' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
| |- error: 'GeometryReader' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
46 | ZStack {
47 | if viewModel.borderStyle != nil {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:46:13: error: 'ZStack' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
| |- error: 'ZStack' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:47:49: error: 'buildIf' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
47 | if viewModel.borderStyle != nil {
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
48 | getBorder(proxy: proxy)
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:49:17: error: 'buildIf' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
49 | }
| |- error: 'buildIf' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
50 | ForEach(0..<viewModel.data.count, id: \.self) { index in
51 | getPieceView(at: index, proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:50:17: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
48 | getBorder(proxy: proxy)
49 | }
50 | ForEach(0..<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
51 | getPieceView(at: index, proxy: proxy)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:50:17: error: 'ForEach' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
48 | getBorder(proxy: proxy)
49 | }
50 | ForEach(0..<viewModel.data.count, id: \.self) { index in
| |- error: 'ForEach' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
51 | getPieceView(at: index, proxy: proxy)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:50:17: error: 'init(_:id:content:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
48 | getBorder(proxy: proxy)
49 | }
50 | ForEach(0..<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
51 | getPieceView(at: index, proxy: proxy)
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:46:20: 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 PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
| |- 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
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:46:20: warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
| |- warning: conformance of 'ForEach<Data, ID, Content>' to 'View' is only available in macOS 10.15 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
47 | if viewModel.borderStyle != nil {
48 | getBorder(proxy: proxy)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:54:14: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
52 | }
53 | }
54 | .scaleEffect(shouldDraw ? 1 : 0)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
55 | }
56 | .animateOnAppear(using: .spring(response: 1, dampingFraction: 0.5, blendDuration: 0.7)) {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:56:34: error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
54 | .scaleEffect(shouldDraw ? 1 : 0)
55 | }
56 | .animateOnAppear(using: .spring(response: 1, dampingFraction: 0.5, blendDuration: 0.7)) {
| |- error: 'spring(response:dampingFraction:blendDuration:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
57 | shouldDraw = true
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:57:13: error: setter for 'shouldDraw' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct PieChart: View {
| `- note: add @available attribute to enclosing struct
12 | public typealias TapAction = (PieChartData) -> Void
13 |
:
42 | // MARK: - Body
43 |
44 | public var body: some View {
| `- note: add @available attribute to enclosing property
45 | GeometryReader { proxy in
46 | ZStack {
:
55 | }
56 | .animateOnAppear(using: .spring(response: 1, dampingFraction: 0.5, blendDuration: 0.7)) {
57 | shouldDraw = true
| |- error: setter for 'shouldDraw' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
58 | }
59 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:76:14: error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
74 | titleConfiguration: viewModel.data[index].titleConfiguration)
75 | return PieSlice(viewModel: sliceViewModel)
76 | .scaleEffect(tappedPieceIndex == index ? 1.2 : 1)
| |- error: 'scaleEffect(_:anchor:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
77 | .frame(width: proxy.width,
78 | height: proxy.height)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:77:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
75 | return PieSlice(viewModel: sliceViewModel)
76 | .scaleEffect(tappedPieceIndex == index ? 1.2 : 1)
77 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
78 | height: proxy.height)
79 | .onTapGesture {
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:79:14: error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
77 | .frame(width: proxy.width,
78 | height: proxy.height)
79 | .onTapGesture {
| |- error: 'onTapGesture(count:perform:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
80 | withAnimation {
81 | tappedPieceIndex = index == tappedPieceIndex ? nil : index
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:80:17: error: 'withAnimation' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
78 | height: proxy.height)
79 | .onTapGesture {
80 | withAnimation {
| |- error: 'withAnimation' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
81 | tappedPieceIndex = index == tappedPieceIndex ? nil : index
82 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:81:21: error: setter for 'tappedPieceIndex' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
67 | let radius = min(proxy.width, proxy.height) / 2
68 |
:
79 | .onTapGesture {
80 | withAnimation {
81 | tappedPieceIndex = index == tappedPieceIndex ? nil : index
| |- error: setter for 'tappedPieceIndex' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
82 | }
83 | tapAction?(viewModel.data[index])
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:88:9: error: 'Circle' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
| |- error: 'Circle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:89:14: error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
| |- error: 'stroke(_:style:antialiased:)' is only available in macOS 14.0 or newer
| `- note: add 'if #available' version check
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:89:73: error: 'Color' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
| |- error: 'Color' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:89:79: error: 'red' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:90:85: error: 'StrokeStyle' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
| |- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
91 | .frame(width: proxy.width,
92 | height: proxy.height)
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:91:14: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
62 | // MARK: - Views
63 |
64 | private extension PieChart {
| `- note: add @available attribute to enclosing extension
65 |
66 | func getPieceView(at index: Int, proxy: GeometryProxy) -> some View {
:
85 | }
86 |
87 | func getBorder(proxy: GeometryProxy) -> some View {
| `- note: add @available attribute to enclosing instance method
88 | Circle()
89 | .stroke((viewModel.borderStyle?.circumferenceBorderColor ?? Color.red),
90 | style: viewModel.borderStyle?.circumferenceBorderStrokeStyle ?? StrokeStyle())
91 | .frame(width: proxy.width,
| |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
92 | height: proxy.height)
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:115:116: error: 'blue' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
| |- error: 'blue' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:115:129: error: 'body' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
| |- error: 'body' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:117:117: error: 'red' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
| |- error: 'red' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:117:129: error: 'callout' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
116 | PieChartData(slice: .init(value: 10),
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
| |- error: 'callout' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:119:117: error: 'gray' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
| |- error: 'gray' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:119:130: error: 'headline' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
117 | titleConfiguration: .init(title: "İlyada", foregroundColor: .red, font: .callout)),
118 | PieChartData(slice: .init(value: 10),
119 | titleConfiguration: .init(title: "Karacam", foregroundColor: .gray, font: .headline)),
| |- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChart.swift:122:114: error: 'purple' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
122 | titleConfiguration: .init(title: "Test", foregroundColor: .purple, font: .subheadline)),
| |- error: 'purple' 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/PieChart/PieChart.swift:122:129: error: 'subheadline' is only available in macOS 10.15 or newer
110 | // MARK: - Preview
111 |
112 | struct PieChart_Previews: PreviewProvider {
| `- note: add @available attribute to enclosing struct
113 | static var previews: some View {
| `- note: add @available attribute to enclosing static property
114 | PieChart(viewModel: .init(data: [PieChartData(slice: .init(value: 10),
115 | titleConfiguration: .init(title: "Berdil", foregroundColor: .blue, font: .body)),
:
120 | PieChartData(slice: .init(value: 10)),
121 | PieChartData(slice: .init(value: 10),
122 | titleConfiguration: .init(title: "Test", foregroundColor: .purple, font: .subheadline)),
| |- error: 'subheadline' 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/PieChart/PieSlice/PieSliceModel.swift:33:63: error: 'white' is only available in macOS 10.15 or newer
26 | }
27 |
28 | public struct TitleConfiguration {
| `- note: add @available attribute to enclosing struct
29 | let title: String
30 | let foregroundColor: Color
31 | let font: Font
32 |
33 | public init(title: String = "", foregroundColor: Color = .white, font: Font = .headline) {
| | `- error: 'white' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
34 | self.title = title
35 | self.foregroundColor = foregroundColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieSlice/PieSliceModel.swift:33:84: error: 'headline' is only available in macOS 10.15 or newer
26 | }
27 |
28 | public struct TitleConfiguration {
| `- note: add @available attribute to enclosing struct
29 | let title: String
30 | let foregroundColor: Color
31 | let font: Font
32 |
33 | public init(title: String = "", foregroundColor: Color = .white, font: Font = .headline) {
| | `- error: 'headline' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
34 | self.title = title
35 | self.foregroundColor = foregroundColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:18:52: error: 'red' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
| `- note: add @available attribute to enclosing initializer
16 | lineCap: .square,
17 | dash: [20]),
18 | circumferenceBorderColor: Color = .red) {
| `- error: 'red' is only available in macOS 10.15 or newer
19 | self.circumferenceBorderStrokeStyle = circumferenceBorderStrokeStyle
20 | self.circumferenceBorderColor = circumferenceBorderColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:12:41: error: 'StrokeStyle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
| `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
13 | let circumferenceBorderColor: Color
14 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:13:35: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
| `- error: 'Color' is only available in macOS 10.15 or newer
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:15:49: error: 'StrokeStyle' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
| | `- error: 'StrokeStyle' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing initializer
16 | lineCap: .square,
17 | dash: [20]),
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:18:43: error: 'Color' is only available in macOS 10.15 or newer
9 | import SwiftUI
10 |
11 | public struct BorderStyle {
| `- note: add @available attribute to enclosing struct
12 | let circumferenceBorderStrokeStyle: StrokeStyle
13 | let circumferenceBorderColor: Color
14 |
15 | public init(circumferenceBorderStrokeStyle: StrokeStyle = .init(lineWidth: 10,
| `- note: add @available attribute to enclosing initializer
16 | lineCap: .square,
17 | dash: [20]),
18 | circumferenceBorderColor: Color = .red) {
| `- error: 'Color' is only available in macOS 10.15 or newer
19 | self.circumferenceBorderStrokeStyle = circumferenceBorderStrokeStyle
20 | self.circumferenceBorderColor = circumferenceBorderColor
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:36:6: error: 'Published' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
| `- error: 'Published' is only available in macOS 10.15 or newer
37 | @Published public var borderStyle: BorderStyle?
38 |
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:37:6: error: 'Published' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
| `- error: 'Published' is only available in macOS 10.15 or newer
38 |
39 | public init(data: [PieChartData], borderStyle: BorderStyle? = BorderStyle()) {
<unknown>:0: error: cannot convert value of type 'any KeyPath<PieChartModel, [PieChartData]> & Sendable' to expected argument type 'ReferenceWritableKeyPath<PieChartModel, [PieChartData]>'
<unknown>:0: error: cannot convert value of type 'any KeyPath<PieChartModel, BorderStyle?> & Sendable' to expected argument type 'ReferenceWritableKeyPath<PieChartModel, BorderStyle?>'
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:35:35: error: 'ObservableObject' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| | `- error: 'ObservableObject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:40:9: error: setter for 'data' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
38 |
39 | public init(data: [PieChartData], borderStyle: BorderStyle? = BorderStyle()) {
| `- note: add @available attribute to enclosing initializer
40 | self.data = data
| |- error: setter for 'data' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
41 | self.borderStyle = borderStyle
42 | }
/Users/admin/builder/spi-builder-workspace/Sources/BIKCharts/PieChart/PieChartModel.swift:41:9: error: setter for 'borderStyle' is only available in macOS 10.15 or newer
33 | }
34 |
35 | final public class PieChartModel: ObservableObject, Identifiable {
| `- note: add @available attribute to enclosing class
36 | @Published public var data: [PieChartData]
37 | @Published public var borderStyle: BorderStyle?
38 |
39 | public init(data: [PieChartData], borderStyle: BorderStyle? = BorderStyle()) {
| `- note: add @available attribute to enclosing initializer
40 | self.data = data
41 | self.borderStyle = borderStyle
| |- error: setter for 'borderStyle' is only available in macOS 10.15 or newer
| `- note: add 'if #available' version check
42 | }
43 | }
BUILD FAILURE 6.0 macosSpm