Ranchero-Software / NetNewsWire

RSS reader for macOS and iOS.
https://netnewswire.com/
MIT License
8.43k stars 535 forks source link

UITableView laid out while not in hierarchy #3910

Open brentsimmons opened 1 year ago

brentsimmons commented 1 year ago

Just caught this in console:

2023-03-12 15:32:57.160381-0700 NetNewsWire[23078:800895] [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: 0x12402d600; frame = (0 0; 390 844); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x600000fcfe40>; backgroundColor = <UIDynamicSystemColor: 0x60000140fb80; name = tableBackgroundColor>; layer = <CALayer: 0x6000001f8000>; contentOffset: {0, 221.66666666666666}; contentSize: {390, 61235.333333333358}; adjustedContentInset: {91, 0, 83, 0}; dataSource: <TtGC11NetNewsWire24MasterTimelineDataSourceSiV8Articles7Article: 0x60000037f080>>

brentsimmons commented 1 year ago

On iPhone. Article view was displayed. Was tapping next unread to go through articles.

brentsimmons commented 3 months ago

Reopening because this needs additional verification.