You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
936 B
56 lines
936 B
#import "RNSVGTopAlignedLabel.h"
|
|
|
|
@implementation RNSVGTopAlignedLabel
|
|
|
|
- (NSAttributedString *)attributedText
|
|
{
|
|
return self.attributedString;
|
|
}
|
|
|
|
- (NSLineBreakMode)lineBreakMode
|
|
{
|
|
return self.textContainer.lineBreakMode;
|
|
}
|
|
|
|
- (NSInteger)numberOfLines
|
|
{
|
|
return self.textContainer.maximumNumberOfLines;
|
|
}
|
|
|
|
- (NSString *)text
|
|
{
|
|
return self.string;
|
|
}
|
|
|
|
- (NSTextAlignment)textAlignment
|
|
{
|
|
return self.alignment;
|
|
}
|
|
|
|
- (void)setAttributedText:(NSAttributedString *)attributedString
|
|
{
|
|
[self.textStorage setAttributedString:attributedString];
|
|
}
|
|
|
|
- (void)setLineBreakMode:(NSLineBreakMode)lineBreakMode
|
|
{
|
|
self.textContainer.lineBreakMode = lineBreakMode;
|
|
}
|
|
|
|
- (void)setNumberOfLines:(NSInteger)numberOfLines
|
|
{
|
|
self.textContainer.maximumNumberOfLines = numberOfLines;
|
|
}
|
|
|
|
- (void)setText:(NSString *)text
|
|
{
|
|
self.string = text;
|
|
}
|
|
|
|
- (void)setTextAlignment:(NSTextAlignment)textAlignment
|
|
{
|
|
self.alignment = textAlignment;
|
|
}
|
|
|
|
@end
|