---
title: "uncached(_:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uideferredmenuelement/uncached(_:)"
---

# uncached(_:)

Returns a placeholder menu element that the system replaces with the result of the provider’s completion handler.

## Declaration

```swift
class func uncached(_ elementProvider: @escaping (@escaping ([UIMenuElement]) -> Void) -> Void) -> Self
```

## Parameters

- `elementProvider`: The closure the system calls to request the deferred menu items.

## Discussion

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.

## See Also

### Creating a deferred menu element

- [init(_:)](uikit/uideferredmenuelement/init(_:).md)
- [usingFocus(identifier:shouldCacheItems:)](uikit/uideferredmenuelement/usingfocus(identifier:shouldcacheitems:).md)
