Representable
public struct Representable : UIViewRepresentable
A SwiftUI representation of STPCardFormView
-
Initialize a SwiftUI representation of an STPCardFormView.
Declaration
Swift
public init(_ style: STPCardFormViewStyle = .standard, paymentMethodParams: Binding<STPPaymentMethodParams>, isComplete: Binding<Bool>)
Parameters
style
The visual style to apply to the STPCardFormView. @see STPCardFormViewStyle
paymentMethodParams
A binding to the payment card text field’s contents. The STPPaymentMethodParams will be
nil
if the card form view’s contents are invalid or incomplete. -
Declaration
Swift
public func makeCoordinator() -> Coordinator
-
Declaration
Swift
public func makeUIView(context: Context) -> STPCardFormView
-
Declaration
Swift
public func updateUIView(_ cardFormView: STPCardFormView, context: Context)