Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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