Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix rangeOfTextLists method to avoid accidental call by UIKit #1290

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

amja
Copy link

@amja amja commented Jan 21, 2025

As described in #1289, this NSAttributedString category method is unexpectedly being called by internal TextKit logic, perhaps checking for method availability rather than platform. Since categories cannot be un-defined by consumers of DTCoreText, there is no workaround for this situation.

This PR adds a prefix to avoid this naming collision. Ideally, we could define the old name as deprecated/renamed to indicate to the consumer of the library that this change has been made, but that is not possible as any inclusion of a method with this name will cause the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant