From 19fa12391d7dde01e31540330e7fc5c4080c24a6 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 3 Jul 2020 17:07:57 -0400 Subject: [PATCH] Fix Preferences button not appearing --- .../Screens/Profile/MyProfileTableViewController.swift | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Tusker/Screens/Profile/MyProfileTableViewController.swift b/Tusker/Screens/Profile/MyProfileTableViewController.swift index 8e8cdf44..2fbc5503 100644 --- a/Tusker/Screens/Profile/MyProfileTableViewController.swift +++ b/Tusker/Screens/Profile/MyProfileTableViewController.swift @@ -7,7 +7,6 @@ // import UIKit -import SwiftUI class MyProfileTableViewController: ProfileTableViewController { @@ -33,8 +32,6 @@ class MyProfileTableViewController: ProfileTableViewController { } }) } - - navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Preferences", style: .plain, target: self, action: #selector(preferencesPressed)) } required init?(coder aDecoder: NSCoder) { @@ -43,10 +40,8 @@ class MyProfileTableViewController: ProfileTableViewController { override func viewDidLoad() { super.viewDidLoad() - } - - override func viewDidAppear(_ animated: Bool) { - super.viewDidAppear(animated) + + navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Preferences", style: .plain, target: self, action: #selector(preferencesPressed)) } @objc func preferencesPressed() {