I am creating and firing a NSTimer with:
NSTimer
ncTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:sel
You could write the same thing in Swift without running in main loops by:
ncTimer = Timer.scheduledTimer(timeInterval: 1.0, target: self, selector: #selector(self.handleTimer), userInfo: nil, repeats: true) ncTimer.fire()