100 Days of SwiftUI
2026-07-05
Milestone: Projects 10-12
The skills you’ve learned in this projects are perhaps more important than you realize, because if you put them all together you can now fetch data from the internet, store it locally, and let users filter to find the stuff they care about.
Challenge
Your job is to use
URLSessionto download some JSON from the internet, useCodableto convert it to Swift types, then useNavigationStack,List, and more to display it to the user.At the very least you should:
- Fetch the data and parse it into User and Friend structs.
- Display a list of users with a little information about them, such as their name and whether they are active right now.
- Create a detail view shown when a user is tapped, presenting more information about them, including the names of their friends.
- Before you start your download, check that your User array is empty so that you don’t keep starting the download every time the view is shown.