allowedWritingToolsResultOptions has no effect in iOS 18.1 Writing Tools

The UITextView.allowedWritingToolsResultOptions has no effect to how "Writing Tools" feature works. When it is set to empty, it still offer all options in the Writing Tools popup dialog. The result is that it is not possible to limit output results to eg. only plain text, or disable tables in output.

let textView = UITextView()
textView.isEditable = true
textView.writingToolsBehavior = .complete
textView.allowedWritingToolsResultOptions = []

resulting Writing Tools has all options available. I Tested with TextKit1 and TextKit 2 setup.

tested on iPadOS 18.1 beta (22B5069a) Report: FB15429824

Answered by Frameworks Engineer in 807964022

Hi! Here empty means “automatic”.

If you only want plain text, you can specify [.plainText].

The option won’t affect what tools are shown in the panel. If only affects what kind of attributed string we may send back to your text view.

Accepted Answer

Hi! Here empty means “automatic”.

If you only want plain text, you can specify [.plainText].

The option won’t affect what tools are shown in the panel. If only affects what kind of attributed string we may send back to your text view.

in that case what is the meaning of .list and .table options it does not affect the allowed result? It's not clear to me.

allowedWritingToolsResultOptions has no effect in iOS 18.1 Writing Tools
 
 
Q