SHORT QUESTIONS

How i will get index number from Foreach loop in swiftUI?

let data = [String]() ForEach(data.indices) { index in print(data[index]) }

J
Joynal Abedin
4
let data = [String]()
ForEach(data.indices) { index in
    print(data[index])
}
J

Written by Joynal Abedin

Passionate about technology, code, and sharing knowledge.

0 Comments

Leave a Comment