Swift 5.4 supports writing @ViewBuilder attribute to stored properties
Prior to Swift 5.4, if I wanted to implement a custom SwiftUI VStack, I have to write like this struct CustomStackView<Content: View >: View { let content: () -> Content var body: some View { VStack { content() ...
Jun 3, 20211 min read