manolofdez / AsyncBluetooth

A small library that adds concurrency to CoreBluetooth APIs.
MIT License
168 stars 31 forks source link

Add unavailable reason to BluetoothError error #42

Closed litso closed 10 months ago

litso commented 11 months ago

Adds a new BluetoothUnavailableReason enum.

In order to inform a user of a possible remedy for enabling BlueTooth functionality it is useful for the app to know why BlueTooth is unavailable, for example, to prompt to open the Settings app and enable the permission.

manolofdez commented 11 months ago

Looks great to me! Just one minor comment.

manolofdez commented 10 months ago

Thanks for taking this on and contributing!