Skip to content

Add support for embedded NSLinks for .url DetectorType#815

Merged
SD10 merged 2 commits intoMessageKit:masterfrom
monzo:master
Aug 15, 2018
Merged

Add support for embedded NSLinks for .url DetectorType#815
SD10 merged 2 commits intoMessageKit:masterfrom
monzo:master

Conversation

@jnic
Copy link
Member

@jnic jnic commented Aug 14, 2018

What does this implement/fix? Explain your changes.

The existing data detector types are manually parsed via NSDataDetector, which means we lose support for embedded NSLinks in attributed strings.

This change adds support for these, enabled when DetectorType.url is set in the delegate for consistency with existing data detectors. These are supported in addition to the current behaviour 👻

Does this close any currently open issues?

#609

Where has this been tested?

Devices/Simulators: iPhone X, iPhone SE

iOS Version: 11

Swift Version: 4.1

MessageKit Version: HEAD of master

@SD10 SD10 changed the base branch from master to development August 15, 2018 05:20
@SD10 SD10 changed the base branch from development to master August 15, 2018 05:20
@SD10
Copy link
Member

SD10 commented Aug 15, 2018

I'll add the CHANGELOG entry when I do the release. Thanks for this 👍

@SD10 SD10 merged commit 381b4c1 into MessageKit:master Aug 15, 2018
@SD10
Copy link
Member

SD10 commented Aug 15, 2018

Thank you for contributing to MessageKit! I've invited you to join the MessageKit GitHub organization - no pressure to accept! If you'd like more information on what that means, check out our contributing guidelines and join the MessageKit Slack channel. Feel free to reach out if you have any questions! 😃

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.

2 participants