LocationProvider

master

An ObservableObject wrapper around CLLocation
lukasreuter/LocationProvider

LocationProvider

A simple Swift package to get the current device location by using Combine and ObservableObject

Usage

struct ContentView : View {
    @ObservedObject var currentLocation = LocationProvider()
    
    var body: some View {
        VStack {
            Text(currentLocation.location)
            
            Text(currentLocation.occasionalLocation)
        }
    }
}

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Mar 01 2023 20:40:19 GMT-1000 (Hawaii-Aleutian Standard Time)