Contents

addOption(withTitle:image:order:handler:)

Adds a custom menu item to the list of document pickers.

Declaration

func addOption(withTitle title: String, image: UIImage?, order: UIDocumentMenuOrder, handler: @escaping () -> Void)

Parameters

  • title:

    The custom menu item’s title.

  • image:

    The custom menu item’s image.

  • order:

    The position of this menu item. See Uidocumentmenuorder for possible values.

  • handler:

    A block that is called when the user selects this custom menu item.

See Also

Configuring a document menu