<!--
{
  "availability" : [
    "iOS: 10.3.0 -",
    "iPadOS: 10.3.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.4 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLCommandBuffer/present(_:afterMinimumDuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLCommandBuffer(im)presentDrawable:afterMinimumDuration:"
  },
  "title" : "present(_:afterMinimumDuration:)"
}
-->

# present(_:afterMinimumDuration:)

Presents a drawable after the system presents the previous drawable for an amount of time.

```
func present(_ drawable: any MTLDrawable, afterMinimumDuration duration: CFTimeInterval)
```

## Parameters

`drawable`

An [`MTLDrawable`](/documentation/Metal/MTLDrawable) instance that contains a texture the system can show on a display.

`duration`

The shortest display time you want the system to give to the previous drawable before presenting this one.

## Discussion

This convenience method calls the drawable’s [`present(afterMinimumDuration:)`](/documentation/Metal/MTLDrawable/present(afterMinimumDuration:)) method after the command queue schedules the command buffer for execution. The command buffer does this by adding a completion handler by calling its own [`addScheduledHandler(_:)`](/documentation/Metal/MTLCommandBuffer/addScheduledHandler(_:)) method for you.

> Important:
> You can only call this method before calling the command buffer’s ``doc://com.apple.metal/documentation/Metal/MTLCommandBuffer/commit()`` method.

---

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)