From 7b0261b4010b8ca579dd72059256817f7d5078ad Mon Sep 17 00:00:00 2001 From: Martin Hartl Date: Thu, 2 Jan 2020 08:16:29 +0100 Subject: [PATCH] Switch order of context menu items to show delete at the bottom --- iOS/MasterFeed/MasterFeedViewController.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iOS/MasterFeed/MasterFeedViewController.swift b/iOS/MasterFeed/MasterFeedViewController.swift index 9dce15c03..6a1995f86 100644 --- a/iOS/MasterFeed/MasterFeedViewController.swift +++ b/iOS/MasterFeed/MasterFeedViewController.swift @@ -876,16 +876,16 @@ private extension MasterFeedViewController { if let copyHomePageAction = self.copyHomePageAction(indexPath: indexPath) { actions.append(copyHomePageAction) } - - if includeDeleteRename { - actions.append(self.deleteAction(indexPath: indexPath)) - actions.append(self.renameAction(indexPath: indexPath)) - } if let markAllAction = self.markAllAsReadAction(indexPath: indexPath) { actions.append(markAllAction) } + if includeDeleteRename { + actions.append(self.renameAction(indexPath: indexPath)) + actions.append(self.deleteAction(indexPath: indexPath)) + } + return UIMenu(title: "", children: actions) })