AXPrefersHorizontalTextLayout()
Category: Function
Platforms: iOS 17.0–18.0Deprecated, iPadOS 17.0–18.0Deprecated, Mac Catalyst 17.0–18.0Deprecated, macOS 14.0–15.0Deprecated, tvOS 17.0–18.0Deprecated, visionOS 1.0+, watchOS 10.0–11.0Deprecated
Overview
Returns a Boolean value that indicates whether the system setting for Prefer Horizontal Text is on.
Declaration
@backDeployed(before: macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0)
func AXPrefersHorizontalTextLayout() -> Bool
Details
See Also
- Deprecated
- func AXAnimatedImagesEnabled() -> Bool
-
func AXPrefersHeadAnchorAlternative() -> Bool
-
Accessibility
- AXPrefersHorizontalTextLayout() Deprecated
AXPrefers Horizontal Text Layout()
Return Value
true if the system setting for Prefer Horizontal Text is on; otherwise, false .
Topics (Grouped)
Deprecated
- AXAnimatedImagesEnabled() ->Bool — func; Returns a Boolean value that indicates whether the system setting for Animated Images is on.
- AXPrefersHeadAnchorAlternative() ->Bool — func; Returns a Boolean value that indicates the person’s preference for content that follows their head position.
Code Examples
@backDeployed(before: macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0)
func AXPrefersHorizontalTextLayout() -> Bool
Source: https://developer.apple.com/documentation/accessibility/axprefershorizontaltextlayout()