BluetoothKit icon indicating copy to clipboard operation
BluetoothKit copied to clipboard

ios10: CBCentralManagerState and CBPeripheralManagerState merged to CBManagerState

Open Daij-Djan opened this issue 8 years ago • 0 comments

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)!)

Daij-Djan avatar Sep 22 '16 09:09 Daij-Djan