CustomAction
public struct CustomAction : Equatable, Hashable
Used to provide additional functionality to assistive technologies beyond your accessible UI.
-
Declaration
Swift
public typealias OnActivation = () -> Bool -
A localized name that discribes the action.
Declaration
Swift
public var name: String -
An image representing the action to be shown with some assistive technologies such as Switch Control.
Declaration
Swift
public var image: UIImage? -
A Callback for when the action is activated. This should return a
boolindicating success or failure of the action.Declaration
Swift
public var onActivation: OnActivation -
Declaration
Swift
public init(name: String, image: UIImage? = nil, onActivation: @escaping OnActivation) -
Declaration
Swift
public static func == (lhs: `Self`, rhs: `Self`) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher)
View on GitHub
CustomAction Structure Reference