From 3ac77f57079f0d59f8fbd2aee53b2db16caece15 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 7 Aug 2019 13:04:06 -0700 Subject: [PATCH] Displays message when there are are games but no app icon shortcuts --- .../App Icon Shortcuts/AppIconShortcutsViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Delta/Settings/App Icon Shortcuts/AppIconShortcutsViewController.swift b/Delta/Settings/App Icon Shortcuts/AppIconShortcutsViewController.swift index af82167..0df31cd 100644 --- a/Delta/Settings/App Icon Shortcuts/AppIconShortcutsViewController.swift +++ b/Delta/Settings/App Icon Shortcuts/AppIconShortcutsViewController.swift @@ -264,6 +264,7 @@ extension AppIconShortcutsViewController { case (0, .recent): return NSLocalizedString("Your most recently played games will appear as shortcuts when 3D touching the app icon.", comment: "") case (0, .manual): return NSLocalizedString("The games you've selected below will appear as shortcuts when 3D touching the app icon.", comment: "") + case (1, .recent) where self.shortcutsDataSource.itemCount == 0: return NSLocalizedString("You have no recently played games.", comment: "") case (1, .recent): return " " // Return non-empty string since empty string changes vertical offset of section for some reason. case (1, .manual): return NSLocalizedString("You may have up to 4 shortcuts.", comment: "")