From bd6387d1dfa86ac0906b5089a879ea85b99a543a Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 7 Sep 2017 16:43:52 -0400 Subject: [PATCH] fit more of profile name on call screen // FREEBIE --- Signal/src/ViewControllers/CallViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/CallViewController.swift b/Signal/src/ViewControllers/CallViewController.swift index 053412e55..19c61e18c 100644 --- a/Signal/src/ViewControllers/CallViewController.swift +++ b/Signal/src/ViewControllers/CallViewController.swift @@ -188,7 +188,7 @@ class CallViewController: OWSViewController, CallObserver, CallServiceObserver, override func viewDidLoad() { super.viewDidLoad() - contactNameLabel.text = contactsManager.displayName(forPhoneIdentifier: thread.contactIdentifier()) + contactNameLabel.text = contactsManager.stringForConversationTitle(withPhoneIdentifier: thread.contactIdentifier()) updateAvatarImage() NotificationCenter.default.addObserver(forName: .OWSContactsManagerSignalAccountsDidChange, object: nil, queue: nil) { [weak self] _ in guard let strongSelf = self else { return } @@ -249,6 +249,8 @@ class CallViewController: OWSViewController, CallObserver, CallServiceObserver, contactNameLabel.layer.shadowOffset = CGSize.zero contactNameLabel.layer.shadowOpacity = 0.35 contactNameLabel.layer.shadowRadius = 4 + contactNameLabel.adjustsFontSizeToFitWidth = true + contactNameLabel.minimumScaleFactor = 0.7 self.view.addSubview(contactNameLabel) callStatusLabel = UILabel()