diff --git a/pass.xcodeproj/project.pbxproj b/pass.xcodeproj/project.pbxproj index c780732..f1f55ba 100644 --- a/pass.xcodeproj/project.pbxproj +++ b/pass.xcodeproj/project.pbxproj @@ -80,6 +80,7 @@ DCC408C71E307DBB00F29B0E /* SVProgressHUD.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DCC408C61E307DBB00F29B0E /* SVProgressHUD.framework */; }; DCC441521E8F6C06008A90C4 /* RawPasswordViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCC441511E8F6C06008A90C4 /* RawPasswordViewController.swift */; }; DCC441541E916382008A90C4 /* GitSSHKeyArmorSettingTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCC441531E916382008A90C4 /* GitSSHKeyArmorSettingTableViewController.swift */; }; + DCD3C65E1EFB9BB400CBE842 /* SettingsSplitViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCD3C65D1EFB9BB400CBE842 /* SettingsSplitViewController.swift */; }; DCDDEAB01E4639F300F68193 /* LabelTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = DCDDEAAF1E4639F300F68193 /* LabelTableViewCell.xib */; }; DCDDEAB31E4896BF00F68193 /* PasswordDetailTitleTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCDDEAB11E4896BF00F68193 /* PasswordDetailTitleTableViewCell.swift */; }; DCFB779A1E4F3BCF008DE471 /* TitleTextFieldTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCFB77981E4F3BCF008DE471 /* TitleTextFieldTableViewCell.swift */; }; @@ -253,6 +254,7 @@ DCC408C61E307DBB00F29B0E /* SVProgressHUD.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SVProgressHUD.framework; path = Carthage/Build/iOS/SVProgressHUD.framework; sourceTree = ""; }; DCC441511E8F6C06008A90C4 /* RawPasswordViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RawPasswordViewController.swift; sourceTree = ""; }; DCC441531E916382008A90C4 /* GitSSHKeyArmorSettingTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GitSSHKeyArmorSettingTableViewController.swift; sourceTree = ""; }; + DCD3C65D1EFB9BB400CBE842 /* SettingsSplitViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsSplitViewController.swift; sourceTree = ""; }; DCDDEAAF1E4639F300F68193 /* LabelTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = LabelTableViewCell.xib; sourceTree = ""; }; DCDDEAB11E4896BF00F68193 /* PasswordDetailTitleTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PasswordDetailTitleTableViewCell.swift; sourceTree = ""; }; DCFB77981E4F3BCF008DE471 /* TitleTextFieldTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TitleTextFieldTableViewCell.swift; sourceTree = ""; }; @@ -415,6 +417,7 @@ DC19400C1E4B39400077E0A3 /* Controllers */ = { isa = PBXGroup; children = ( + DCD3C65D1EFB9BB400CBE842 /* SettingsSplitViewController.swift */, DC3E64E51E656F11009A83DE /* CommitLogsTableViewController.swift */, DC5F385A1E56AADB00C69ACA /* PGPKeyArmorSettingTableViewController.swift */, DC037CB11E4CAB1700609409 /* AboutRepositoryTableViewController.swift */, @@ -1042,6 +1045,7 @@ DC4914991E434600007FF592 /* PasswordDetailTableViewController.swift in Sources */, DC962CDF1E4B62C10033B5D8 /* AboutTableViewController.swift in Sources */, DC5734AE1E439AD400D09270 /* PasswordsViewController.swift in Sources */, + DCD3C65E1EFB9BB400CBE842 /* SettingsSplitViewController.swift in Sources */, DC3E64E61E656F11009A83DE /* CommitLogsTableViewController.swift in Sources */, DC037CAA1E4B8EAE00609409 /* SpecialThanksTableViewController.swift in Sources */, DC037CA61E4B883900609409 /* OpenSourceComponentsTableViewController.swift in Sources */, diff --git a/pass/Base.lproj/Main.storyboard b/pass/Base.lproj/Main.storyboard index 60b3202..0cb0b3b 100644 --- a/pass/Base.lproj/Main.storyboard +++ b/pass/Base.lproj/Main.storyboard @@ -1,11 +1,11 @@ - + - + @@ -102,7 +102,7 @@ - + @@ -129,7 +129,7 @@ - + @@ -222,7 +222,7 @@ - + @@ -250,7 +250,7 @@ - + @@ -267,8 +267,8 @@ - - + + @@ -288,7 +288,7 @@ - + - + @@ -1073,7 +1077,7 @@ Phone Support PIN #: 84719 - + @@ -1090,7 +1094,7 @@ Phone Support PIN #: 84719 - + @@ -1124,7 +1128,7 @@ Phone Support PIN #: 84719 - + @@ -1148,7 +1152,7 @@ Phone Support PIN #: 84719 - + @@ -1168,7 +1172,7 @@ Phone Support PIN #: 84719 - + @@ -1188,7 +1192,7 @@ Phone Support PIN #: 84719 - + @@ -1305,7 +1309,7 @@ Cgo - + @@ -1331,7 +1335,7 @@ Cgo - + @@ -1343,7 +1347,7 @@ Cgo - + @@ -1369,7 +1373,7 @@ Cgo - + @@ -1382,11 +1386,6 @@ Cgo - - - - - @@ -1503,7 +1502,7 @@ Cgo - + @@ -1526,7 +1525,7 @@ Cgo - + @@ -1570,7 +1569,7 @@ Cgo - + - - - - - @@ -1660,25 +1654,7 @@ Cgo - - - - - - - - - - - - - - - - - - - + @@ -1693,7 +1669,7 @@ Cgo @@ -1756,28 +1725,76 @@ Cgo - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pass/Controllers/AdvancedSettingsTableViewController.swift b/pass/Controllers/AdvancedSettingsTableViewController.swift index 5f9e0e5..ed85ce7 100644 --- a/pass/Controllers/AdvancedSettingsTableViewController.swift +++ b/pass/Controllers/AdvancedSettingsTableViewController.swift @@ -88,9 +88,6 @@ class AdvancedSettingsTableViewController: UITableViewController { SharedDefaults[.encryptInArmored] = encryptInASCIIArmoredSwitch.isOn } - @IBAction func cancelGitConfigSetting(segue: UIStoryboardSegue) { - } - @IBAction func saveGitConfigSetting(segue: UIStoryboardSegue) { if let controller = segue.source as? GitConfigSettingTableViewController { if let gitSignatureName = controller.nameTextField.text, diff --git a/pass/Controllers/PGPKeyArmorSettingTableViewController.swift b/pass/Controllers/PGPKeyArmorSettingTableViewController.swift index 4aa883b..5e28b73 100644 --- a/pass/Controllers/PGPKeyArmorSettingTableViewController.swift +++ b/pass/Controllers/PGPKeyArmorSettingTableViewController.swift @@ -204,9 +204,4 @@ class PGPKeyArmorSettingTableViewController: UITableViewController, UITextViewDe } } } - - @IBAction private func cancelPGPScanner(segue: UIStoryboardSegue) { - - } - } diff --git a/pass/Controllers/PasswordEditorTableViewController.swift b/pass/Controllers/PasswordEditorTableViewController.swift index 28992a5..4083794 100644 --- a/pass/Controllers/PasswordEditorTableViewController.swift +++ b/pass/Controllers/PasswordEditorTableViewController.swift @@ -234,10 +234,6 @@ class PasswordEditorTableViewController: UITableViewController, FillPasswordTabl } } - @IBAction private func cancelOTPScanner(segue: UIStoryboardSegue) { - - } - // update the data table after editing func textFieldDidEndEditing(_ textField: UITextField) { if textField == nameCell?.contentTextField { diff --git a/pass/Controllers/SettingsSplitViewController.swift b/pass/Controllers/SettingsSplitViewController.swift new file mode 100644 index 0000000..baf70ae --- /dev/null +++ b/pass/Controllers/SettingsSplitViewController.swift @@ -0,0 +1,24 @@ +// +// SettingsSplitViewController.swift +// pass +// +// Created by Mingshen Sun on 6/21/17. +// Copyright © 2017 Bob Sun. All rights reserved. +// + +import UIKit + +class SettingsSplitViewController: UISplitViewController, UISplitViewControllerDelegate { + override func viewDidLoad() { + self.delegate = self + self.preferredDisplayMode = .allVisible + } + + func splitViewController( + _ splitViewController: UISplitViewController, + collapseSecondary secondaryViewController: UIViewController, + onto primaryViewController: UIViewController) -> Bool { + // Return true to prevent UIKit from applying its default behavior + return true + } +} diff --git a/pass/Controllers/SettingsTableViewController.swift b/pass/Controllers/SettingsTableViewController.swift index e2b812d..86c308a 100644 --- a/pass/Controllers/SettingsTableViewController.swift +++ b/pass/Controllers/SettingsTableViewController.swift @@ -28,9 +28,6 @@ class SettingsTableViewController: UITableViewController { @IBOutlet weak var passwordRepositoryTableViewCell: UITableViewCell! let passwordStore = PasswordStore.shared var passcodeLockConfig = PasscodeLockConfiguration.shared - - @IBAction func cancelPGPKey(segue: UIStoryboardSegue) { - } @IBAction func savePGPKey(segue: UIStoryboardSegue) { if let controller = segue.source as? PGPKeySettingTableViewController { @@ -117,9 +114,6 @@ class SettingsTableViewController: UITableViewController { } } - @IBAction func cancelGitServerSetting(segue: UIStoryboardSegue) { - } - @IBAction func saveGitServerSetting(segue: UIStoryboardSegue) { self.passwordRepositoryTableViewCell.detailTextLabel?.text = SharedDefaults[.gitURL]?.host }