IGZLocation 1.1.0

IGZLocation 1.1.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布上次发布2017年9月
SwiftSwift 版本4.0
SPM支持 SPM

alexruperez 维护。











CLLocationManager Swift 4 封装,允许使用多个 closure 处理程序和代理,通知,顺序地理围栏,自我授权,当然,一切都是可测试的。 #InCodeWeTrust

IGZLocation Screenshot

安装

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
	
}

等等。

  • 非常欢迎贡献。
  • 赞赏归属(让我们传播这个消息!),但不是强制性的。

作者

alexruperez[email protected]

许可证

IGZLocation 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。