I've got this properly working map function:
let movingImages = (1...71).map { UIImage(named: "Animation.\($0)")! }
Except there is no Animation.1 file - it's Animation.01
Rather than renaming the files, how can I code it to add a 0 to the numbers before 10?
Edit: this question differs from others because the answer provided elsewhere about adding a 0 to single digit number in Swift needs additional context in order to be used within a mapping that needs to return a value