[ad_1]
Hello I’m attempting to plot a 2D (x, y plot) on an iPhone.
My model of Xcode is:
Model 13.4.1 (13F100)
Swift model
Swift model 5.6.1
The URL of the charts module I imported is:
https://github.com/danielgindi/Charts.git
I used the next snippet:
import SwiftUI
import CoreLocation
import CoreLocationUI
import Charts
struct NewLineChartView: View {
var dataPoints: [CLLocationCoordinate2D]
var physique: some View {
Chart(dataPoints, id: .self) { price in
LineMark(x: .worth("x", price.x),
y: .worth("y", price.y))
.foregroundStyle(.pink)
.image(Circle().strokeBorder(lineWidth: 1.5))
}
}
however the next error messages are displayed when making an attempt to compile the app:
Can't discover 'Chart' in scope
and
Can't discover 'LineMark' in scope
[ad_2]
