Last active
May 7, 2022 02:44
-
-
Save mishimay/430b5cc59f622478da46fa7742bd435b to your computer and use it in GitHub Desktop.
How to use @ViewBuilder in SwiftUI View
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContainerView<Content: View>: View { | |
@ViewBuilder let content: Content | |
var body: some View { | |
content | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment