Latest 0.0.1
Homepage https://github.com/Kila2/LLLocation
License MIT
Platforms ios 8.0, requires ARC
Authors

Features

  • [x] Collect location
  • [x] Support custom rules
  • [x] Use on application in background
  • [x] 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: [email protected]

License

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

Latest podspec

{
    "name": "LLLocation",
    "module_name": "LLLocation",
    "version": "0.0.1",
    "summary": "Simple get location on iOS device. Write in swift4.",
    "homepage": "https://github.com/Kila2/LLLocation",
    "license": "MIT",
    "authors": {
        "Kila2": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/Kila2/LLLocation.git",
        "tag": "0.0.1"
    },
    "source_files": "LLLocation/**/*.{h,swift}",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This