I'm a new developer who's been working with Swift & SwiftUI for a couple of months.
I have a Picker, specifically in MenuPickerStyle, that users can select before starting a timer. I want the timer to count towards whatever the user selects in the picker. How can I get the value selected from the picker and use it in logic elsewhere in my code?
I've tried to save the value of the selection parameter, but as we know SwiftUI doesn't like having logic in the View. Ideally, I'd like to get some sort of output from the Picker like you can get an output from a function so that I can use it elsewhere.