how to populate picker from ViewModel object, setting to initial state of first element and handle actions on selection of picker item
问题 I have a view class showing list of items coming from ViewModel class, in picker. Initial state of this picker is first element from the array of objects of the viewModel class. On selection of item from picker, I want to do different actions in that view - 1. send the object info to different screen on button click. 2. display information with respected to selected object from picker. import SwiftUI import Combine struct SetConfiguration: View { @ObservedObject var profileListVM :