Today we refactored our code to use MVVM and added “unlock with FaceID” to this part of the app.
From Day 72:
Tip: I get lots of questions about why I place my view models into view extensions, […]. This is a small app, but think about how this would look when you have 10 views, or 50 views, or even 500 views. If you use extensions like this, the view model for your current view is always just called ViewModel, and not EditMapLocationViewModel or similar – it’s much shorter, and avoids cluttering up your code with lots of different class names!
Hm, I’m not 100% convinced… #100DaysOfSwiftUI