ForagePaymentSheet

@MainActor
public class ForagePaymentSheet : UIView, Identifiable, ForagePaymentSheetElement
extension ForagePaymentSheet: ForageElementDelegate

Properties

  • Declaration

    Swift

    @MainActor
    public var paymentType: PaymentSheetType
  • Declaration

    Swift

    @MainActor
    public private(set) var completionErrors: [String : any Error] { get }
  • Declaration

    Swift

    @MainActor
    public var currentFirstResponder: (any ForagePaymentSheetField)? { get }
  • height for textfields

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var elementHeight: Int { get set }
  • complete when all fields are complete

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var isComplete: Bool { get }
  • BorderWidth for the text fields

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var borderWidth: CGFloat { get set }
  • BorderColor for the text fields

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var borderColor: UIColor? { get set }
  • CornerRadius for the text fields

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var cornerRadius: CGFloat { get set }
  • MasksToBounds for the text fields

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var masksToBounds: Bool { get set }
  • Declaration

    Swift

    @IBInspectable
    @MainActor
    public var padding: UIEdgeInsets { get set }
  • Text color for the text fields textColor default value is black

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var textColor: UIColor? { get set }
  • Size of the text for the text fields size default value is 24

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var size: Double { get set }
  • Tint color for the text fields tfTintColor default value is black

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var tfTintColor: UIColor? { get set }
  • Text alignment textAlignment default value is natural

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var textAlignment: NSTextAlignment { get set }
  • Change UIFont UITextField text font

    Declaration

    Swift

    @IBInspectable
    @MainActor
    public var font: UIFont? { get set }

Public Delegate

Public Components

Public API

UIResponder methods