CardNumberFormatter

public final class CardNumberFormatter : NumericFormatter

Formats a card’s number for display.

  • The type of card to consider during the formatting. For example, setting this to americanExpress will change the number grouping accordingly.

    Declaration

    Swift

    public var cardType: CardType?