---
title: hasActiveCaptions
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcaptionrenderer/scene/hasactivecaptions
---

# hasActiveCaptions

A Boolean value that indicates whether the scene contains one or more active captions.

## Declaration

```swift
var hasActiveCaptions: Bool { get }
```

## Discussion

Discussion Knowing when the renderer has active captions can be useful to scrub to times where captions are present, or skip scenes where no captions exist. important: Don’t use this property value to restrict drawing. Instead, draw an empty fill in render(in:for:) when there aren’t active captions to render.

## See Also

### Inspecting the scene

- [timeRange](avfoundation/avcaptionrenderer/scene/timerange.md)
- [needsPeriodicRefresh](avfoundation/avcaptionrenderer/scene/needsperiodicrefresh.md)
