- I created a Xcode project (Xcode 13), it is MacOS App only (not iOS)
- run "pod init" to create a Podfile
- add "pod 'Charts'" into Podfile
- run "pod install" to install the Charts successfully
- open Xcode project by open file ".xcworkspace"
- import Charts
- build pass! but, when I write code below, I have error.
import SwiftUI
import Charts
struct StockPriceView: View {
var body: some View {
VStack{
Charts{ //error: Cannot call value of non-function type 'module<Charts>'
}
}
}
}
Does that mean this Chart only available for iOS? thank you very much!