Update TSpan if content changes

This commit is contained in:
Horcrux
2017-01-20 18:23:33 +08:00
parent 5075a0f67d
commit 738b9a1536
+9
View File
@@ -18,6 +18,15 @@
CGPathRef _cache;
}
- (void)setContent:(NSString *)content
{
if (content == _content) {
return;
}
[self invalidate];
_content = content;
}
- (void)renderLayerTo:(CGContextRef)context
{
if (self.content) {