Schulung_iOS/BikeView.swift
2025-10-23 13:45:41 +02:00

31 lines
626 B
Swift

import SwiftUI
struct BikeView: TabContent {
static var title = "Bike"
static var image = "bicycle"
var bike = Bike(name: "Mein Fahrrad ", price: 11.31, color: Color.cyan)
var body: some View {
HStack {
Label(bike.name, systemImage: "bicycle")
.foregroundStyle(.white)
.padding(5)
.background(bike.color)
// .frame(width: 200)
// Spacer()
Text(bike.price, format: .currency( code: "EUR"))
}
}
}
#Preview {
BikeView()
}