Fixes ControllerInputsViewController’s system picker UI
This commit is contained in:
parent
973238e1a4
commit
7b1db2614f
@ -21,7 +21,8 @@ class ListMenuViewController: UITableViewController
|
||||
|
||||
override var preferredContentSize: CGSize {
|
||||
get {
|
||||
let navigationBarHeight = self.navigationController?.navigationBar.bounds.height ?? 0.0
|
||||
// Don't include navigation bar height in calculation (as of iOS 13).
|
||||
let navigationBarHeight = 0.0 // self.navigationController?.navigationBar.bounds.height ?? 0.0
|
||||
return CGSize(width: 0, height: (self.tableView.rowHeight * CGFloat(self.items.count)) + navigationBarHeight)
|
||||
}
|
||||
set {}
|
||||
|
||||
@ -210,6 +210,10 @@ private extension ControllerInputsViewController
|
||||
listMenuViewController.title = NSLocalizedString("Game System", comment: "")
|
||||
|
||||
let navigationController = UINavigationController(rootViewController: listMenuViewController)
|
||||
if #available(iOS 13, *)
|
||||
{
|
||||
navigationController.navigationBar.scrollEdgeAppearance = navigationController.navigationBar.standardAppearance
|
||||
}
|
||||
|
||||
let popoverMenuController = PopoverMenuController(popoverViewController: navigationController)
|
||||
self.navigationItem.popoverMenuController = popoverMenuController
|
||||
|
||||
Loading…
Reference in New Issue
Block a user