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

#import "UILabel+DDCategory.h"

@implementation UILabel (DDCategory)
+ (instancetype)dd_initWithText:(NSString *)text font:(UIFont *)font textColor:(UIColor *)textColor{
    UILabel *label = [[UILabel alloc] init];
    label.text = text;
    label.font = font;
    label.textColor = textColor;
    return label;
}

+ (instancetype)dd_initWithText:(NSString *)text font:(UIFont *)font textColor:(UIColor *)textColor backgroundColor:(UIColor *)backgroundColor{
    UILabel *label = [[UILabel alloc] init];
    label.text = text;
    label.font = font;
    label.textColor = textColor;
    label.backgroundColor = backgroundColor;
    return label;
}

+ (instancetype)dd_initWithAttributedText:(NSAttributedString *)attributedText{
    UILabel *label = [[UILabel alloc] init];
    label.attributedText = attributedText;
    return label;
}
@end
