YMALabelAppearance
Objective-C
@interface YMALabelAppearance : NSObject <NSCopying, NSMutableCopying>
Swift
class YMALabelAppearance : NSObject, NSCopying, NSMutableCopying
A class with fixed settings for the standard text appearance: font name, size, and color. If you want to edit the standard appearance settings, use the YMAMutableLabelAppearance
class.
Creates an object of the YMALabelAppearance
class with the text settings.
Declaration
Objective-C
+ (nonnull instancetype)appearanceWithFont:(nonnull UIFont *)font
textColor:(nonnull UIColor *)textColor;
Swift
convenience init(font: Any!, textColor: Any!)
Parameters
font | Font settings: name and size. |
textColor | Text color. |
font | Font settings: name and size. |
textColor | Text color. |
Return Value
The configured text appearance (the specified font and color).