title: How to check the state of an UISwitch from another ViewController in SWIFT 3?
body: <p>I want to check the State of an <code>UISwitch</code> from another <code>View Controller</code>. And if the <code>switch</code> is <code>on</code>, then I want the <code>backgroundColor</code> of the <code>View</code> to be red, otherwise it should be green. I tried to use <code>UserDefaults</code>, but I have no idea what to start with. Any help would be greatly appreciated! </p>