I want to use the init(fireAt:interval:target:selector:userInfo:repeats:) timer to call a specific function at a specific time. But the problem is that i don't know how to initialize it. in the documentation it says that:
'You must add the new timer to a run loop, using add(_:forMode:)' (https://developer.apple.com/reference/foundation/timer/1415700-init)
But i am not sure how i go about doing this. Can anybody explain it for me?