zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
//  MSSAutoresizeLabelFlowConfig.m
//  MSSAutoresizeLabelFlow
//
//  Created by Mrss on 15/12/26.
//  Copyright © 2015年 expai. All rights reserved.
//
 
#import "MSSAutoresizeLabelFlowConfig.h"
#define JKColor(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
@implementation MSSAutoresizeLabelFlowConfig
 
+ (MSSAutoresizeLabelFlowConfig *)shareConfig {
    static MSSAutoresizeLabelFlowConfig *config;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        config = [[self alloc]init];
    });
    return config;
}
 
// default
 
- (instancetype)init {
    self = [super init];
    if (self) {
        self.contentInsets = UIEdgeInsetsMake(0, 15, 0, 15);
        self.lineSpace = 12;
        self.itemHeight = 32;
        self.itemSpace = 12;
        self.itemCornerRaius = 3;
//        self.itemColor = [UIColor whiteColor];
        self.itemColor = JKColor(244, 245, 246, 1);
        self.textMargin = 20;
//        self.textColor = [UIColor darkTextColor];
        self.textColor = JKColor(97, 111, 125, 1);
        self.textFont = [UIFont fontWithName:@"PingFangSC-Medium" size:12];
//        self.backgroundColor = [UIColor colorWithRed:0.85 green:0.85 blue:0.85 alpha:1];
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}
 
@end