How for `SwiftUI.ForEach.init(_ data: Range<Int>, @ViewBuilder content: @escaping (Int) -> Content)` compiler is able to warn if `Range` is not constant?

I'm getting this warning with Xcode 13.3

let kLoops = 6

and then in a view:

ForEach(0..<kLoops) {

And getting: Non-constant range: argument must be an integer literal

Am I doing anything wrong? Or is there a way to suppress this warning?