mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 17:29:23 +00:00
Fix iPhone crash on cross-feed Next Unread by waiting for in-flight nav transition before pushing article.
This commit is contained in:
1 parent
474d881b31
commit
2ccd325fec
1 file changed
+12
-1
@@ -1176,7 +1176,18 @@ struct SidebarItemNode: Hashable, Sendable {
|
||||
}
|
||||
|
||||
selectNextUnreadFeed {
|
||||
self.selectNextUnreadArticleInTimeline()
|
||||
// The supplementary push from selectSidebarItem may still be animating when
|
||||
// this completion fires — the async data fetch can outrun the push animation
|
||||
// in compact mode. Wait for the in-flight transition before pushing the
|
||||
// article view controller, or UIKit aborts with NSInternalInconsistencyException
|
||||
// from -[UINavigationController pushViewController:transition:forceImmediate:].
|
||||
if let coordinator = self.mainTimelineViewController?.navigationController?.transitionCoordinator {
|
||||
coordinator.animate(alongsideTransition: nil) { _ in
|
||||
self.selectNextUnreadArticleInTimeline()
|
||||
}
|
||||
} else {
|
||||
self.selectNextUnreadArticleInTimeline()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user