uncached(_:)
Returns a placeholder menu element that the system replaces with the result of the provider’s completion handler.
Declaration
class func uncached(_ elementProvider: @escaping (@escaping ([UIMenuElement]) -> Void) -> Void) -> SelfParameters
- elementProvider:
The closure the system calls to request the deferred menu items.
Discussion
When you use this initializer, the system calls each deferred element’s completion closure every time it encounters the element in a menu. The system doesn’t cache the element for reuse.