Skip to content

Instantly share code, notes, and snippets.

@balrajOla
Created June 5, 2019 06:15
Show Gist options
  • Save balrajOla/ce9c8fc455c093e834ce9ecbc7bbe060 to your computer and use it in GitHub Desktop.
Save balrajOla/ce9c8fc455c093e834ce9ecbc7bbe060 to your computer and use it in GitHub Desktop.
public init(..., content: @ViewBuilder () -> Content)
//Note: The official docs won't show the attribute.
//But you can simply check this by assigning the value of VStack(){} to a variable and check variable type
//The Variable type will be TupleView<(Text, Text)>
//And TupleView is returned ViewBuilder.buildBlock function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment