---
title: "MACaptionAppearanceGetWindowRoundedCornerRadius(_:_:)"
framework: mediaaccessibility
role: symbol
role_heading: Function
path: "mediaaccessibility/macaptionappearancegetwindowroundedcornerradius(_:_:)"
---

# MACaptionAppearanceGetWindowRoundedCornerRadius(_:_:)

Returns the radius of the caption window’s corners.

## Declaration

```swift
func MACaptionAppearanceGetWindowRoundedCornerRadius(_ domain: MACaptionAppearanceDomain, _ behavior: UnsafeMutablePointer<MACaptionAppearanceBehavior>?) -> CGFloat
```

## Parameters

- `domain`: The domain to retrieve the preference value from. See doc://com.apple.mediaaccessibility/documentation/MediaAccessibility/MACaptionAppearanceDomain. Pass doc://com.apple.mediaaccessibility/documentation/MediaAccessibility/MACaptionAppearanceDomain/user unless the system defaults are needed for comparison.
- `behavior`: A pointer to memory. On return, this memory holds the caption appearance behavior for this preference setting. For possible values see doc://com.apple.mediaaccessibility/documentation/MediaAccessibility/MACaptionAppearanceBehavior. Pass NULL when you do not need the behavior setting.

## Return Value

Return Value The system setting for the caption window’s corner radius. Discussion The rounded corners of the caption window are not customizable within the Accessibility preferences and do not change based on text size.

## See Also

### Caption window settings

- [MACaptionAppearanceCopyWindowColor(_:_:)](mediaaccessibility/macaptionappearancecopywindowcolor(_:_:).md)
- [MACaptionAppearanceGetWindowOpacity(_:_:)](mediaaccessibility/macaptionappearancegetwindowopacity(_:_:).md)
