Skip to main content

transform_anchor_preference

Function transform_anchor_preference 

Source
pub fn transform_anchor_preference(
    view: &ViewHandle,
    transform: impl Fn(i64) -> i64 + 'static,
) -> ViewHandle
Expand description

Apply .transformAnchorPreference(key:value:transform:).

The same shape, except the transform takes the running value inout — so x0 is a pointer to write back through rather than a result to produce.