Understanding @StateObject in SwiftUI for iOS 14

At WWDC 2020, Apple announced a lot of new changes for the SwiftUI framework. One of the big changes was the new state management property wrapper called @StateObject. In this article, I will explain the workings of @StateObject property wrapper and how it is different from @ObservedObject.
A video version of this article is also available below: