Quantcast
Channel: SwiftUI List didSelect like in UITableView - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by iSpain17 for SwiftUI List didSelect like in UITableView

SwiftUI does not have a didSelectRowAt or anything similar because it works with states rather than standard event handlers for changes.You should define an @State variable which will track the...

View Article



SwiftUI List didSelect like in UITableView

I have a list that shows country image, name and phone code and I want to know which country is selected, like in UITableViewdidSelectRowAt indexPathLocaleInfostruct LocaleInfo: Codable, Identifiable {...

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images