How to disable accessibility voiceover on NSTableView for Mac OS using Swift

273 Views Asked by At

Tried the following so far and it doesn't work:

cellView?.setAccessibilityElement(false)
cellView?.setAccessibilityEnabled(false)

Both the above are getting called within tableView(_:viewFor:row:)

Any help would be greatly appreciated.

1

There are 1 best solutions below

0
Omer Faruk Ozturk On

Set accessibilityElement as false for all subviews in TableViewCell, not only cell itself. (label, button..)