                 
                 if match.resultType == .link {
                     if let matchString = realURL as? String {
-                        linkResults.append(LinkResult(detectionType: LinkDetectionType.URL, range: matchRange, text: matchString, textLink: nil))
+                        linkResults.append(LinkResult(detectionType: .url, range: matchRange, text: matchString, textLink: nil))
                     }
                 }
             }

    }
    
    // linkDetectionTypes
    public var linkDetectionTypes: LinkDetectionType = [.UserHandle, .Hashtag, .URL, .TextLink] {
        didSet {
            setContextLabelDataWithText(nil)
        }

            linkResults += linkResultsForTextLinks(textLinks)
        }
        
        if linkDetectionTypes.contains(.userHandle) {
            linkResults += linkResultsForUserHandles(inString: attributedString.string)
        }

        if linkDetectionTypes.contains(.hashtag) {
            linkResults += linkResultsForHashtags(inString: attributedString.string)
        }

        if linkDetectionTypes.contains(.url) {
            linkResults += linkResultsForURLs(inAttributedString: attributedString)
        }

