Login
From:
Nil Coalescing
(Uncensored)
subscribe
Using enumerated() with SwiftUI List and ForEach to show item numbers
https://nilcoalescing.com/blog/UsingEnumeratedWithListAndForEach
links
backlinks
Roast topics
Find topics
Find it!
Starting with Swift 6.2 and iOS 26, EnumeratedSequence conforms to RandomAccessCollection, allowing enumerated() to be used directly in ForEach and List views.