Contents

setNavigationBarHidden(_:animated:)

Sets whether the navigation bar is hidden.

Declaration

func setNavigationBarHidden(_ hidden: Bool, animated: Bool)

Parameters

  • hidden:

    Specify True to hide the navigation bar or False to show it.

  • animated:

    Specify True if you want to animate the change in visibility or False if you want the navigation bar to appear immediately.

Discussion

For animated transitions, the duration of the animation is specified by the value in the hideShowBarDuration constant.

See Also

Related Documentation

Configuring navigation bars