i'm trying to display the first letter of my contact name in uppercase:
var firstLetter: String? = !(contact?.firstName == "") ? (contact?.firstName as? String)?.substring(to: 1).uppercased() : (contact?.lastName as? String)?.substring(to: 1).uppercased()
but i have got this error:
String may not be indexed with 'Int', it has variable size elements