SwiftUI allows developers to use heterogenous view types by making use of AnyView type. AnyView encloses any kind of SwiftUI type into a generic type that can be returned from a function. In this article, we will take a look at,
1. Why developers may want to use AnyView type