feat: ✨ Added details of the type of bike available
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.
This commit is contained in:
@ -25,10 +25,19 @@ struct StationComponent: View {
|
||||
.foregroundColor(.secondary)
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("Disponibles: \(station.numbikesavailable)")
|
||||
.font(.subheadline)
|
||||
.foregroundColor(.secondary)
|
||||
|
||||
VStack {
|
||||
Text("Disponibles: \(station.numbikesavailable)")
|
||||
.font(.subheadline)
|
||||
.foregroundColor(.secondary)
|
||||
Text("Electriques: \(station.ebike)")
|
||||
.font(.subheadline)
|
||||
.foregroundColor(.blue)
|
||||
Text("Mécaniques: \(station.mechanical)")
|
||||
.font(.subheadline)
|
||||
.foregroundColor(.green)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
.padding()
|
||||
|
Reference in New Issue
Block a user