Skip to content

[introspection] Evaluate using UITextChecker.RequestGrammarChecking in ApiTypoTest #25895

Description

@dalexsoto

Summary

Investigate whether UITextChecker.RequestGrammarChecking would improve the introspection typo test.

Context

In PR #25889 ([UIKit] Bind new Xcode 27 (iOS 27) UIKit APIs), a review question came up about whether the new UITextChecker.RequestGrammarChecking API could provide any benefit to tests/introspection/ApiTypoTest.cs.

The current typo test collects words from public API names and checks each word individually with the spell checker:

  • macOS: SpellChecker.CheckSpelling
  • UIKit platforms: UITextChecker.RangeOfMisspelledWordInString

Task

Evaluate whether UITextChecker.RequestGrammarChecking would improve typo detection in ApiTypoTest, and if so, how to integrate it without regressing the current test behavior.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue or pull request is an enhancementtestsAnything related to tests

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions