hiding the status bar UIKit 2024

anyone know of latest best practices for hiding the status bar in 2024 in UIKit?

the old ways no longer work

they change every once in a while

The state of the art remains view controller based status bar management. In particular your view controller overrides prefersStatusBarHidden and returns YES.

hiding the status bar UIKit 2024
 
 
Q