AccessibilityElement
public struct AccessibilityElement : Element
-
Declaration
Swift
public var label: String?
-
Declaration
Swift
public var value: String?
-
Declaration
Swift
public var hint: String?
-
Declaration
Swift
public var identifier: String?
-
Declaration
Swift
public var traits: Set<Trait>
-
Declaration
Swift
public var accessibilityFrameSize: CGSize?
-
Declaration
Swift
public var accessibilityFrameCornerStyle: CornerStyle
-
Declaration
Swift
public var wrappedElement: Element
-
Used to provide custom behaviour when activated by voiceover. This will override the default behavior of issuing a tap event at the accessibility activation point. See Accessibility Activate Documentation for further information.
Declaration
Swift
public var accessibilityActivate: (() -> Bool)?
-
An array containing one or more
CustomAction
s, defining additional supported actions. Assistive technologies, such as VoiceOver, will display your custom actions to the user at appropriate times.Declaration
Swift
public var customActions: [CustomAction]
-
An array containing one or more
CustomContent
s, defining additional content associated with the element. Assistive technologies, such as VoiceOver, will announce your custom content to the user at appropriate times.Declaration
Swift
public var customContent: [CustomContent]
-
init(label:
value: traits: hint: identifier: accessibilityFrameSize: accessibilityFrameCornerStyle: customActions: customContent: wrapping: configure: ) Declaration
Swift
public init( label: String?, value: String?, traits: Set<AccessibilityElement.Trait>, hint: String? = nil, identifier: String? = nil, accessibilityFrameSize: CGSize? = nil, accessibilityFrameCornerStyle: CornerStyle = .square, customActions: [AccessibilityElement.CustomAction] = [], customContent: [AccessibilityElement.CustomContent] = [], wrapping element: Element, configure: (inout Self) -> Void = { _ in } )
-
Declaration
Swift
public var content: ElementContent { get }
-
Declaration
Swift
public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription?
-
Declaration
-
Used to provide additional functionality to assistive technologies beyond your accessible UI.
See moreDeclaration
Swift
public struct CustomAction : Equatable, Hashable
-
Declaration
Swift
public struct CustomContent