From ae88fdfad600a00c8f688c6558c097880a8389d2 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Wed, 27 Mar 2019 22:09:08 +0100 Subject: [PATCH] Rename shortcut manager vc --- Passepartout-iOS/Global/SwiftGen+Scenes.swift | 2 +- ...er.swift => ShortcutsViewController.swift} | 6 +-- .../en.lproj/Shortcuts.storyboard | 40 +++++++++---------- Passepartout.xcodeproj/project.pbxproj | 10 ++--- 4 files changed, 27 insertions(+), 31 deletions(-) rename Passepartout-iOS/Scenes/Organizer/{ShortcutsEditViewController.swift => ShortcutsViewController.swift} (96%) diff --git a/Passepartout-iOS/Global/SwiftGen+Scenes.swift b/Passepartout-iOS/Global/SwiftGen+Scenes.swift index 2e398a7e..992b985b 100644 --- a/Passepartout-iOS/Global/SwiftGen+Scenes.swift +++ b/Passepartout-iOS/Global/SwiftGen+Scenes.swift @@ -39,7 +39,7 @@ internal enum StoryboardScene { internal static let initialScene = InitialSceneType(storyboard: Shortcuts.self) - internal static let shortcutsEditViewController = SceneType(storyboard: Shortcuts.self, identifier: "ShortcutsEditViewController") + internal static let shortcutsViewController = SceneType(storyboard: Shortcuts.self, identifier: "ShortcutsViewController") } } // swiftlint:enable explicit_type_interface identifier_name line_length type_body_length type_name diff --git a/Passepartout-iOS/Scenes/Organizer/ShortcutsEditViewController.swift b/Passepartout-iOS/Scenes/Organizer/ShortcutsViewController.swift similarity index 96% rename from Passepartout-iOS/Scenes/Organizer/ShortcutsEditViewController.swift rename to Passepartout-iOS/Scenes/Organizer/ShortcutsViewController.swift index dbd8d60b..3e26309e 100644 --- a/Passepartout-iOS/Scenes/Organizer/ShortcutsEditViewController.swift +++ b/Passepartout-iOS/Scenes/Organizer/ShortcutsViewController.swift @@ -1,5 +1,5 @@ // -// ShortcutsEditViewController.swift +// ShortcutsViewController.swift // Passepartout-iOS // // Created by Davide De Rosa on 3/27/19. @@ -39,7 +39,7 @@ private struct ShortcutWrapper: Comparable { static func from(_ vs: INVoiceShortcut) -> ShortcutWrapper { return ShortcutWrapper( phrase: vs.invocationPhrase, - intentDescription: vs.shortcut.intent?.suggestedInvocationPhrase, + intentDescription: vs.shortcut.intent?.intentDescription, original: vs ) } @@ -58,7 +58,7 @@ private struct ShortcutWrapper: Comparable { } @available(iOS 12, *) -class ShortcutsEditViewController: UITableViewController, INUIEditVoiceShortcutViewControllerDelegate, ShortcutsAddViewControllerDelegate, TableModelHost { +class ShortcutsViewController: UITableViewController, INUIEditVoiceShortcutViewControllerDelegate, ShortcutsAddViewControllerDelegate, TableModelHost { private var wrappers: [ShortcutWrapper]? private var editedIndexPath: IndexPath? diff --git a/Passepartout-iOS/en.lproj/Shortcuts.storyboard b/Passepartout-iOS/en.lproj/Shortcuts.storyboard index 467b6b4d..13cc1afb 100644 --- a/Passepartout-iOS/en.lproj/Shortcuts.storyboard +++ b/Passepartout-iOS/en.lproj/Shortcuts.storyboard @@ -1,10 +1,6 @@ - - - - @@ -14,26 +10,26 @@ - + - + - +