SwiftUI View is also a View Model

Comparison with WPF framework

Mohammad Azam
Better Programming
Published in
4 min readJul 29, 2022

--

Photo by Lili Popper on Unsplash

In this post, I will cover how a SwiftUI View is not only a view but also a ViewModel. We will compare it with WPF framework and see how SwiftUI already has built-in support for ViewModel right within the view. This means that in most cases, you don’t need to create an extra layer of View Model per screen.

Windows Presentation…

--

--

Lead instructor at a coding bootcamp. Top iOS mobile instructor on Udemy. Author of multiple books and international speaker. azamsharp.school