skiptools / skip-ui

SwiftUI for Android
https://skip.tools
GNU Lesser General Public License v3.0
128 stars 14 forks source link

ForEach on numeric range always starts with 0 #25

Closed marcprux closed 10 months ago

marcprux commented 10 months ago

Regardless of the starting range of a ForEach, the index always starts with 0.

List {
    ForEach(5..<10) { i in
        NavigationLink("Item #\(i)", value: i)
    }
}
Screenshot 2024-01-14 at 09 54 27 Screenshot 2024-01-14 at 09 54 35
aabewhite commented 10 months ago

Fixed in 0.4.2