Skip to content

Instantly share code, notes, and snippets.

@drumnkyle
Last active February 18, 2020 02:19
Show Gist options
  • Save drumnkyle/e8b69ab01c2b402daf05a1b670244982 to your computer and use it in GitHub Desktop.
Save drumnkyle/e8b69ab01c2b402daf05a1b670244982 to your computer and use it in GitHub Desktop.
All Component Previews Example
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
Group {
ContentView(title: "Short String")
ContentView(title: """
This is a super long title \
spread across a single line
""")
}.allComponentPreviews()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment