the ENUM described . relativeSeconds(Int) and absoluteSeconds(Int) but then in the case statement, both were being multiplied by 60, turning them into minutes. I removed the multiplication.
An alternative option is to change the ENUM to .relativeMinutes. But thats a bit odd and not very compatible with integers because chances are, developers will want second level precision.
We should consider changing this to Double because thats how NSTimeInterval represents seconds.
the ENUM described . relativeSeconds(Int) and absoluteSeconds(Int) but then in the case statement, both were being multiplied by 60, turning them into minutes. I removed the multiplication.
An alternative option is to change the ENUM to .relativeMinutes. But thats a bit odd and not very compatible with integers because chances are, developers will want second level precision.
We should consider changing this to Double because thats how NSTimeInterval represents seconds.