<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaAccessibility",
  "identifier" : "/documentation/MediaAccessibility/MACaptionAppearanceSetDisplayType(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Media Accessibility"
    ],
    "preciseIdentifier" : "c:@F@MACaptionAppearanceSetDisplayType"
  },
  "title" : "MACaptionAppearanceSetDisplayType(_:_:)"
}
-->

# MACaptionAppearanceSetDisplayType(_:_:)

Sets the preference for the type of caption.

```
func MACaptionAppearanceSetDisplayType(_ domain: MACaptionAppearanceDomain, _ displayType: MACaptionAppearanceDisplayType)
```

## Parameters

`domain`

The domain to retrieve the preference value from. See [`MACaptionAppearanceDomain`](/documentation/MediaAccessibility/MACaptionAppearanceDomain). Pass [`MACaptionAppearanceDomain.user`](/documentation/MediaAccessibility/MACaptionAppearanceDomain/user) unless the system defaults are needed for comparison.

`displayType`

A value representing options to use only forced captions, to allow system locale to override the language of the audio track, or to choose the best available captioning track from CC, SDH, or subtitles. See [`MACaptionAppearanceDisplayType`](/documentation/MediaAccessibility/MACaptionAppearanceDisplayType).

## Discussion

---

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)