In this episode of building a SwiftUI MVVM fitness app in public we add a plus icon to the navigation bar so we can present a modal to add a challenge. The fact we are listening to our challenges collection in our ChallengeListView means we don't need to refresh once we've added a challenge via the modal - the screen updates with the new challenge automatically

When you see how simple it is to implement something like this you can understand how SwiftUI is definitely the future. As long as it's not an overly complicated design and/or functionality then it's the way to go - at least if you are targeting iOS 14+

Watch episode 17 here: