var isAccessibilityElement : Bool
var accessibilityLabel : String?
var accessibilityValue : String?
var accessibilityHint : String?
var accessibilityTraits : UIAccessibilityTraits
struct UIAccessibilityTraits
Technology
The UIAccessibility
informal protocol provides accessibility information about an app’s user interface elements. Assistive apps, such as VoiceOver, convey this information to users with disabilities to help them use the app.
Standard UIKit controls and views implement the UIAccessibility
methods and are accessible to assistive apps by default. This means that if your app uses only standard controls and views, such as UIButton
, UISegmented
, and UITable
, you need only supply app-specific details when the default values are incomplete. You can do this by setting these values in Interface Builder or by setting the properties in this informal protocol.
The UIAccessibility
class, which represents custom user interface objects, also implements the UIAccessibility
informal protocol. If you create a completely custom UIView subclass, you might need to create an instance of UIAccessibility
to represent it. In this case, you would support all the UIAccessibility
properties to correctly set and return the accessibility element’s properties.
var isAccessibilityElement : Bool
var accessibilityLabel : String?
var accessibilityValue : String?
var accessibilityHint : String?
var accessibilityTraits : UIAccessibilityTraits
struct UIAccessibilityTraits
var accessibilityHeaderElements : [Any]?
var accessibilityAttributedHint : NSAttributedString?
var accessibilityAttributedLabel : NSAttributedString?
var accessibilityLanguage : String?
var accessibilityTextualContext : UIAccessibilityTextualContext?
var accessibilityUserInputLabels : [String]!
var accessibilityAttributedUserInputLabels : [NSAttributedString]!
var accessibilityAttributedValue : NSAttributedString?
var accessibilityCustomRotors : [UIAccessibilityCustomRotor]?
var accessibilityElementsHidden : Bool
var accessibilityRespondsToUserInteraction : Bool
var accessibilityViewIsModal : Bool
var shouldGroupAccessibilityChildren : Bool
struct UIAccessibility.Notification
static func post(notification: UIAccessibility.Notification, argument: Any?)
var accessibilityActivationPoint : CGPoint
var accessibilityFocusedUIElement : Any?
var accessibilityFrame : CGRect
func accessibilityHitTest (NSPoint) -> Any?
var accessibilityNavigationStyle : UIAccessibilityNavigationStyle
enum UIAccessibilityNavigationStyle
var accessibilityPath : UIBezierPath?
static func zoomFocusChanged (zoomType : UIAccessibility.ZoomType, toFrame : CGRect, in: UIView)
enum UIAccessibility.ZoomType
static var assistiveTouch : UIGuidedAccessAccessibilityFeature
struct UIAccessibility