Composable Core Bluetooth is a library that bridges the Composable Architecture and Core Bluetooth.
Check out the BluetoothManager demo to see ComposableCoreBluetooth in practice.
To use ComposableCoreBluetooth in your application, you can add an action to your domain that represents all of the actions the central manager and peripherals can emit via the CBCentralManagerDelegate
and CBPeripheralDelegate
methods:
import ComposableCoreBluetooth
enum AppAction {
case bluetoothManager(CentralManager.Action)
// Your domain's other actions:
...
}
WIP
You can add ComposableCoreBluetooth to an Xcode project by adding it as a package dependency.
- From the File menu, select Swift Packages › Add Package Dependency…
- Enter "https://github.com/myrronth/composable-core-bluetooth" into the package repository URL text field
WIP
WIP
This library is released under the MIT license. See LICENSE for details.