In this 2nd article on Understanding SwiftUI, let’s discuss how views work in SwiftUI. Table of Contents Why SwiftUI prefers Struct over Class? SwiftUI Views versus UIKit Views Why SwiftUI prefers Struct over Class? 1. SwiftUI Views are structs instead of classes. This avoids having multiple inherited properties, keeps them lightweight and improves performance. 2. SwiftUI Views are passed…