nalexn / clean-architecture-swiftui

SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.
MIT License
5.56k stars 671 forks source link

app crash after select some countires #79

Open stoneyanjun opened 2 years ago

stoneyanjun commented 2 years ago
Screen Shot 2022-06-02 at 17 28 48

2022-06-02 17:14:07.367568+0800 CountriesSwiftUI[18270:247217] [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: <_TtC7SwiftUIP33_BFB370BA5F1BADDC9D83021565761A4925UpdateCoalescingTableView: 0x7f95678e8000; baseClass = UITableView; frame = (0 0; 414 896); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x600001c47c90>; layer = <CALayer: 0x6000012e78a0>; contentOffset: {0, -140}; contentSize: {414, 847.5}; adjustedContentInset: {140, 0, 34, 0}; dataSource: <_TtGC7SwiftUIP13$7fff2c69da4419ListCoreCoordinatorGVS_20SystemListDataSourceOs5Never_GOS_19SelectionManagerBoxS2___: 0x7f9565e4d180>> (lldb)

Simulator Screen Shot - Xr 13 3 - 2022-06-02 at 17 28 55 ![Uploading Screen Shot 2022-06-02 at 17.28.48.png…]()

stoneyanjun commented 2 years ago

Xcode 13, test on simulator Xr, iOS 13.3