<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDeferredMenuElement",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDeferredMenuElement"
  },
  "title" : "UIDeferredMenuElement"
}
-->

# UIDeferredMenuElement

A placeholder menu element that the system replaces with the result of the block’s completion handler.

```
@MainActor class UIDeferredMenuElement
```

## Topics

### Creating a deferred menu element

[`convenience init((([UIMenuElement]) -> Void) -> Void)`](/documentation/UIKit/UIDeferredMenuElement/init(_:))

A convenience initializer that creates a placeholder menu element that the system replaces with the result of the provider’s completion handler.

[`class func uncached((([UIMenuElement]) -> Void) -> Void) -> Self`](/documentation/UIKit/UIDeferredMenuElement/uncached(_:))

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

[`class func usingFocus(identifier: UIDeferredMenuElement.Identifier, shouldCacheItems: Bool) -> Self`](/documentation/UIKit/UIDeferredMenuElement/usingFocus(identifier:shouldCacheItems:))

### Setting an identifier

[`var identifier: UIDeferredMenuElement.Identifier`](/documentation/UIKit/UIDeferredMenuElement/identifier-swift.property)

The identifier of this deferred menu element.

[`struct Identifier`](/documentation/UIKit/UIDeferredMenuElement/Identifier-swift.struct)

### Initializers

[`convenience init(provider: (([UIMenuElement]) -> Void) -> Void)`](/documentation/UIKit/UIDeferredMenuElement/init(provider:))

[`convenience init(uncachedProvider: (([UIMenuElement]) -> Void) -> Void)`](/documentation/UIKit/UIDeferredMenuElement/init(uncachedProvider:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`UIAccessibilityIdentification`](/documentation/UIKit/UIAccessibilityIdentification)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`UIMenuElement`](/documentation/UIKit/UIMenuElement)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)