Not able to use the Toggle Switch with if else conditions in swift ui – Ios swift
I am not able to access use the switch. I want if the switch is on, it should come up with a text field and if it is off the value of the variable should be zero. Can anyone help…