How to get the label value from contacts using phone number || cnlabel get string swift || CNContact get the name label and name
Solution: Below you can find the label and name from the phone number. for cont in place. phoneNumbers { let replaced = cont. value . stringValue . replaci ngOccurrences (of: "[^0-9+]" , with: "" , options: NSString . CompareOptions . regula rExpression , range: nil ) if replaced == my phoneNumber { let localizedLabel = CNLabeledValue < NSString >. local izedString (forLabel: cont. label !) let PhoneLabel = localizedLabel ...