Schulung_iOS/BikeView.swift
2025-10-21 10:14:40 +02:00

20 lines
348 B
Swift

import SwiftUI
struct BikeView: View {
var bike = Bike(name: "Fahrrad", color: "lila")
var body: some View {
Text(bike.description)
Text(String(describing: bike))
ForEach(1...5, id: \.self) { number in
Text(bike.color + " " + String(number))
}
}
}
#Preview {
BikeView()
}