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 :

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

Popular posts from this blog

How to get thumbnail from video URL in Swift 5

Missing system image Android Studio solution

How to customize your date according to Timezone in Swift 5