From 4a858c35965aa6abc0d4909d382dee32bf488eb5 Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Tue, 24 Jan 2017 16:57:38 +0800 Subject: [PATCH] try former.framework --- Cartfile | 2 +- pass.xcodeproj/project.pbxproj | 9 ++++ pass/Base.lproj/Main.storyboard | 50 +++++-------------- .../GitServerSettingTableViewController.swift | 3 ++ pass/SSHKeySettingFormViewController.swift | 16 ++++++ 5 files changed, 42 insertions(+), 38 deletions(-) create mode 100644 pass/SSHKeySettingFormViewController.swift diff --git a/Cartfile b/Cartfile index a45819d..42faa39 100644 --- a/Cartfile +++ b/Cartfile @@ -1,4 +1,4 @@ github "SVProgressHUD/SVProgressHUD" github "radex/SwiftyUserDefaults" github "libgit2/objective-git" - +github "ra1028/Former" diff --git a/pass.xcodeproj/project.pbxproj b/pass.xcodeproj/project.pbxproj index ea2e6c9..28015d0 100644 --- a/pass.xcodeproj/project.pbxproj +++ b/pass.xcodeproj/project.pbxproj @@ -10,6 +10,8 @@ 94BA784B85E071D25EE89B59 /* libPods-pass.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADCE7A5C3CCC67D7D21BB3C4 /* libPods-pass.a */; }; DC1208561E35D0BA0042942E /* PasswordsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC1208551E35D0BA0042942E /* PasswordsTableViewController.swift */; }; DC1208581E35EBE60042942E /* ObjectiveGit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC1208571E35EBE60042942E /* ObjectiveGit.framework */; }; + DC286D461E37444D00DBF9C8 /* Former.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC286D451E37444D00DBF9C8 /* Former.framework */; }; + DC286D4A1E374AF100DBF9C8 /* SSHKeySettingFormViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC286D491E374AF100DBF9C8 /* SSHKeySettingFormViewController.swift */; }; DC3DC8391E2F63240062A988 /* PasswordDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC3DC8381E2F63240062A988 /* PasswordDetailViewController.swift */; }; DC917BD71E2E8231000FDF54 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC917BD61E2E8231000FDF54 /* AppDelegate.swift */; }; DC917BDC1E2E8231000FDF54 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DC917BDA1E2E8231000FDF54 /* Main.storyboard */; }; @@ -33,6 +35,8 @@ AEAD6B31EAF5D061447A68CC /* Pods-pass.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-pass.release.xcconfig"; path = "Pods/Target Support Files/Pods-pass/Pods-pass.release.xcconfig"; sourceTree = ""; }; DC1208551E35D0BA0042942E /* PasswordsTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PasswordsTableViewController.swift; sourceTree = ""; }; DC1208571E35EBE60042942E /* ObjectiveGit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ObjectiveGit.framework; path = Carthage/Build/iOS/ObjectiveGit.framework; sourceTree = ""; }; + DC286D451E37444D00DBF9C8 /* Former.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Former.framework; path = Carthage/Build/iOS/Former.framework; sourceTree = ""; }; + DC286D491E374AF100DBF9C8 /* SSHKeySettingFormViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SSHKeySettingFormViewController.swift; sourceTree = ""; }; DC3DC8381E2F63240062A988 /* PasswordDetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PasswordDetailViewController.swift; sourceTree = ""; }; DC4A746D1E30FBDE00E8EB18 /* Objective-CBridgingHeader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Objective-CBridgingHeader.h"; sourceTree = ""; }; DC917BD31E2E8231000FDF54 /* pass.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = pass.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -60,6 +64,7 @@ files = ( DC917BEF1E2F38C5000FDF54 /* Result.framework in Frameworks */, DCC408C71E307DBB00F29B0E /* SVProgressHUD.framework in Frameworks */, + DC286D461E37444D00DBF9C8 /* Former.framework in Frameworks */, DC1208581E35EBE60042942E /* ObjectiveGit.framework in Frameworks */, DCA049961E3357E000522E8F /* SwiftyUserDefaults.framework in Frameworks */, 94BA784B85E071D25EE89B59 /* libPods-pass.a in Frameworks */, @@ -99,6 +104,7 @@ DC917BD51E2E8231000FDF54 /* pass */ = { isa = PBXGroup; children = ( + DC286D491E374AF100DBF9C8 /* SSHKeySettingFormViewController.swift */, DC1208551E35D0BA0042942E /* PasswordsTableViewController.swift */, DC4A746D1E30FBDE00E8EB18 /* Objective-CBridgingHeader.h */, DC917BD61E2E8231000FDF54 /* AppDelegate.swift */, @@ -121,6 +127,7 @@ DC917BED1E2F38C4000FDF54 /* Frameworks */ = { isa = PBXGroup; children = ( + DC286D451E37444D00DBF9C8 /* Former.framework */, DC1208571E35EBE60042942E /* ObjectiveGit.framework */, DCA049951E3357E000522E8F /* SwiftyUserDefaults.framework */, DCC408C61E307DBB00F29B0E /* SVProgressHUD.framework */, @@ -258,6 +265,7 @@ "$(SRCROOT)/Carthage/Build/iOS/SVProgressHUD.framework", "$(SRCROOT)/Carthage/Build/iOS/SwiftyUserDefaults.framework", "$(SRCROOT)/Carthage/Build/iOS/ObjectiveGit.framework", + "$(SRCROOT)/Carthage/Build/iOS/Former.framework", ); outputPaths = ( ); @@ -277,6 +285,7 @@ DC1208561E35D0BA0042942E /* PasswordsTableViewController.swift in Sources */, DCAAF7451E2FA66800AB94BC /* SettingsTableViewController.swift in Sources */, DCA0499A1E335CC800522E8F /* GitServerSettingTableViewController.swift in Sources */, + DC286D4A1E374AF100DBF9C8 /* SSHKeySettingFormViewController.swift in Sources */, DCC277D21E30D6EA00402246 /* pass.xcdatamodeld in Sources */, DC917BD71E2E8231000FDF54 /* AppDelegate.swift in Sources */, DCA049981E33586A00522E8F /* DefaultKeys.swift in Sources */, diff --git a/pass/Base.lproj/Main.storyboard b/pass/Base.lproj/Main.storyboard index 179888a..3c3a03b 100644 --- a/pass/Base.lproj/Main.storyboard +++ b/pass/Base.lproj/Main.storyboard @@ -1,5 +1,5 @@ - + @@ -114,7 +114,7 @@ - + @@ -165,18 +165,26 @@ + + + + + + + + - + - + @@ -205,7 +213,7 @@ - + @@ -296,38 +304,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pass/GitServerSettingTableViewController.swift b/pass/GitServerSettingTableViewController.swift index f9946f8..458dd7c 100644 --- a/pass/GitServerSettingTableViewController.swift +++ b/pass/GitServerSettingTableViewController.swift @@ -17,6 +17,8 @@ class GitServerSettingTableViewController: UITableViewController { @IBOutlet weak var passwordTextField: UITextField! + @IBOutlet weak var authenticationTableViewCell: UITableViewCell! + override func viewDidLoad() { super.viewDidLoad() if let url = Defaults[.gitRepositoryURL] { @@ -30,6 +32,7 @@ class GitServerSettingTableViewController: UITableViewController { super.viewDidAppear(animated) gitRepositoryURLTextField.becomeFirstResponder() } + override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) view.endEditing(true) diff --git a/pass/SSHKeySettingFormViewController.swift b/pass/SSHKeySettingFormViewController.swift new file mode 100644 index 0000000..cb456bd --- /dev/null +++ b/pass/SSHKeySettingFormViewController.swift @@ -0,0 +1,16 @@ +// +// SSHKeySettingFormViewController.swift +// pass +// +// Created by Mingshen Sun on 24/1/2017. +// Copyright © 2017 Bob Sun. All rights reserved. +// + +import Former + +class SSHKeySettingFormViewController: FormViewController { + + override func viewDidLoad() { + super.viewDidLoad() + } +}