Relative Content

Tag Archive for swiftswiftuiobservablepicker

Adding a Picker to change data in Observable class

I am trying to change a value that is stored in class through a custom structure using a picker. I am trying to make an app that lists course name and grade. The picker is in a HStack with a name. I am not able to change the value of a particular element, (in this example, grade) using a Picker. I am using Observable class as I have multiple views which need the access the class.