BrazilSocialSecurityNumberFormatter

public final class BrazilSocialSecurityNumberFormatter : NumericFormatter

Formats a string based on Brazil’s social security numbers (CPF and CNPJ) formatting rules. CPF is an 11 digit number and formatted like 123.123.123-12 and CNPJ is a 14 digit number and formatted like 12.123.123/1234-12

  • Declaration

    Swift

    override public func formattedValue(for value: String) -> String