BioDeviceListView
A ready-made SwiftUI view for scanning, discovering, and connecting to BLE devices. Handles the full scan-and-connect flow with connection state indicators.
import BioUI
BioDeviceListView(sdk: sdk, store: store)
Usage
struct SetupView: View {
let sdk: BioSDKClient
@ObservedObject var store: BioLiveStore
var body: some View {
NavigationStack {
BioDeviceListView(sdk: sdk, store: store)
.navigationTitle("Devices")
}
}
}
Features
- Automatic BLE scanning with start/stop control
- Device name and signal strength display
- Connection state badges (discovered, connecting, ready, etc.)
- Tap to connect / disconnect
- Supports ring and HRM device types