bevy_ios_toolkit 0.2.1

Native iOS integrations for Bevy as ECS resources and messages: StoreKit IAP, Google AdMob ads, App Tracking Transparency, Game Center, review prompts, haptics and safe-area — each behind a feature, over a polled C-ABI Swift bridge with a testable desktop fake.
Documentation
//! iOS impact haptics through the C-ABI shim. Fire-and-forget; the Swift side
//! owns prepared `UIImpactFeedbackGenerator`s on the main queue. No-op on every
//! other platform.

/// Impact strength. Values are the generator index the Swift side maps to
/// `UIImpactFeedbackStyle` (`.light/.medium/.heavy/.rigid`).
#[derive(Clone, Copy, Debug)]
pub enum Haptic {
    Light = 0,
    Medium = 1,
    Heavy = 2,
    /// A sharp tick, distinct from the softer light thump.
    Rigid = 3,
}

#[cfg(target_os = "ios")]
pub fn play(kind: Haptic) {
    unsafe extern "C" {
        fn platform_haptic(kind: i32);
    }
    unsafe { platform_haptic(kind as i32) };
}

#[cfg(not(target_os = "ios"))]
pub fn play(_kind: Haptic) {}