BioUI
BioUI provides drop-in SwiftUI components for visualizing real-time biosignal data from BioSDK. All charts are designed to work directly with BioLiveStore and BioSample data.
Available Components
Charts
| Component | Signal | Description |
|---|---|---|
BioECGChart | ECG | Real-time electrocardiogram waveform |
BioPPGChart | PPG | Photoplethysmography waveform |
BioEDAChart | EDA | Electrodermal activity waveform |
BioTempChart | Temperature | Skin temperature over time |
BioHRChart | Heart Rate | Heart rate trend line |
Widgets
| Component | Description |
|---|---|
BioHeartRateGauge | Real-time heart rate gauge with animated BPM display |
BioDeviceListView | Scan, discover, and connect to BLE devices |
Installation
BioUI is included as an optional product in the BioSDK package. Add it to your target:
.product(name: "BioUI", package: "biosdk-ios-binary")
Quick Example
import BioSDK
import BioUI
struct MonitorView: View {
@ObservedObject var store: BioLiveStore
var body: some View {
VStack {
BioHeartRateGauge(store: store)
if let ecgSamples = store.signals["ecg"] {
BioECGChart(samples: ecgSamples)
}
if let ppgSamples = store.signals["ppg"] {
BioPPGChart(samples: ppgSamples)
}
}
}
}
Theming
All BioUI components support customization through BioChartTheme and BioColorMap. See the Theming guide.