-
The text that should be displayed.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) NSString *_Nonnull text;Swift
var text: String { get set } -
The name of the font the text should be displayed in.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSString *font;Swift
var font: String? { get set } -
Hex value string of the color that the text should be displayed in.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) NSString *colorString;Swift
var colorString: String? { get set } -
The transform rotation angle the text should be displayed at.
Declaration
Objective-C
@property (readonly, nonatomic) long angle;Swift
var angle: Int { get } -
The font size the text should be displayed at.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) long size;Swift
var size: Int { get set } -
Initializer to convert an NSDictionary to an
NoteMedia.Declaration
Objective-C
- (nonnull instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary;Swift
init(dictionary: [AnyHashable : Any])Parameters
dictionary- dictionary form of an
NoteMedia.Return Value
Instance of
NoteMedia. -
Initializer to create an
NoteMedia.Declaration
Objective-C
- (nonnull instancetype)initWithText:(nonnull NSString *)text font:(nullable NSString *)font colorString:(nullable NSString *)colorString angle:(long)angle size:(long)size;Swift
init(text: String, font: String?, colorString: String?, angle: Int, size: Int)Parameters
text- The text of the
NoteMedia.font- The name of the font to display the text in.
colorString- Hex value string of the color the text should be displayed in.
angle- The rotation angle to display the text at.
size- The font size the text should be displayed at.
Return Value
Instance of
NoteMedia.
View on GitHub
NoteMedia Class Reference