-
Notifications
You must be signed in to change notification settings - Fork 1
/
UIButton+BInspectable.h
38 lines (32 loc) · 1.32 KB
/
UIButton+BInspectable.h
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
//
// UIButton+BInspectable.h
// OCIBInspectableDm
//
// Created by zz on 2021/8/18.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/**
按照这个顺序,最后设置的(size > 0)生效,
UIKIT_EXTERN const UIFontWeight UIFontWeightUltraLight;
UIKIT_EXTERN const UIFontWeight UIFontWeightThin;
UIKIT_EXTERN const UIFontWeight UIFontWeightLight;
UIKIT_EXTERN const UIFontWeight UIFontWeightRegular;
UIKIT_EXTERN const UIFontWeight UIFontWeightMedium;
UIKIT_EXTERN const UIFontWeight UIFontWeightSemibold;
UIKIT_EXTERN const UIFontWeight UIFontWeightBold;
UIKIT_EXTERN const UIFontWeight UIFontWeightHeavy;
UIKIT_EXTERN const UIFontWeight UIFontWeightBlack;
*/
@interface UIButton (BInspectable)
@property (nonatomic, assign) IBInspectable CGFloat fixUltraLightFont;
@property (nonatomic, assign) IBInspectable CGFloat fixThinFont;
@property (nonatomic, assign) IBInspectable CGFloat fixLightFont;
@property (nonatomic, assign) IBInspectable CGFloat fixRegularFont;
@property (nonatomic, assign) IBInspectable CGFloat fixMediumFont;
@property (nonatomic, assign) IBInspectable CGFloat fixSemiboldFont;
@property (nonatomic, assign) IBInspectable CGFloat fixBoldFont;
@property (nonatomic, assign) IBInspectable CGFloat fixHeavyFont;
@property (nonatomic, assign) IBInspectable CGFloat fixBlackFont;
@end
NS_ASSUME_NONNULL_END