mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-17 22:19:08 +00:00
Add a Done button to exit connect shortcuts
This commit is contained in:
parent
1913468ea6
commit
88a1e39a6e
@ -182,6 +182,10 @@ extension ShortcutsConnectToViewController {
|
||||
private func pickProviderLocation() {
|
||||
perform(segue: StoryboardSegue.Shortcuts.pickLocationSegueIdentifier)
|
||||
}
|
||||
|
||||
@IBAction private func done() {
|
||||
dismiss(animated: true, completion: nil)
|
||||
}
|
||||
}
|
||||
|
||||
extension ShortcutsConnectToViewController: ProviderPoolViewControllerDelegate {
|
||||
@ -196,6 +200,7 @@ extension ShortcutsConnectToViewController: ProviderPoolViewControllerDelegate {
|
||||
@available(iOS 12, *)
|
||||
extension ShortcutsConnectToViewController: INUIAddVoiceShortcutViewControllerDelegate {
|
||||
func addVoiceShortcutViewController(_ controller: INUIAddVoiceShortcutViewController, didFinishWith voiceShortcut: INVoiceShortcut?, error: Error?) {
|
||||
navigationController?.popViewController(animated: true)
|
||||
dismiss(animated: true, completion: nil)
|
||||
}
|
||||
|
||||
|
@ -102,6 +102,13 @@
|
||||
<outlet property="delegate" destination="zpj-mS-isI" id="zex-yh-op8"/>
|
||||
</connections>
|
||||
</tableView>
|
||||
<navigationItem key="navigationItem" id="kUu-WC-MJQ">
|
||||
<barButtonItem key="rightBarButtonItem" style="done" systemItem="done" id="m8u-XK-MLx">
|
||||
<connections>
|
||||
<action selector="done" destination="zpj-mS-isI" id="f5U-ko-QS3"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
</navigationItem>
|
||||
<connections>
|
||||
<segue destination="bPc-ex-Jwe" kind="show" identifier="PickLocationSegueIdentifier" id="ah9-pc-zoh"/>
|
||||
</connections>
|
||||
|
Loading…
Reference in New Issue
Block a user