diff --git a/Tusker/Screens/Profile/MyProfileTableViewController.swift b/Tusker/Screens/Profile/MyProfileTableViewController.swift index 4776b0abfc..f5ee6779b0 100644 --- a/Tusker/Screens/Profile/MyProfileTableViewController.swift +++ b/Tusker/Screens/Profile/MyProfileTableViewController.swift @@ -7,7 +7,6 @@ // import UIKit -import SwiftUI class MyProfileTableViewController: ProfileTableViewController { @@ -32,14 +31,18 @@ class MyProfileTableViewController: ProfileTableViewController { } }) } - - navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Preferences", style: .plain, target: self, action: #selector(preferencesPressed)) } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } + override func viewDidLoad() { + super.viewDidLoad() + + navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Preferences", style: .plain, target: self, action: #selector(preferencesPressed)) + } + @objc func preferencesPressed() { present(PreferencesNavigationController(mastodonController: mastodonController), animated: true) }