mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-29 21:25:00 +00:00
Update TSpan if content changes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user