From f391eb166952a0545f3dc7f20ab5fd6484a80c49 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 2 Nov 2020 14:53:00 -0600 Subject: [PATCH] Allow users to drop onto expanded folders. Fixes #2022 --- iOS/MasterFeed/MasterFeedViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iOS/MasterFeed/MasterFeedViewController.swift b/iOS/MasterFeed/MasterFeedViewController.swift index 775968271..6630bea81 100644 --- a/iOS/MasterFeed/MasterFeedViewController.swift +++ b/iOS/MasterFeed/MasterFeedViewController.swift @@ -337,8 +337,8 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner { return proposedDestinationIndexPath } - // If this is a folder and isn't expanded or doesn't have any entries, let the users drop on it - if destNode.representedObject is Folder && (destNode.numberOfChildNodes == 0 || !coordinator.isExpanded(destNode)) { + // If this is a folder, let the users drop on it + if destNode.representedObject is Folder { return proposedDestinationIndexPath }