| Crates.io | bevy_ios_safearea |
| lib.rs | bevy_ios_safearea |
| version | 0.3.0 |
| created_at | 2025-01-12 10:54:38.923046+00 |
| updated_at | 2025-04-26 15:51:30.748494+00 |
| description | Bevy plugin to query device safe area insets |
| homepage | |
| repository | https://github.com/rustunit/bevy_ios_safearea |
| max_upload_size | |
| id | 1513128 |
| size | 74,890 |
Bevy plugin to query ios device safe area insets.

cfgs needed in your app code)File -> Add Package Dependencies and paste https://github.com/rustunit/bevy_ios_safearea.git into the search bar on the top right:

cargo add bevy_ios_safearea
or
# always pin to the same exact version you also of the Swift package
bevy_ios_safearea = { version = "=0.3.0" }
Initialize Bevy Plugin:
// request initialisation right on startup
use bevy::prelude::*;
App::new()
.add_plugins((DefaultPlugins,bevy_ios_safearea::IosSafeAreaPlugin));
Accessing it:
use bevy::prelude::*;
use bevy_ios_safearea::IosSafeArea;
fn bevy_system(safe_area: IosSafeArea) {
let safe_area_top = safe_area.top();
}
| bevy | crate |
|---|---|
| 0.16 | 0.3,main |
| 0.15 | 0.1,0.2 |
All code in this repository is dual-licensed under either:
at your option. This means you can select the license you prefer.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.