Added new extension "navigationBarHidden".

This commit is contained in:
albert vila 2016-12-04 12:08:03 +01:00
parent 704a8231f6
commit b6c5928745
1 changed files with 5 additions and 0 deletions

View File

@ -224,6 +224,11 @@ extension UIViewController {
public func popVC() {
_ = navigationController?.popViewController(animated: true)
}
/// EZSE: Hide or show navigation bar
public func navigationBarHidden(_ hide:Bool) {
navigationController?.setNavigationBarHidden(hide, animated: true)
}
/// EZSwiftExtensions
public func presentVC(_ vc: UIViewController) {