BluetoothKit
BluetoothKit copied to clipboard
ios10: CBCentralManagerState and CBPeripheralManagerState merged to CBManagerState
Hi
on ios10 apple merged CBCentralManagerState and CBPeripheralManagerState into CBManagerState they basically renamed the enum... I added a workaround... I use the rawValue and then create the enum again
e.g. let newCause = BKUnavailabilityCause(centralManagerState: CBCentralManagerState(rawValue: central.state.rawValue)!)