Skip to content

Instantly share code, notes, and snippets.

View towcar's full-sized avatar

Carson Skjerdal towcar

View GitHub Profile
@Gujci
Gujci / StripePaymentCardTextField.swift
Created July 2, 2020 08:57
SwiftUI wrapper around the STPPaymentCardTextField from Stripe
struct StripePaymentCardTextField: UIViewRepresentable {
@Binding var cardParams: STPPaymentMethodCardParams
@Binding var isValid: Bool
func makeUIView(context: Context) -> STPPaymentCardTextField {
let input = STPPaymentCardTextField()
input.borderWidth = 0
input.delegate = context.coordinator
return input