From adfaa7d599bd98fd97d89c45c0e74f0aa38fbbc6 Mon Sep 17 00:00:00 2001 From: Stephenie Harris Date: Fri, 11 Mar 2022 16:14:25 -0700 Subject: [PATCH] Don't show the back button title on the next view. --- .../NotificationCommentDetailViewController.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationCommentDetailViewController.swift b/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationCommentDetailViewController.swift index ff0bbb4ee245..bbbe12515799 100644 --- a/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationCommentDetailViewController.swift +++ b/WordPress/Classes/ViewRelated/Notifications/Controllers/NotificationCommentDetailViewController.swift @@ -82,7 +82,7 @@ class NotificationCommentDetailViewController: UIViewController, NoResultsViewHo override func viewDidLoad() { super.viewDidLoad() - title = notification.title + configureNavBar() view.backgroundColor = .basicBackground loadComment() } @@ -101,6 +101,12 @@ class NotificationCommentDetailViewController: UIViewController, NoResultsViewHo private extension NotificationCommentDetailViewController { + func configureNavBar() { + title = notification.title + // Empty Back Button + navigationItem.backBarButtonItem = UIBarButtonItem(title: String(), style: .plain, target: nil, action: nil) + } + func configureNavBarButtons() { var barButtonItems: [UIBarButtonItem] = []