This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static func isValidCPF(_ CPF: String) -> Bool { | |
// | |
// CPF must have 14 full characters, and 11 numeric values | |
// | |
if CPF.count != 14 { return false } | |
let cpfDigits = CPF.numericValues() | |
if cpfDigits.count != 11 { return false } |