liveview-native-swiftui-charts
is an add-on library for LiveView Native. It adds Swift Charts support for data visualization.
https://github.com/liveview-native/liveview-native-swiftui-charts
Import LiveViewNativeCharts
and add .charts
to the list of addons on your LiveView
:
import SwiftUI
import LiveViewNative
import LiveViewNativeCharts
struct ContentView: View {
var body: some View {
#LiveView(
.localhost,
addons: [.charts]
)
}
}
Now you can use the Chart
element in your template.
```heex
|
You can view documentation on the elements and attributes in this addon from Xcode: