测试已测试 | ✓ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布上次发布 | 2017年9月 |
SwiftSwift 版本 | 4.0 |
SPM支持 SPM | ✓ |
由 alexruperez 维护。
CLLocationManager Swift 4 封装,允许使用多个 closure 处理程序和代理,通知,顺序地理围栏,自我授权,当然,一切都是可测试的。 #InCodeWeTrust
IGZLocation 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中
对于 Swift 3 兼容使用
pod "IGZLocation"
或者使用 Swift Package Manager 安装
pod 'IGZLocation', '~> 1.0'
dependencies: [
.Package(url: "https://github.com/intelygenz/IGZLocation.git")
]
_ = 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
}
IGZLocation 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。