UINavigationController
extension UINavigationController
-
Returns the previous view controller from the stack of navigation view controllers.
Declaration
Swift
public func previousViewController() -> UIViewController?
-
Returns the first founded view controller of a given type.
Declaration
Swift
public func findFirst<T>(viewControllerType: T.Type) -> T? where T : UIViewController
-
Returns the last founded view controller of a given type.
Declaration
Swift
public func findLast<T>(viewControllerType: T.Type) -> T? where T : UIViewController
-
Removes the default background from the navigation bar.
Declaration
Swift
public func presentTransparentNavigationBar(animated: Bool = true, for barMetrics: UIBarMetrics = .default)
-
Presents the not translucent background with a given color.
Declaration
Swift
public func presentNavigationBar(with backgroundColor: UIColor, animated: Bool = true, for barMetrics: UIBarMetrics = .default)
-
Restores the default navigation bar appearance.
Declaration
Swift
public func restoreDefaultNavigationBar(animated: Bool = true)
-
Hides the bottom line of the navigation bar.
Declaration
Swift
public func hideNavigationBarBottomLine()