How to make the Binding of a TextField take an optional Int? [duplicate]
This question already has answers here: How to assign an optional Binding parameter in SwiftUI? (6 answers) TextField binding to optional number (1 answer) Closed 27 mins ago. I have a SwiftData model with 2 optionals: @Model class MySet: Identifiable { var id: UUID var weight: Int? var reps: Int? I pass an object of […]
How to make the Binding of a TextField take an optional Int? [duplicate]
This question already has answers here: How to assign an optional Binding parameter in SwiftUI? (6 answers) TextField binding to optional number (1 answer) Closed 27 mins ago. I have a SwiftData model with 2 optionals: @Model class MySet: Identifiable { var id: UUID var weight: Int? var reps: Int? I pass an object of […]