Switch is a toggle between two mutually exclusive states, on and off is this vision and table row only to give users a way to specify one of two options on or off. Now that it's supposed to be using table rows only, according to the guidelines, switches are intended for using tables, such as in the least of settings that can be toggled on and off. In reality, some apps use the switches in other cases. And you know what, it's fine in my opinion. As we already mentioned, a switch indicates the binary state of an item, which means it has just two choices. You can use a switch control to change the state of either UI elements in the view, depending on the choice users make either list items might appear or disappear.
At least the items might become active or inactive. For example, disabling the Wi Fi switching settings causes available networks and other options to disappear. You can adjust the appearance to match the style of your app. If it works well in your app. Change the colors of a switch in its own an off state or use custom imagery to represent the switch. The appearance of the toggle button and size of the switch are set and cannot be changed.