ios - How to hide the Undo and Redo bar button items in the Keyboard's Shortcut bar? -


i hide undo , redo bar button items in keyboard's shortcut bar (available in ios 9+). read here can hide them using code. unfortunately hides cut , copy items rather prefer keep.

let item : uitextinputassistantitem = yourtextview.inputassistantitem item.leadingbarbuttongroups = [] // hides undo, redo , cut, copy , paste