---
title: AVCaptionUnitsType
framework: avfoundation
role: symbol
role_heading: Enumeration
path: avfoundation/avcaptionunitstype
---

# AVCaptionUnitsType

A structure that defines a units for caption formats.

## Declaration

```swift
enum AVCaptionUnitsType
```

## Overview

Overview Some geometry values may use sizing and positioning with different units. In some cases, an object might allow multiple kinds of dimensions varying by units.

## Topics

### Unit types

- [AVCaptionUnitsType.cells](avfoundation/avcaptionunitstype/cells.md)
- [AVCaptionUnitsType.percent](avfoundation/avcaptionunitstype/percent.md)
- [AVCaptionUnitsType.unspecified](avfoundation/avcaptionunitstype/unspecified.md)

### Initializers

- [init(rawValue:)](avfoundation/avcaptionunitstype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Inspecting the dimensions

- [value](avfoundation/avcaptiondimension/value.md)
- [units](avfoundation/avcaptiondimension/units.md)
