Skip to content

Instantly share code, notes, and snippets.

@peterfriese
Created August 30, 2021 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterfriese/f0fe18faa86c0a618df8e506b621bb0e to your computer and use it in GitHub Desktop.
Save peterfriese/f0fe18faa86c0a618df8e506b621bb0e to your computer and use it in GitHub Desktop.
struct BooksListView_Previews: PreviewProvider {
static var previews: some View {
NavigationView {
BooksListViewDemo()
}
}
}
struct BookRowView_Previews: PreviewProvider {
static var previews: some View {
BookRowView(book: Book.samples[0])
.previewLayout(.sizeThatFits)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment