Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Table View is Crashing
Problem also appears when rendering a optional field inside a form section in iOS 14.5 swift Form { Section(header: Text("Details")) { if showMeasurementField { HStack { TextField("\(workoutType.rawValue)", text: $measurement) .keyboardType(.decimalPad) Text(workoutTypeUnit!.symbol) } } Stepper("\(sets) set\(sets == 1 ? "" : "s")", value: $sets, in: 1...1000) Stepper("\(reps) rep\(reps == 1 ? "" : "s")", value: $reps, in: 1...1000) DurationInput(seconds: $duration) } }|
May ’21