Last active
March 18, 2019 15:17
-
-
Save bigsan/714d0e84b5558334dbba1a24a7d85612 to your computer and use it in GitHub Desktop.
[CoreLocation enum description] #corelocation #enum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import CoreLocation | |
| extension CLRegionState : CustomStringConvertible { | |
| public var description: String { | |
| switch self { | |
| case .unknown: | |
| return "unknown" | |
| case .inside: | |
| return "inside" | |
| case .outside: | |
| return "outside" | |
| } | |
| } | |
| } | |
| extension CLProximity : CustomStringConvertible { | |
| public var description: String { | |
| switch self { | |
| case .unknown: | |
| return "unknown" | |
| case .immediate: | |
| return "immediate" | |
| case .near: | |
| return "near" | |
| case .far: | |
| return "far" | |
| } | |
| } | |
| } | |
| extension CLAuthorizationStatus : CustomStringConvertible { | |
| public var description: String { | |
| switch self { | |
| case .notDetermined: | |
| return "notDetermined" | |
| case .restricted: | |
| return "restricted" | |
| case .denied: | |
| return "denied" | |
| case .authorizedAlways: | |
| return "authorizedAlways" | |
| case .authorizedWhenInUse: | |
| return "authorizedWhenInUse" | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment