Swift Package Index


Simple CoreLocation wrapper


  • The latest stable release is 1.2.1. Released over 1 year ago.
  • The last commit to master was over 1 year ago.

Swift Version Compatibility

  • 1.2.1 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 1.2.1 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

Simple wrapper around CLLocationManager to make it easy to get the current location of the device.

Usage

let service = LocationService()
service.requestLocation { result in
  switch result {
    case .success(let coordinate):
      // use coordinate
    case .failure(let error):
      // handle error
  }
}