I don't want to show navigation stack
not work
Code Block if #available(iOS 14.0, *) { navigationItem.backBarButtonItem?.menu = nil }
not work either
Code Block class CustomBackBarButtonItem: UIBarButtonItem { @available(iOS 14.0, *) override var menu: UIMenu? { get { return nil } set { } } } protocol SetNaviBackBarProtocol { func setNavBackItem() } extension SetNaviBackBarProtocol where Self: UIViewController { func setNavBackItem() { self.navigationItem.backBarButtonItem = CustomerBackBarButtonItem(title: "", style: .plain, target: self, action: nil) } } class BaseViewController: UIViewController, SetNaviBackBarProtocol { ..... }