Commit 553a1efd by Javier Heisekce

agrega estilo a los nombres en la tabla

parent 6bf83153
......@@ -86,7 +86,16 @@ extension ContactsViewController: UITableViewDelegate, UITableViewDataSource {
let cell = tableView.dequeueReusableCell(withIdentifier: "contactName")!
let contactCell = contactStructArray[indexPath.section].contacts[indexPath.row]
cell.textLabel?.text = "\(contactCell.givenName) \(contactCell.familyName)"
let givenName = "\(contactCell.givenName) "
let familyName: NSMutableAttributedString = NSMutableAttributedString(string: contactCell.familyName)
let attributes: [NSAttributedString.Key: Any] = [
.font: UIFont.boldSystemFont(ofSize: 15)
]
let fullName = NSMutableAttributedString(string: givenName, attributes: attributes)
fullName.append(familyName)
cell.textLabel?.attributedText = fullName
return cell
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment