Fix Preferences button not appearing

This commit is contained in:
Shadowfacts 2020-07-03 17:07:57 -04:00
parent c55ea2e005
commit 19fa12391d
1 changed files with 2 additions and 7 deletions

View File

@ -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() {