Contents

accessibilityBrailleMapRenderer

A handler that the system calls to let you update the Braille map.

Declaration

optional var accessibilityBrailleMapRenderer: (AXBrailleMap) -> Void { get set }

Discussion

When the accessibility element that implements this property has focus, the system calls this handler to let you update the braille map manually.

Use this handler to modify the braille map that the system passes in with the new data you want to display. The following code shows a basic implementation of accessibilityBrailleMapRenderer:

self.accessibilityBrailleMapRenderer = { map in

    // Get the data to render to the braille display.
    guard let image = self.myImageView.image?.cgImage else { return }

    // Update the braille map with the data.
    map.present(image)
}