         contentMode = .Redraw
         
         addGestureRecognizer(UITapGestureRecognizer(target: self, action: Selector("handleTap:")))
+        addGestureRecognizer(UILongPressGestureRecognizer(target: self, action: Selector("handleLongPress:")))
     }
     
     override init(frame: CGRect) {

        }
    }
    
    // MARK: Private
    
    private var layoutManager: NSLayoutManager!

    }
    
    @objc private func handleTap(gestureRecognizer: UIGestureRecognizer) {
        if let linkRange = tappedLinkRange {
            if let handler = linkTapHandler {
                handler(linkRange.URL)
            } else {
                UIApplication.sharedApplication().openURL(linkRange.URL)
            }
        }
    }
    
    @objc private func handleLongPress(gestureRecognizer: UIGestureRecognizer) {
        if let linkRange = tappedLinkRange {
            if let handler = linkLongPressHandler {
                handler(linkRange.URL)
            }
        }
    }
}

