Skip to content

Instantly share code, notes, and snippets.

@arkilis
Created December 19, 2020 21:29
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 arkilis/074ac811d97397f159ba2ae48380c131 to your computer and use it in GitHub Desktop.
Save arkilis/074ac811d97397f159ba2ae48380c131 to your computer and use it in GitHub Desktop.
struct PurchaseButtonView_Previews: PreviewProvider {
static var previews: some View {
VStack {
PurchaseButtonView(title: "Buy") {
print("Buy button clicked")
}.padding()
PurchaseButtonView(title: "Sell") {
print("Buy button clicked")
}.padding()
}
.previewLayout(.fixed(width: 350, height: 200))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment