diff --git a/SignalMessaging/Loki/Redesign/Components/PlaceholderIcon.swift b/SignalMessaging/Loki/Redesign/Components/PlaceholderIcon.swift index c7a8243ee..cb4ae6bda 100644 --- a/SignalMessaging/Loki/Redesign/Components/PlaceholderIcon.swift +++ b/SignalMessaging/Loki/Redesign/Components/PlaceholderIcon.swift @@ -37,6 +37,7 @@ public class PlaceholderIcon { } private func getTextLayer(with diameter: CGFloat, colour: CGColor? = nil, text: String) -> CALayer { + let text = text.capitalized let font = UIFont.boldSystemFont(ofSize: diameter / 2) let height = NSString(string: text).boundingRect(with: CGSize(width: diameter, height: CGFloat.greatestFiniteMagnitude), options: .usesLineFragmentOrigin, attributes: [ NSAttributedString.Key.font : font ], context: nil).height