Converting Model to ViewModels
I just released another episode of building a SwiftUI iOS fitness app in public and in this video I make viewmodels from the challenges being observed from Firestore. I then create a ChallengeItemView which takes this ChallengeItemViewModel and display some basic UI from the array of these itemViewModels in a LazyVGrid.
Here's the video: