Skip to content

Fix: Support Clickable Hyperlinks in Labels with TextType HTML (iOS & Android) 2#28331

Draft
bhavanesh2001 wants to merge 4 commits intodotnet:mainfrom
bhavanesh2001:support_clickable_hyperlinks
Draft

Fix: Support Clickable Hyperlinks in Labels with TextType HTML (iOS & Android) 2#28331
bhavanesh2001 wants to merge 4 commits intodotnet:mainfrom
bhavanesh2001:support_clickable_hyperlinks

Conversation

@bhavanesh2001
Copy link
Copy Markdown
Contributor

Description of Change

This PR is an attempt to fix an issue where hyperlinks in Labels with TextType="Html" were not clickable on iOS and Android.

iOS

  • Added UITapGestureRecognizer to handle hyperlink taps in UILabel.
  • Prevented duplicate gesture attachments when updating text.
Screen.Recording_iOS.mov
Screen.Recording_Maccatalyst.mov

Android

  • Ensured TextView.MovementMethod is set to enable clickable links.
Screen.Recording_android.mov

Issues Fixed

Fixes #21328

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@bhavanesh2001
Copy link
Copy Markdown
Contributor Author

@jsuarezruiz please add relevant labels

@bhavanesh2001 bhavanesh2001 requested a review from MartyIX March 12, 2025 11:33
@bhavanesh2001
Copy link
Copy Markdown
Contributor Author

Since we are adding a UITapgesture in iOS, I added a device test to check for memory leaks.

@jsuarezruiz
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@bhavanesh2001 bhavanesh2001 force-pushed the support_clickable_hyperlinks branch from 457e2a2 to 92db550 Compare May 8, 2025 10:36
@bhavanesh2001 bhavanesh2001 marked this pull request as draft May 10, 2025 18:16
@MartyIX MartyIX removed their request for review November 11, 2025 16:18
@kubaflo kubaflo added the stale Indicates a stale issue/pr and will be closed soon label Mar 8, 2026
@kubaflo
Copy link
Copy Markdown
Contributor

kubaflo commented Mar 8, 2026

Could you resolve conflicts and verify if this is still needed? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-label Label, Span community ✨ Community Contribution platform/android stale Indicates a stale issue/pr and will be closed soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Link in Label with TextType HTML is not clickable

4 participants