---
title: "render(in:for:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcaptionrenderer/render(in:for:)"
---

# render(in:for:)

Draw the captions for the time you specify.

## Declaration

```swift
func render(in ctx: CGContext, for time: CMTime)
```

## Parameters

- `ctx`: The drawing content.
- `time`: The time value for which the system draws the captions.
