Answers for "count down timer swift stack overflow"

0

count down timer swift stack overflow

var secondsRemaining = 60


Timer.scheduledTimer(timeInterval: 1.0, target: self, selector: #selector(updateCounter), userInfo: nil, repeats: true)
}
@objc func updateCounter(){
    if secondsRemaining > 0 {
    print("\(secondsRemaining) seconds.")
    secondsRemaining -= 1
            }
        }
Posted by: Guest on May-05-2021

Code answers related to "count down timer swift stack overflow"

Browse Popular Code Answers by Language