Picker
Picker("", selection: $value) { ForEach(values, id: \.self) { entry in Text(entry) } } .onChange(of: value) { oldValue, newValue in print("currentValue: \(value), oldValue: \(oldValue), newValue: \(newValue)") }