From 86d5a73c85f640f43fedc2d957d9e725cb163e78 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 15 Aug 2020 17:19:45 -0400 Subject: [PATCH] Change menu item order Open in Safari should be the closest to the user's finger when tapping a menu button --- Tusker/Screens/Utilities/Previewing.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tusker/Screens/Utilities/Previewing.swift b/Tusker/Screens/Utilities/Previewing.swift index e0995512..6b7ff8c7 100644 --- a/Tusker/Screens/Utilities/Previewing.swift +++ b/Tusker/Screens/Utilities/Previewing.swift @@ -83,8 +83,8 @@ extension MenuPreviewProvider { ] return [ + UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection), UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: actionsSection), - UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection) ] } @@ -115,8 +115,8 @@ extension MenuPreviewProvider { let shareSection = actionsForURL(hashtag.url, sourceView: sourceView) return [ + UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection), UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: actionsSection), - UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection) ] } @@ -174,8 +174,8 @@ extension MenuPreviewProvider { ] return [ - UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: actionsSection), UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: shareSection), + UIMenu(title: "", image: nil, identifier: nil, options: [.displayInline], children: actionsSection), ] }