I get the following error when using code for an extension, I\'m not sure if they\'re asking to just use a different operator or modify the values in the expression based on
I found that the following works in Swift 3:
let minutes = Int(floor(totalSeconds / 60)) let seconds = Int(totalSeconds) % 60
where totalSeconds is a TimeInterval (Double).
totalSeconds
TimeInterval
Double