I need to use picker and toggle and based on toggle value picker value needs to be changed.
I have tried to implement it but it shows toggle inside picker but I can't change picker value based on the toggle.
Here's what I have tried so far:
Picker(selection: $bluetooth.type, label: BluetoothContainer()){
Toggle(isOn: self.$bluetooth.isBluetoothOn) {
Text("Bluetooth")
}
}