https://github.com/intelygenz/igzlocation
CLLocationManager Swift wrapper with multiple closure handlers and delegates allowed, notifications, sequential geofencing, self-authorization and, of course, everything is testable. #InCodeWeTrust
https://github.com/intelygenz/igzlocation
authorization carthage cllocationmanager cllocationmanager-swift-wrapper closure corelocation delegates geofencing handlers notifications permissions swift swift-3 swift-framework swift-library swift3 testability
Last synced: 3 months ago
JSON representation
CLLocationManager Swift wrapper with multiple closure handlers and delegates allowed, notifications, sequential geofencing, self-authorization and, of course, everything is testable. #InCodeWeTrust
- Host: GitHub
- URL: https://github.com/intelygenz/igzlocation
- Owner: intelygenz
- License: mit
- Archived: true
- Created: 2017-02-07T11:16:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-01T08:39:35.000Z (over 7 years ago)
- Last Synced: 2024-09-28T22:21:11.835Z (7 months ago)
- Topics: authorization, carthage, cllocationmanager, cllocationmanager-swift-wrapper, closure, corelocation, delegates, geofencing, handlers, notifications, permissions, swift, swift-3, swift-framework, swift-library, swift3, testability
- Language: Swift
- Homepage: https://intelygenz.github.io/IGZLocation
- Size: 6.82 MB
- Stars: 31
- Watchers: 9
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# IGZLocation
[](http://twitter.com/intelygenz)
[](http://cocoapods.org/pods/IGZLocation)
[](http://cocoapods.org/pods/IGZLocation)
[](http://cocoapods.org/pods/IGZLocation)
[](https://github.com/Carthage/Carthage)
[](https://github.com/apple/swift-package-manager)
[](https://travis-ci.org/intelygenz/IGZLocation)CLLocationManager Swift 4 wrapper with multiple closure handlers and delegates allowed, notifications, sequential geofencing, self-authorization and, of course, everything is testable. #InCodeWeTrust

## Installation
IGZLocation is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "IGZLocation"
```For Swift 3 compatibility use:
```ruby
pod 'IGZLocation', '~> 1.0'
```#### Or you can install it with [Carthage](https://github.com/Carthage/Carthage):
```ogdl
github "intelygenz/IGZLocation"
```#### Or install it with [Swift Package Manager](https://swift.org/package-manager/):
```swift
dependencies: [
.Package(url: "https://github.com/intelygenz/IGZLocation.git")
]
```## Usage
```swift
_ = IGZLocation.shared.authorize(.authorizedAlways) { status in
}IGZLocation.shared.requestLocation { location in
}IGZLocation.shared.startRegionUpdates(region, sequential: true, notify: true, { region, state in
})IGZLocation.shared.startVisitUpdates { visit, visiting in
}IGZLocation.shared.startHeadingUpdates { heading in
}
```## Etc.
* Contributions are very welcome.
* Attribution is appreciated (let's spread the word!), but not mandatory.## Author
[alexruperez](https://github.com/alexruperez), [email protected]
## License
IGZLocation is available under the MIT license. See the LICENSE file for more info.