From 74297944e9fc5ab6f00fe2efb4eb9ad2fd6ae8f1 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 24 Nov 2019 14:36:17 -0600 Subject: [PATCH] Clear current article so that wrapping occurs --- iOS/SceneCoordinator.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 9bfc22697..9df775bd4 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -1370,7 +1370,7 @@ private extension SceneCoordinator { let nextIndexPath = IndexPath(row: j, section: i) guard let node = nodeFor(nextIndexPath), let unreadCountProvider = node.representedObject as? UnreadCountProvider else { assertionFailure() - completion(true) + completion(false) return } @@ -1380,6 +1380,7 @@ private extension SceneCoordinator { if unreadCountProvider.unreadCount > 0 { selectFeed(nextIndexPath, animated: false, deselectArticle: false) { + self.currentArticle = nil completion(true) } return