Added details of the type of bike available; fixed a bug where the application would not load the bikes; added a shortcut to the settings app in the event of location refusal.
23 lines
473 B
Swift
23 lines
473 B
Swift
//
|
|
// velibtrackerApp.swift
|
|
// velibtracker
|
|
//
|
|
// Created by Louis Gallet on 02/09/2023.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
|
|
@main
|
|
struct velibtrackerApp: App {
|
|
@ObservedObject var locationManager = LocationManager()
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
}
|
|
}
|
|
init() {
|
|
fetchVelibDataLocation(lon: Double(locationManager.userLocation?.longitude ?? 0), lat: Double(locationManager.userLocation?.latitude ?? 0))
|
|
}
|
|
}
|