I have a coding \'issue\'.
I have a label, which text I want to change dynamically every 2 seconds. I\'ve done the following:
// WELCOME STRING ARRA
If you want to keep it all inline you can do this:
var loop: ((Int) -> Void)! loop = { [weak self] count in guard count > 0 else { return } //Do your stuff DispatchQueue.main.asyncAfter(deadline: .now() + 1) { loop(count - 1) } } loop(10) //However many loops you want