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

# init(width:height:)

Creates a caption size with width and height values.

```
init(width: AVCaptionDimension, height: AVCaptionDimension)
```

## Parameters

`width`

The caption width.

`height`

The caption height.

---

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)