InitialsImageView
InitialsImageView copied to clipboard
Problem for single String
Everything works fine for "John do" but only "John" give nothing.
var nameComponents = string.uppercased().components(separatedBy: CharacterSet.letters.inverted)
nameComponents is nil with only "John". I don't know if it's expected but would be nice to get only a J in this case