         /// The attachment attribute.
         public var attachment: NSTextAttachment? {
             get {
-                return dictionary[NSAttachmentAttributeName] as? NSTextAttachment
+                return dictionary[.attachment] as? NSTextAttachment
             }
             set {
-                dictionary[NSAttachmentAttributeName] = newValue
+                dictionary[.attachment] = newValue
             }
         }
 

    /// The underline color attribute.
    open var underlineColor: Color? {
        get {
            return dictionary[NSUnderlineColorAttributeName] as? Color
        }
        set {
            dictionary[NSUnderlineColorAttributeName] = newValue
        }
    }


    /// The foreground color attribute.
    open var foregroundColor: Color? {
        get {
            return dictionary[.foregroundColor] as? Color
        }
        set {
            dictionary[.foregroundColor] = newValue
        }
    }

