// Apple-only learning file: iOS 17+ target with a suitable Xcode SDK. // Not compiled or run in this Windows/Linux review. import SwiftUI struct PlaceEditor: View { @Binding var places: Int var body: some View { Stepper("Places", value: $places, in: 1...6) } } struct DemoView: View { @State private var places = 1 var body: some View { VStack(spacing: 20) { Text("Draft places: \(places)") PlaceEditor(places: $places) Text("Not booked or saved.").font(.caption) }.padding() } } @main struct WorkshopDemoApp: App { var body: some Scene { WindowGroup { DemoView() } } }