skiptools / skip-ui

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

ForEach on numeric range always starts with 0 #25

Closed marcprux closed 8 months ago

marcprux commented 8 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 8 months ago

Fixed in 0.4.2