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 ArticleSwiftUI 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