ContextMenuConfiguration
Returns the configuration data to use when previewing the content.
public class ContextMenuConfiguration
Nested Type Aliases
ContextMenuContentPreviewProvider
Returns the custom view controller to use when previewing your content.
public typealias ContextMenuContentPreviewProvider = () -> ViewController?
ContextMenuActionProvider
Returns an action-based contextual menu, optionally incorporating the system-suggested actions.
public typealias ContextMenuActionProvider = ([MenuElement]) -> Menu?
Initializers
init(identifier:previewProvider:actionProvider:)
Creates a menu configuration object with the specified action and preview providers.
public convenience init(identifier: NSCopying?,
previewProvider: ContextMenuContentPreviewProvider?,
actionProvider: ContextMenuActionProvider? = nil)
Properties
identifier
The unique identifier for this configuration object.
public let identifier: NSCopying