Skip to content

Instantly share code, notes, and snippets.

@blsage
Created October 20, 2020 17:50
Show Gist options
  • Save blsage/58f73fc51c028779cae035eae829ceaf to your computer and use it in GitHub Desktop.
Save blsage/58f73fc51c028779cae035eae829ceaf to your computer and use it in GitHub Desktop.
Quickly implement & easily customize the Apple Pay button. 💵
import SwiftUI
import iPaymentButton
struct ContentView: View {
var body: some View {
iPaymentButton(action: {
// Add your custom payment code here
})
}
}
@blsage
Copy link
Author

blsage commented Oct 20, 2020

Easily add the Apple pay button using entirely SwiftUI 💵

iPaymentButton has one required parameter: an action to execute on button tap. iPaymentButton supports several custom initializers and one custom modifier.

See more here 👉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment