Skip to main content

selection_disabled

Function selection_disabled 

Source
pub fn selection_disabled(view: &ViewHandle, disabled: bool) -> ViewHandle
Expand description

Apply .selectionDisabled(_:).

The public spelling is @_alwaysEmitIntoClient, so it has no symbol of its own — the compiler emits _trait(IsSelectionEnabledTraitKey.self, !isDisabled) at every call site, and that is exactly what this calls. The for:_: overload that does export a symbol is SPI the compiler will not resolve, so binding it would have produced something no Swift program can be written against.