diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 46d947a7b..7efd477d5 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -206,7 +206,11 @@ private extension AppDelegate { let searchIcon = UIApplicationShortcutIcon(systemImageName: "magnifyingglass") let searchItem = UIApplicationShortcutItem(type: "com.ranchero.NetNewsWire.ShowSearch", localizedTitle: searchTitle, localizedSubtitle: nil, icon: searchIcon, userInfo: nil) - UIApplication.shared.shortcutItems = [searchItem, unreadItem] + let addTitle = NSLocalizedString("Add", comment: "Add") + let addIcon = UIApplicationShortcutIcon(systemImageName: "plus") + let addItem = UIApplicationShortcutItem(type: "com.ranchero.NetNewsWire.ShowAdd", localizedTitle: addTitle, localizedSubtitle: nil, icon: addIcon, userInfo: nil) + + UIApplication.shared.shortcutItems = [addItem, searchItem, unreadItem] } } diff --git a/iOS/SceneDelegate.swift b/iOS/SceneDelegate.swift index 3e476b931..03e7cab9a 100644 --- a/iOS/SceneDelegate.swift +++ b/iOS/SceneDelegate.swift @@ -64,6 +64,8 @@ private extension SceneDelegate { coordinator.selectFirstUnreadInAllUnread() case "com.ranchero.NetNewsWire.ShowSearch": coordinator.showSearch() + case "com.ranchero.NetNewsWire.ShowAdd": + coordinator.showAdd() default: break }