     }
     
     // linkDetectionTypes
-    public var linkDetectionTypes: LinkDetectionType = [.UserHandle, .Hashtag, .URL, .TextLink] {
+    public var linkDetectionTypes: [LinkDetectionType] = [.userHandle, .hashtag, .url, .textLink] {
         didSet {
             setContextLabelDataWithText(nil)
         }

        var linkResults = [LinkResult]()
        
        for textLink in textLinks {
            let linkType = LinkDetectionType.TextLink
            let matchString = textLink.text
            
            let range = textLink.range ?? NSMakeRange(0, text.characters.count)


open class ContextLabel: UILabel, NSLayoutManagerDelegate {
    
    public enum LinkDetectionType {
        case none
        case userHandle
        case hashtag
        case url
        case textLink
    }
  
    let hashtagRegex = "(?<=\\s|^)#(\\w*[A-Za-z&_-]+\\w*)"
