Skip to content

Instantly share code, notes, and snippets.

@kylehowells
Created March 9, 2023 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylehowells/0eb591ca489c094ed9b32963554d333c to your computer and use it in GitHub Desktop.
Save kylehowells/0eb591ca489c094ed9b32963554d333c to your computer and use it in GitHub Desktop.
Debug strings for CBManagerAuthorization
import Foundation
import CoreBluetooth
extension CBManagerAuthorization : CustomDebugStringConvertible {
public var debugDescription: String {
switch self {
case .allowedAlways: return "allowedAlways"
case .denied: return "denied"
case .notDetermined: return "notDetermined"
case .restricted: return "restricted"
@unknown default: return "@unknown(\(self.rawValue)"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment