I have added a BarButton item to the left of the nav.bar through Interface Builder and in the code I want this only to show in my table view\'s edi
BarButton
nav.bar
func showOrHideButton() { isEnabled ? showButton() : hideButton() } func showButton() { navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .compose, target: self, action: #selector(action)) } func hideButton() { navigationItem.leftBarButtonItem = nil }