another.im-ios/Monal/Classes/MLAttributedLabel.m

32 lines
644 B
Mathematica
Raw Normal View History

2024-11-18 14:53:52 +00:00
//
// MLAttributedLabel.m
// Monal
//
// Created by Friedrich Altheide on 01.04.20.
// Copyright © 2020 Monal.im. All rights reserved.
//
#import "MLAttributedLabel.h"
@implementation MLAttributedLabel
-(void) setText:(NSString*) text {
self.localAttributedText = nil;
[super setText:text];
}
-(void) setAttributedText:(NSAttributedString*) attributedText {
[super setAttributedText:attributedText];
self.localAttributedText = attributedText;
}
-(NSAttributedString *) attributedText {
return [super attributedText];
}
-(NSAttributedString *) originalAttributedText {
return self.localAttributedText;
}
@end