import Foundation import Contacts import AddressBook func localizedPhoneNumberLabel(label: String, strings: PresentationStrings) -> String { if #available(iOSApplicationExtension 9.0, *) { return CNLabeledValue.localizedString(forLabel: label) } else { } if label == "_$!!$_" { return "mobile" } else if label == "_$!!$_" { return "home" } else { return label } } func localizedGenericContactFieldLabel(label: String, strings: PresentationStrings) -> String { if #available(iOSApplicationExtension 9.0, *) { return CNLabeledValue.localizedString(forLabel: label) } else { } if label == "_$!!$_" { return "mobile" } else if label == "_$!!$_" { return "home" } else { return label } }