textField(_:textView:candidates:forSelectedRange:)
Allows customizing the candidate list queried from NSSpellChecker. This method returns array of text objects to include in a text selection.
Declaration
@MainActor optional func textField(_ textField: NSTextField, textView: NSTextView, candidates: [NSTextCheckingResult], forSelectedRange selectedRange: NSRange) -> [NSTextCheckingResult]