From cb7f28ed342caab1f0ce032a6f5ce7e167e21846 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 10 May 2018 12:17:25 -0400 Subject: [PATCH] Use dark status bar in contact view. --- Signal/src/ViewControllers/ContactViewController.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/ContactViewController.swift b/Signal/src/ViewControllers/ContactViewController.swift index f820c0ac6..9f40be372 100644 --- a/Signal/src/ViewControllers/ContactViewController.swift +++ b/Signal/src/ViewControllers/ContactViewController.swift @@ -77,7 +77,8 @@ class ContactViewController: OWSViewController, ContactShareViewHelperDelegate { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) - UIUtil.applySignalAppearence() + // Use "dark" style navigation bar in this view. + UIUtil.applyDefaultSystemAppearence() guard let navigationController = self.navigationController else { owsFail("\(logTag) in \(#function) navigationController was unexpectedly nil") @@ -98,12 +99,17 @@ class ContactViewController: OWSViewController, ContactShareViewHelperDelegate { override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) - UIUtil.applySignalAppearence() + // Use "dark" style navigation bar in this view. + UIUtil.applyDefaultSystemAppearence() } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) + // We don't need to use UIUtil to restore appearance (e.g. of navigation bar). + // This view is only presented from conversation view which will restore + // "Signal" appearance. + guard let strongNavigationController = postDismissNavigationController else { owsFail("\(self.logTag) in \(#function) navigationController was unexpectedly nil") return