---
title: AXPrefersHorizontalTextLayout()
framework: Accessibility
role: symbol
role_heading: Function
platforms: [iOS 17.0+, iPadOS 17.0+, Mac Catalyst 17.0+, macOS 14.0+, tvOS 17.0+, visionOS 1.0+, watchOS 10.0+]
path: accessibility/axprefershorizontaltextlayout()
---

# AXPrefersHorizontalTextLayout()

Returns a Boolean value that indicates whether the system setting for Prefer Horizontal Text is on.

## Declaration

```swift
@backDeployed(before: macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0)
func AXPrefersHorizontalTextLayout() -> Bool
```

## Return Value

Return Value true if the system setting for Prefer Horizontal Text is on; otherwise, false.

## See Also

### Deprecated

- [AXAnimatedImagesEnabled()](accessibility/axanimatedimagesenabled().md)
- [AXPrefersHeadAnchorAlternative()](accessibility/axprefersheadanchoralternative().md)
