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: Fri Oct 18 2024 14:38:51 GMT-0900 (Hawaii-Aleutian Daylight Time)