[][src]Module polyhorn_ios::prelude

This is the Polyhorn for iOS prelude. It includes every type and function of Polyhorn UI with the exception that it defines its own Component, Element and Manager that are specialized for the iOS platform.

Re-exports

pub use super::Element;
pub use super::Manager;

Macros

asset

Calls polyhorn_ui::macros::asset::asset_impl with a token stream that we obtain from the Rust compiler.

poly
style

Calls polyhorn_ui::macros::style::style_impl with a token stream that we obtain from the Rust compiler.

use_async
use_channel
use_context
use_effect
use_id
use_layout_effect
use_reference
use_safe_area_insets

Hook that returns the safe area insets of a view.

use_state

Structs

ContextProvider
Image

Renders an image source to the screen.

KeyboardAvoidingView

A view that automatically adjusts its layout when the system keyboard appears, changes its dimensions or disappears.

LayoutAdjustment

Structure that contains all updates that should be made to a view's layout in response to a change in the visibility or dimensions of the system's virtual keyboard.

Modal

Renders its children in a system-provided modal window.

Scrollable

Implements scroll gestures and bars to accommodate layouts that exceed screen or container dimensions.

StatusBar

Controls the appearance of the system status bar on iOS and Android.

Text

Renders (rich) text to the screen.

TextInput

Accepts user input.

View

The base component.

Window

The root component.

Enums

StatusBarStyle

Represents the style of the OS status bar.

Traits

Component

Platform-specific component trait.

Type Definitions

View

Specializes the generic View component with the iOS-specific concrete view handle.

Attribute Macros

test

Calls polyhorn_ui::macros::test::test_impl with a token stream that we obtain from the Rust compiler.