<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptionRegion/DisplayAlignment-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@E@AVCaptionRegionDisplayAlignment"
  },
  "title" : "AVCaptionRegion.DisplayAlignment"
}
-->

# AVCaptionRegion.DisplayAlignment

Constants that indicate the alignment of lines in a region.

```
enum DisplayAlignment
```

## Overview

When you insert a caption line, the region places it relative to existing lines. The system determines the order in which the region places lines by its block progression direction. For example, English captions’ block progression direction are top-to-bottom, while Japanese vertical captions use right-to-left.

## Topics

### Display alignments

[`case before`](/documentation/AVFoundation/AVCaptionRegion/DisplayAlignment-swift.enum/before)

An alignment that positions lines at the top of the block progression direction.

[`case center`](/documentation/AVFoundation/AVCaptionRegion/DisplayAlignment-swift.enum/center)

An alignment that positions lines in the middle of the block progression direction.

[`case after`](/documentation/AVFoundation/AVCaptionRegion/DisplayAlignment-swift.enum/after)

An alignment that positions lines at the bottom of the block progression direction.

### Initializers

[`init?(rawValue: Int)`](/documentation/AVFoundation/AVCaptionRegion/DisplayAlignment-swift.enum/init(rawValue:))

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)