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() }