iOS:snapshot view add control logic

This commit is contained in:
pengfei.zhou
2021-07-14 15:23:33 +08:00
committed by osborn
parent 4c7eb36565
commit 49d3426d85
5 changed files with 143 additions and 7 deletions

View File

@@ -84,6 +84,9 @@ - (DoricAsyncResult *)callEntity:(NSString *)method withArgumentsArray:(NSArray
}
- (void)init:(NSString *)initData {
if ([DoricRegistry isEnableRenderSnapshot]) {
[self callEntity:@"__enableSnapshot__" withArgumentsArray:@[]];
}
self.extra = initData;
if (initData) {
[self callEntity:DORIC_ENTITY_INIT withArgumentsArray:@[initData]];