             return autocorrectionType
         }
         set {
-            autocorrectionType = m_autoCorrectionType
+            autocorrectionType = newValue
+        }
+    }
+
+    public var m_typingAttributes: [String : AnyObject]? {
+        get {
+            return typingAttributes
+        }
+        set {
+            typingAttributes = newValue
         }
     }
 }

        let mutableEncodedString = NSMutableAttributedString(attributedString: user.encodedAttributedString())
        mutableEncodedString.addAttributes([NSFontAttributeName : font, NSForegroundColorAttributeName : MentionColor], range: NSRange(location: 0, length: mutableEncodedString.length))
        text.replaceCharactersInRange(mentionRange!, withAttributedString: mutableEncodedString)
        setAttributedText(text, cursorLocation: mentionRange!.location + mutableEncodedString.length)
        delegate?.userDidComposeMention?()
    }



public protocol ComposableAttributedTextContainingView: AttributedTextContainingView, UITextInputTraits, UITextInput {
    var m_autoCorrectionType: UITextAutocorrectionType { get set }
    var m_typingAttributes: [String : AnyObject]? { get set }
}

public var MentionCharacter: Character = "@"
