//
//  NSAttributedString+DDCategory.m
//  DDCategoryKit_Private
//  Created by DDIsFriend on 2022/7/29.

#import "NSAttributedString+DDCategory.h"

@implementation NSAttributedString (DDCategory)

- (NSAttributedString *)dd_initWithString:(NSString *)string attributes:(nullable NSDictionary<NSAttributedStringKey, id> *)attrs{
    return [[NSAttributedString alloc] initWithString:string attributes:attrs];
}

- (NSMutableAttributedString *)dd_mutable
{
    return [[NSMutableAttributedString alloc] initWithAttributedString:self];
}

+ (NSAttributedString *)dd_attributedStringWithAttachment:(NSTextAttachment *)textAttachment{
    return [NSAttributedString attributedStringWithAttachment:textAttachment];
    
}
@end
