Building a Simple Time Tracker With SwiftUI — Part 2
Taking in user input and saving to UserDefaults
7 min readMar 8, 2021
Last week we made the minimum viable product (MVP) for our time tracker app. This week we’ll make the second iteration and allow the user of the app to add their own projects and save the time tracked to UserDefaults so that it will persist between sessions. Find part one here, and the source code here. The source code for this article can be found in the branch post/part-2.