Using in the following way:-
Implementing Extension String
extension NSMutableAttributedString { enum scripting : Int { case aSub = -1 case aSuper = 1 }