let data = [String]()
ForEach(data.indices) { index in
print(data[index])
}
SHORT QUESTIONS
How i will get index number from Foreach loop in swiftUI?
let data = [String]() ForEach(data.indices) { index in print(data[index]) }
0 Comments
Leave a Comment