pub struct DynamicIslandSpacer {
pub edge: Property<SafeAreaEdge>,
pub inset: Property<f64>,
}Expand description
Opt-in space for UIKit’s current safe area; does not draw or intercept input.
<DynamicIslandSpacer /> fills its container’s width and measures its height
from the top safe-area inset. Use it in content-sized layout, or bind inset
when positioning other content explicitly. edge also supports the home
indicator and landscape side insets. Insets update on rotation and window
changes, in debug and release. Other chassis measure zero on the inset axis.
This reserves the platform’s entire safe inset, including status bars on devices without a Dynamic Island. It does not automatically move siblings, inset ancestors, or detect an ancestor that already avoids the safe area.
Fields§
§edge: Property<SafeAreaEdge>Window edge to reserve. Defaults to Top. Left/Right measure width and fill the container’s height; Top/Bottom measure height and fill width.
inset: Property<f64>Computed inset in logical pixels. Bind to observe it; the spacer owns this output and overwrites authored values when its measurement changes.
Trait Implementations§
Source§impl Clone for DynamicIslandSpacer
impl Clone for DynamicIslandSpacer
Source§fn clone(&self) -> DynamicIslandSpacer
fn clone(&self) -> DynamicIslandSpacer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CoercionRules for DynamicIslandSpacer
impl CoercionRules for DynamicIslandSpacer
Source§fn is_identity_roundtrip() -> bool
fn is_identity_roundtrip() -> bool
Self preserves the semantics of converting that clone
through ToPaxValue and back with try_coerce. Read moreSource§fn try_coerce(value: PaxValue) -> Result<DynamicIslandSpacer, String>
fn try_coerce(value: PaxValue) -> Result<DynamicIslandSpacer, String>
value into Self.Source§fn allows_singleton_stack() -> bool
fn allows_singleton_stack() -> bool
Source§impl Debug for DynamicIslandSpacer
impl Debug for DynamicIslandSpacer
Source§impl Default for DynamicIslandSpacer
impl Default for DynamicIslandSpacer
Source§fn default() -> DynamicIslandSpacer
fn default() -> DynamicIslandSpacer
Source§impl<'de> Deserialize<'de> for DynamicIslandSpacer
impl<'de> Deserialize<'de> for DynamicIslandSpacer
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DynamicIslandSpacer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DynamicIslandSpacer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl HelperFunctions for DynamicIslandSpacer
impl HelperFunctions for DynamicIslandSpacer
Source§fn register_all_functions()
fn register_all_functions()
impl ImplToFromPaxAny for DynamicIslandSpacer
Source§impl Interpolatable for DynamicIslandSpacer
impl Interpolatable for DynamicIslandSpacer
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl Serialize for DynamicIslandSpacer
impl Serialize for DynamicIslandSpacer
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl ToPaxValue for DynamicIslandSpacer
impl ToPaxValue for DynamicIslandSpacer
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
PaxValue.Source§fn nested_properties(&self) -> Vec<UntypedProperty>
fn nested_properties(&self) -> Vec<UntypedProperty>
Source§fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
fn to_pax_value_in_graph(self) -> PaxValuewhere
Self: Sized,
Self::to_pax_value reads published value snapshots.Auto Trait Implementations§
impl Freeze for DynamicIslandSpacer
impl RefUnwindSafe for DynamicIslandSpacer
impl Send for DynamicIslandSpacer
impl Sync for DynamicIslandSpacer
impl Unpin for DynamicIslandSpacer
impl UnsafeUnpin for DynamicIslandSpacer
impl UnwindSafe for DynamicIslandSpacer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Source§impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
Source§fn to_pax_any(self) -> PaxAny
fn to_pax_any(self) -> PaxAny
PaxAny.Source§fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
PaxAny.