I am learning swift ui and I want to make custom toogle switch In which I want to add time duration to switch off and on and I want to change color when switch turn off and on and I want to add icon in it
I am beginner in swift ui so I don't know how to do it
I attach example of my view below that I want to make

