skip to Main Content

Cannot parse nested json file

Trying to parse nested json that contains a element named 'weather'. I run into errors with in the line: try decoder.decode(WeatherClass.Top.self, it errors out. However if I remove the weather element from struct definition then it works. Don't know how…

VIEW QUESTION

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