Skip to content

lukasreuter/LocationProvider

Repository files navigation

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)
        }
    }
}

Releases

No releases published

Packages

No packages published

Languages