Сайт Swift Loop: Stackoverflow.com

let (first, last, interval) = (0, 100, 1)
var n = 0
for _ in stride(from: first, to: last, by: interval) {
    n += 1
}
Worrisome Weevil