Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 649 Bytes

FormsLocation.md

File metadata and controls

47 lines (33 loc) · 649 Bytes

FormsLocation

FormsLocation is location manager

Import

import FormsLocation

Dependencies

FormsInjector.framework
FormsLogger.framework
FormsPermissions.framework

Permissions

NSLocationWhenInUseUsageDescription
NSLocationAlwaysAndWhenInUseUsageDescription

Usage

Observe location

let location = Location()
location.onLocationChanged = { (location: CLLocation?) in }
location.startUpdatingLocation()
location.stopUpdatingLocation()

Get location once

location.locationOnce = { (location: CLLocation?) in }

Get last location

location.lastLocation