Changed fun for computed var

This commit is contained in:
albert vila 2016-12-13 23:47:15 +01:00
parent 1b43970d03
commit c7480df85e
1 changed files with 7 additions and 2 deletions

View File

@ -249,8 +249,13 @@ extension UIViewController {
}
/// EZSE: Hide or show navigation bar
public func navigationBarHidden(_ hide:Bool) {
navigationController?.setNavigationBarHidden(hide, animated: true)
public var isNavBarHidden:Bool {
get {
return (navigationController?.isNavigationBarHidden)!
}
set {
navigationController?.isNavigationBarHidden = newValue
}
}
///EZSE: Presents a view controller modally.