Skip to main content

gpui_ios/
gpui_ios.rs

1//! Native iOS platform support for GPUI.
2//!
3//! This crate connects GPUI to UIKit, CoreText, and Metal through the shared
4//! Apple renderer. It owns iOS application lifecycle, windowing, native
5//! text input, safe-area and keyboard insets, and raw touch delivery.
6
7#[cfg(target_os = "ios")]
8pub mod ios;
9
10#[cfg(target_os = "ios")]
11pub use ios::{IosPlatform, current_platform};
12
13/// The foreground color used by the iOS status bar.
14#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
15pub enum StatusBarContentStyle {
16    /// Light status-bar content for dark backgrounds.
17    Light,
18    /// Dark status-bar content for light backgrounds.
19    #[default]
20    Dark,
21}