Contents

UIStatusBarManager

An object that describes the configuration of the status bar.

Declaration

@MainActor class UIStatusBarManager

Overview

Use a UIStatusBarManager object to get the current configuration of the status bar for its associated scene. You don’t create UIStatusBarManager objects directly. Instead, you retrieve an existing object from the statusBarManager property of a UIWindowScene object.

You don’t use this object to modify the configuration of the status bar. Instead, you set the status bar configuration individually for each of your UIViewController objects. For example, to modify the default visibility of the status bar, override the prefersStatusBarHidden property of your view controller.

Topics

Getting the status bar configuration

Getting the frame rectangle

See Also

Device environment