velib-tracker/velibtracker/ContentView.swift
Louis 701d163547
feat: Ability to view stations from the API
Addition of a single component for stations; creation of structure; creation of function to retrieve bikes in real time
2023-09-02 17:19:40 +02:00

31 lines
601 B
Swift

//
// ContentView.swift
// velibtracker
//
// Created by Louis Gallet on 02/09/2023.
//
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
ScrollView {
ForEach(velibStations, id: \.stationcode) { station in
StationComponent(station: station)
.padding(.bottom, 16)
}
}
.navigationBarTitle("Stations Vélib")
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}