Skip to main content

BioPPGChart

Real-time photoplethysmography waveform visualization.

import BioUI

BioPPGChart(samples: ppgSamples)

Usage with BioLiveStore

struct PPGView: View {
@ObservedObject var store: BioLiveStore

var body: some View {
if let samples = store.signals["ppg"] {
BioPPGChart(samples: samples)
.frame(height: 200)
} else {
Text("Waiting for PPG data...")
.foregroundStyle(.secondary)
}
}
}