Is it possible to invoke didUpdateLocations
inside the Timer
? I mean..
_timer = Timer.scheduledTimer(timeInterval: 10, target: self, selector: #selector(_:didUpdateLocations:)), userInfo: nil, repeats: true)
Is that going to work ? If yes then it is going to update location every 10 seconds ?
You can't invoke didUpdateLocations. If you want frequent updates, your best choice is the Standard location service:
https://developer.apple.com/reference/corelocation/cllocationmanager
Your callback selector has to have a different signature:
(Maybe contain some syntax errors; currently don't have Xcode at hand)