New in SwiftUI 4 : AnyLayout
Introduced in SwiftUI 4, AnyLayout is a type-erased instance of the layout protocol. We can use AnyLayout instance to enable dynamic layout container change without destroying the state of subviews. For example, if we a VStack displaying two subviews in portrait mode, with the toggle of a button we can change the VStack to HStack without affecting current state of subviews.