title: (Swift) How to use UISwitch to change var
body: <p>I have a VPN app I am building, I also have my own DNS servers. </p>
  
  <p>To specify what DNS I want to use I do it in the file <code>VPNUK1.swift</code> under <code>let dns = "1.1.1.1,8.8.8.8"</code></p>
  
  <p>I have made a settings page that uses <code>SettingsView.swift</code> </p>
  
  <p>I have made a ViewController and added a UISwitch, I have then used <code>@IBOutlet</code> to link it to the <code>SettingsView.swift</code> </p>
  
  <p><strong>However</strong> I do not know how to get the UISwitch to change the <code>let dns = "1.1.1.1,8.8.8.8"</code> in <code>VPNUK1.swift</code> from <code>SettingsView.swift</code> </p>
  
  <p>I would like, when the switch is toggled, have it changed to <code>let dns = "185.136.234.36"</code></p>