mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
849 B
Objective-C
25 lines
849 B
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
/**
|
|
*
|
|
* This class enables us to set custom fonts for labels in the xib without making an outlet and setting it manually
|
|
* Also contains a property for localization purposes
|
|
*
|
|
*/
|
|
|
|
#define CUSTOM_FONT_LABELS \
|
|
LocalizableCustomFontLabel(HelveticaNeueLTStdBoldLabel, HelveticaNeueLTStd-Bold) \
|
|
LocalizableCustomFontLabel(HelveticaNeueLTStdLightLabel, HelveticaNeueLTStd-Lt) \
|
|
LocalizableCustomFontLabel(HelveticaNeueLTStdMedLabel, HelveticaNeueLTStd-Md) \
|
|
LocalizableCustomFontLabel(HelveticaNeueLTStdThinLabel, HelveticaNeueLTStd-Th) \
|
|
|
|
@interface LocalizableCustomFontLabel : UILabel
|
|
|
|
@property (nonatomic, strong) NSString *localizationKey;
|
|
|
|
@end
|
|
|
|
#define LocalizableCustomFontLabel(CLASS_NAME, FONT_NAME) @interface CLASS_NAME : LocalizableCustomFontLabel {} @end
|
|
CUSTOM_FONT_LABELS
|
|
#undef LocalizableCustomFontLabel
|