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
|
|
@ -585,10 +585,7 @@ impl Window {
|
|||
///
|
||||
/// ## Platform-specific
|
||||
///
|
||||
/// - **iOS:** Can only be called on the main thread. Controls whether the status bar is hidden
|
||||
/// via [`setPrefersStatusBarHidden`].
|
||||
///
|
||||
/// [`setPrefersStatusBarHidden`]: https://developer.apple.com/documentation/uikit/uiviewcontroller/1621440-prefersstatusbarhidden?language=objc
|
||||
/// - **iOS:** Has no effect.
|
||||
#[inline]
|
||||
pub fn set_decorations(&self, decorations: bool) {
|
||||
self.window.set_decorations(decorations)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue