/LLLocation

Simple get location on iOS device. Write in swift4

Primary LanguageSwiftMIT LicenseMIT

LLLocation

Features

  • Collect location
  • Support custom rules
  • Use on application in background
  • Use on application in suppend

Usage

Start a LocationManager

import LLLocation
	
let rule = Rule.init(with: [(loging: 5 , stoping: 5),(loging: 10 , stoping: 10)]);
locationManager = LLLocationManager.init(rule: rule)
locationManager.useInBackgroundTask = true
locationManager.saveLocationInShareModel = false
locationManager.start()
        
let model = LocationShareModel.shareModel
model.locations.setAppendBlock { (location) in
	let location = location as! CLLocation
	//do something with location            
}

FAQ

Contact me?

Email: 277014717@qq.com

License

LLLocation is released under the MIT License. See LICENSE for details.