Hello I'm currently working on a contacts application and I can't proper show the contact number into the cell, all I want is to display as a String without the Optional text and the (""). Here is my code:
let cell = tableView.dequeueReusableCell(withIdentifier: "contactCell", for: indexPath)
let contact: CNContact!
if inSearchMode {
contact = filteredData[indexPath.row]
} else {
contact = contactList[indexPath.row]
}
cell.textLabel?.text = "\(contact.givenName) \(contact.familyName) \((contact.phoneNumbers.first?.value as? CNPhoneNumber)?.stringValue) "
return cell
}
How Could I display the number under the name?