Contents

setStatusBarHidden(_:with:)

Hides or shows the status bar, optionally animating the transition.

Declaration

func setStatusBarHidden(_ hidden: Bool, with animation: UIStatusBarAnimation)

Parameters

  • hidden:

    True to hide the status bar, False to show the status bar.

  • animation:

    A constant that indicates whether there should be an animation and, if one is requested, whether it should fade the status bar in or out or whether it should slide the status bar in or out.

Discussion

See the descriptions of the constants of the UIStatusBarAnimation type for more information.

See Also

Deprecated methods