Wednesday, January 16, 2019

Create Colored Clickable Link Between text in UIlabel Swift 4.2

Happy New 2019 although it's too late but i finally get a topic about what I want to post today. I have a solution for you guys who wants to make clickable link check it out. See this image when you click the link that has purple color you will redirect to external browser. I'll share the code, dont' worry :D



Code :

First Create CustomLabel.


Second Implementation, you can put it on ViewDidLoad().


Source : https://stackoverflow.com/a/42240972/2899321

If you have any questions, please feel free to ask :D.

No comments:

Post a Comment