Updated the casing for the avatar text

This commit is contained in:
Morgan Pretty 2022-03-10 16:09:42 +11:00
parent e786102f03
commit d3734efc16

View file

@ -16,7 +16,7 @@ public final class Identicon : NSObject {
with: size,
text: (initials.count >= 2 ?
initials.substring(to: 2).uppercased() :
content.substring(to: 2).capitalized
content.substring(to: 2).uppercased()
)
)
let rect = CGRect(origin: CGPoint.zero, size: layer.frame.size)