CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

LocationManagerSwift 1.1.3

LocationManagerSwift 1.1.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Jens Grud.



  • By
  • Jens Grud

CLLocationManager wrapper in Swift for easy location update, reverse geocoding and region monitoring with closure and delegate support

Swift 3 compatible

Download manually or install via CocoaPods:

pod 'LocationManagerSwift', '~> 1.1'

Usage

// updation location
LocationManagerSwift.shared.updateLocation { (latitude, longitude, status, error) in
                
}

// reverse geo coding using Apple or Google API's
LocationManagerSwift.shared.reverseGeocodeLocation(.APPLE) { (country, state, city, reverseGecodeInfo, placemark, error) in
                
}

// region monitoring
LocationManagerSwift.shared.monitorRegion(latitude: latitude, longitude: longitude, radius: 100.0, notifyOnExit: true, notifyOnEntry: true) { (region, status, error) in

}

Looking for Swift 2.3?

pod 'LocationManagerSwift', '~> 1.0.4'
// updation location
LocationManagerSwift.sharedInstance.updateLocation { (latitude, longitude, status, error) in
                
}

// reverse geo coding using Apple or Google API's
LocationManagerSwift.sharedInstance.reverseGeocodeLocation(.APPLE) { (country, state, city, reverseGecodeInfo, placemark, error) in
                
}

// region monitoring
LocationManagerSwift.sharedInstance.monitorRegion(lat, longitude: lon, radius: radius, notifyOnExit: true, notifyOnEntry: false) { (region, status, error) in

}