Skip to main content

context_menu_preview

Function context_menu_preview 

Source
pub fn context_menu_preview(
    view: &ViewHandle,
    items: &ViewHandle,
    preview: &ViewHandle,
) -> ViewHandle
Expand description

.contextMenu(menuItems:preview:) — a menu with something to look at.

The preview is what a long press enlarges before the menu appears: the row blown up, a photo, a card. context_menu has no such slot, so the menu came up over the view as it already was.

The isPresented: overload beside it in the export trie is not bound. It is there, and a call to it builds — but Swift rejects contextMenu(isPresented:menuItems:) with “extra argument”, so it is not public API on this SDK and there is no reference to check a binding against. Toggle(isOn: [Binding<Bool>]) is exported and unwritable in the same way.