Replace set_decorations with set_prefers_status_bar_hidden on iOS (#1092)
This commit is contained in:
parent
cf0b8babbd
commit
30b4f8dc9f
6 changed files with 54 additions and 19 deletions
|
|
@ -331,7 +331,7 @@ pub unsafe fn create_view(
|
|||
|
||||
// requires main thread
|
||||
pub unsafe fn create_view_controller(
|
||||
window_attributes: &WindowAttributes,
|
||||
_window_attributes: &WindowAttributes,
|
||||
platform_attributes: &PlatformSpecificWindowBuilderAttributes,
|
||||
view: id,
|
||||
) -> id {
|
||||
|
|
@ -347,10 +347,10 @@ pub unsafe fn create_view_controller(
|
|||
!view_controller.is_null(),
|
||||
"Failed to initialize `UIViewController` instance"
|
||||
);
|
||||
let status_bar_hidden = if window_attributes.decorations {
|
||||
NO
|
||||
} else {
|
||||
let status_bar_hidden = if platform_attributes.prefers_status_bar_hidden {
|
||||
YES
|
||||
} else {
|
||||
NO
|
||||
};
|
||||
let idiom = event_loop::get_idiom();
|
||||
let supported_orientations = UIInterfaceOrientationMask::from_valid_orientations_idiom(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue