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

#import "NSMutableParagraphStyle+DDCategory.h"

@implementation NSMutableParagraphStyle (DDCategory)
+ (NSMutableParagraphStyle *)dd_initWithLineSpacing:(CGFloat)lineSpace paragraphSpacing:(CGFloat)paragraphSpacing alignment:(NSTextAlignment)alignment firstLineHeadIndent:(CGFloat)firstLineHeadIndent{
    NSMutableParagraphStyle *paragraph = [[NSMutableParagraphStyle alloc] init];
    paragraph.lineSpacing = lineSpace;
    paragraph.paragraphSpacing = paragraphSpacing;
    paragraph.alignment = alignment;
    paragraph.firstLineHeadIndent = firstLineHeadIndent;
    return paragraph;
}
@end
