Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running snapshot on separate module framework #735

Open
WHuangz88 opened this issue Jun 5, 2023 · 1 comment
Open

Running snapshot on separate module framework #735

WHuangz88 opened this issue Jun 5, 2023 · 1 comment

Comments

@WHuangz88
Copy link

Do anyone encounter tableview cannot render its view due to running the snapshot not in host application?

@WHuangz88
Copy link
Author

WHuangz88 commented Jun 5, 2023

I found out that each time I run the snapshot not in host application, the tableview will log some kind of warning like this

[TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x7f77ce832200; frame = (-196.5 -360; 393 720); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x60000265bcc0>; backgroundColor = <UIDynamicProviderColor: 0x6000028d0a40; provider = <NSMallocBlock: 0x6000026e7cf0>>; layer = <CALayer: 0x600002897b00>; contentOffset: {0, 0}; contentSize: {393, 0}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <RxCocoa.RxTableViewDataSourceProxy: 0x600000ca7780>>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant