Contents

usingFocus(identifier:shouldCacheItems:)

Declaration

class func usingFocus(identifier: UIDeferredMenuElement.Identifier, shouldCacheItems: Bool) -> Self

Parameters

  • identifier:

    An identifier for this deferred element that responders can check to determine which elements to provide.

  • shouldCacheItems:

    Whether or not the deferred element caches items. Passing in @c YES causes this deferred element to ask the responder chain for elements only once, when the element is first encountered in a menu. Passing in @c NO asks the responder chain for elements every time the element is displayed.

Discussion

Returns a placeholder menu element that is replaced with elements provided from the responder chain. A loading UI takes the place of the element in the menu until it is fulfilled. The element may be stored and re-used across menus.

See Also

Creating a deferred menu element