<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptionDimension/init(value:units:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So18AVCaptionDimensionV5value5unitsAB14CoreFoundation7CGFloatV_So0A9UnitsTypeVtcfc"
  },
  "title" : "init(value:units:)"
}
-->

# init(value:units:)

Creates a caption dimension with a value and unit type.

```
init(value: CGFloat, units: AVCaptionUnitsType)
```

## Parameters

`value`

A floating-point value.

`units`

The value’s unit type.

---

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)