I am currently building a page to add player information to a local database. I have a collection of TextFields for each input which is linked to elements in a player struct
Actually , you can binding manyTypes with TextField:
TextField
@State var weight: Int = 0 var body: some View { Group{ Text("\(weight)") TextField("Weight", value: $weight, formatter: NumberFormatter()) }}