Skip to content

Commit

Permalink
chore(ios): add debug property for shadowView
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed Aug 1, 2024
1 parent e1207fe commit ab4ddf7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios/sdk/component/view/UIView+Hippy.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/

#import <UIKit/UIKit.h>

#import "HippyDefines.h"
#import "HippyComponent.h"
#import "HippyViewEventProtocol.h"

Expand Down
17 changes: 16 additions & 1 deletion ios/sdk/module/uimanager/HippyUIManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,22 @@ - (void)_manageChildren:(NSNumber *)containerTag
return;
}
}
[uiManager createViewByComponentData:componentData hippyVirtualNode:node hippyTag:hippyTag properties:newProps viewName:viewName];

#if HIPPY_DEV
UIView *view = [uiManager createViewByComponentData:componentData
hippyVirtualNode:node
hippyTag:hippyTag
properties:newProps
viewName:viewName];

view._DEBUG_hippyShadowView = shadowView;
#else
UIView *view = [uiManager createViewByComponentData:componentData
hippyVirtualNode:node
hippyTag:hippyTag
properties:newProps
viewName:viewName];
#endif /* HIPPY_DEV */
}];

[self addVirtulNodeBlock:^(HippyUIManager *uiManager, __unused NSDictionary<NSNumber *,HippyVirtualNode *> *virtualNodeRegistry) {
Expand Down

0 comments on commit ab4ddf7

Please sign in to comment.