skip to Main Content

Ios swift – Select item in a scrollview and change style

I created a vertical scrollview as below: struct UserFeedView: View { var body: some View { @State var selectedFilter: Filter? let filters = [ Filter(name: "All"), Filter(name: "fil1"), Filter(name: "fil2"), Filter(name: "fil3"), ] VStack() { ScrollView(.horizontal,showsIndicators: false) { HStack(spacing: 15)…

VIEW QUESTION
Back To Top
Search