init(preview:menu:)
Creates a text item menu configuration with the specified menu and preview.
Declaration
@MainActor @preconcurrency convenience init(preview: UITextItem.MenuConfiguration.Preview? = .default, menu: UIMenu)Parameters
- preview:
The preview to display alongside the menu.
- menu:
The menu to present when the user interacts with the text item.