         // Dispose of any resources that can be recreated.
     }
 
-
+    //MARK: LinkLabelInteractionDelegate
+    
+    func linkLabelDidSelectLink(linkLabel linkLabel: LinkLabel, url: NSURL) {
+        print("did select link: \(url)")
+    }
 }
 

        attributedString.addAttribute(NSForegroundColorAttributeName, value: UIColor.blackColor(), range: fullRange)
        attributedString.addAttribute(NSLinkAttributeName, value: NSURL(string: "https://google.com")!, range: linkRange)
        
        let label = LinkLabel()
        label.numberOfLines = 0 // Infinite lines
        label.attributedText = attributedString
        label.frame = CGRect(x: 20, y: 20, width: 280, height: 400)
        self.view.addSubview(label)
    }


import UIKit

class ViewController: UIViewController, LinkLabelInteractionDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()
