So, I dont like my phone knowing where I am at all times and dont feel like turning location services off. I am trying to make a spoofer that can be toggled on or off from my phone but I dont know how to setup the toggle switch to change my current location to the one I desire. Any suggestions? the current code I have is
import UIKit
class ViewController: UIViewController {
@IBAction func `switch`(_ sender: UISwitch)
{
if (sender.isOn == true)
{
}
}
override func viewDidLoad() {
super.viewDidLoad()
}
}
The part im having difficulty is right here
if (sender.isOn == true)
{
}
I dont know what to put there to make my location change
Any help would be appreciated