Latest 1.1.3
Homepage https://github.com/jensgrud/LocationManager
License MIT
Platforms ios 8.0, requires ARC
Authors

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

}

Latest podspec

{
    "name": "LocationManagerSwift",
    "version": "1.1.3",
    "license": "MIT",
    "summary": "CLLocationManager wrapper in Swift - location updating and reverse geo coding made easy",
    "homepage": "https://github.com/jensgrud/LocationManager",
    "authors": {
        "Jens Grud": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jensgrud/LocationManager.git",
        "tag": "1.1.3"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This