Skip to content

Myrronth/composable-core-bluetooth

Repository files navigation

Composable Core Bluetooth

Composable Core Bluetooth is a library that bridges the Composable Architecture and Core Bluetooth.

Example

Check out the BluetoothManager demo to see ComposableCoreBluetooth in practice.

Basic Usage

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

Installation

You can add ComposableCoreBluetooth to an Xcode project by adding it as a package dependency.

  1. From the File menu, select Swift Packages › Add Package Dependency…
  2. Enter "https://github.com/myrronth/composable-core-bluetooth" into the package repository URL text field

Documentation

WIP

Help

WIP

License

This library is released under the MIT license. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages