diff --git a/pass.xcodeproj/project.pbxproj b/pass.xcodeproj/project.pbxproj index bd42a22..d1b8616 100644 --- a/pass.xcodeproj/project.pbxproj +++ b/pass.xcodeproj/project.pbxproj @@ -122,8 +122,6 @@ 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 */; }; - DCFB779B1E4F3BCF008DE471 /* TitleTextFieldTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = DCFB77991E4F3BCF008DE471 /* TitleTextFieldTableViewCell.xib */; }; DCFB779E1E4F40C7008DE471 /* FillPasswordTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCFB779C1E4F40C7008DE471 /* FillPasswordTableViewCell.swift */; }; DCFB779F1E4F40C7008DE471 /* FillPasswordTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = DCFB779D1E4F40C7008DE471 /* FillPasswordTableViewCell.xib */; }; DCFB77A31E500D9C008DE471 /* PasswordDetailTitleTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = DCFB77A21E500D9C008DE471 /* PasswordDetailTitleTableViewCell.xib */; }; @@ -324,8 +322,6 @@ 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 = ""; }; - DCFB77991E4F3BCF008DE471 /* TitleTextFieldTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TitleTextFieldTableViewCell.xib; sourceTree = ""; }; DCFB779C1E4F40C7008DE471 /* FillPasswordTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FillPasswordTableViewCell.swift; sourceTree = ""; }; DCFB779D1E4F40C7008DE471 /* FillPasswordTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FillPasswordTableViewCell.xib; sourceTree = ""; }; DCFB77A21E500D9C008DE471 /* PasswordDetailTitleTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PasswordDetailTitleTableViewCell.xib; sourceTree = ""; }; @@ -645,8 +641,6 @@ DC037CBA1E4DD47B00609409 /* TextFieldTableViewCell.xib */, DC037CBD1E4ED4E100609409 /* TextViewTableViewCell.swift */, DC037CBE1E4ED4E100609409 /* TextViewTableViewCell.xib */, - DCFB77981E4F3BCF008DE471 /* TitleTextFieldTableViewCell.swift */, - DCFB77991E4F3BCF008DE471 /* TitleTextFieldTableViewCell.xib */, ); path = Views; sourceTree = ""; @@ -1002,7 +996,6 @@ DCDDEAB01E4639F300F68193 /* LabelTableViewCell.xib in Resources */, DC917BDC1E2E8231000FDF54 /* Main.storyboard in Resources */, A2802BFA1E70813A00879216 /* SliderTableViewCell.xib in Resources */, - DCFB779B1E4F3BCF008DE471 /* TitleTextFieldTableViewCell.xib in Resources */, DCFB779F1E4F40C7008DE471 /* FillPasswordTableViewCell.xib in Resources */, DC037CC01E4ED4E100609409 /* TextViewTableViewCell.xib in Resources */, ); @@ -1151,7 +1144,6 @@ DC037CB81E4DD1A500609409 /* AddPasswordTableViewController.swift in Sources */, DCC441521E8F6C06008A90C4 /* RawPasswordViewController.swift in Sources */, DC917BD71E2E8231000FDF54 /* AppDelegate.swift in Sources */, - DCFB779A1E4F3BCF008DE471 /* TitleTextFieldTableViewCell.swift in Sources */, DC037CBB1E4DD47B00609409 /* TextFieldTableViewCell.swift in Sources */, DCFB77A91E502FF6008DE471 /* PasswordEditorTableViewController.swift in Sources */, ); diff --git a/pass/Base.lproj/Main.storyboard b/pass/Base.lproj/Main.storyboard index 3c50d00..c44093f 100644 --- a/pass/Base.lproj/Main.storyboard +++ b/pass/Base.lproj/Main.storyboard @@ -1,11 +1,11 @@ - + - + @@ -644,7 +644,7 @@ - + @@ -812,7 +812,7 @@ - + @@ -865,13 +865,20 @@ username: passforios-demo@email.com URL: https://www.amazon.com Secret Question 1: What is your childhood best friend's most bizarre superhero fantasy? Oh god, Amazon, it's too awful to say... -Phone Support PIN #: 84719 + + + + + + + + @@ -1764,12 +1771,12 @@ Phone Support PIN #: 84719 - - + + - + diff --git a/pass/Controllers/EditPasswordTableViewController.swift b/pass/Controllers/EditPasswordTableViewController.swift index 5882801..2d7eb32 100644 --- a/pass/Controllers/EditPasswordTableViewController.swift +++ b/pass/Controllers/EditPasswordTableViewController.swift @@ -49,5 +49,4 @@ class EditPasswordTableViewController: PasswordEditorTableViewController { } } } - } diff --git a/pass/Controllers/PasswordEditorTableViewController.swift b/pass/Controllers/PasswordEditorTableViewController.swift index 6d038d3..7980127 100644 --- a/pass/Controllers/PasswordEditorTableViewController.swift +++ b/pass/Controllers/PasswordEditorTableViewController.swift @@ -81,7 +81,7 @@ class PasswordEditorTableViewController: UITableViewController, FillPasswordTabl self.tableView.estimatedSectionFooterHeight = 0; } override func viewDidLayoutSubviews() { - additionsCell?.contentTextView.setContentOffset(.zero, animated: false) + additionsCell?.contentTextView.setContentOffset(.zero, animated: false) } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { @@ -315,8 +315,8 @@ class PasswordEditorTableViewController: UITableViewController, FillPasswordTabl // the name field should be a valid url guard let path = name.stringByAddingPercentEncodingForRFC3986(), var passwordURL = URL(string: path) else { - Utils.alert(title: "CannotSave".localize(), message: "PasswordNameInvalid.".localize(), controller: self, completion: nil) - return false + Utils.alert(title: "CannotSave".localize(), message: "PasswordNameInvalid.".localize(), controller: self, completion: nil) + return false } // check whether we can parse the filename (be consistent with PasswordStore::addPasswordEntities) @@ -353,5 +353,4 @@ class PasswordEditorTableViewController: UITableViewController, FillPasswordTabl self.present(alert, animated: true, completion: nil) } } - } diff --git a/pass/Views/FillPasswordTableViewCell.xib b/pass/Views/FillPasswordTableViewCell.xib index 3afd825..df73a98 100644 --- a/pass/Views/FillPasswordTableViewCell.xib +++ b/pass/Views/FillPasswordTableViewCell.xib @@ -1,12 +1,11 @@ - + - - + @@ -22,11 +21,11 @@ - + - + diff --git a/pass/Views/LabelTableViewCell.xib b/pass/Views/LabelTableViewCell.xib index 1820afe..b170fd6 100644 --- a/pass/Views/LabelTableViewCell.xib +++ b/pass/Views/LabelTableViewCell.xib @@ -1,18 +1,17 @@ - + - - + - + @@ -29,7 +28,7 @@ - + diff --git a/pass/Views/TextFieldTableViewCell.xib b/pass/Views/TextFieldTableViewCell.xib index 00a066d..5bfcb56 100644 --- a/pass/Views/TextFieldTableViewCell.xib +++ b/pass/Views/TextFieldTableViewCell.xib @@ -1,12 +1,11 @@ - + - - + @@ -19,14 +18,14 @@ - - + + - + diff --git a/pass/Views/TextViewTableViewCell.xib b/pass/Views/TextViewTableViewCell.xib index 0e13d70..6b64660 100644 --- a/pass/Views/TextViewTableViewCell.xib +++ b/pass/Views/TextViewTableViewCell.xib @@ -1,19 +1,13 @@ - + - - + - - - Menlo-Regular - - @@ -24,27 +18,76 @@ - - + + - + - - + + + key: value +key: value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + diff --git a/pass/Views/TitleTextFieldTableViewCell.swift b/pass/Views/TitleTextFieldTableViewCell.swift deleted file mode 100644 index c96703c..0000000 --- a/pass/Views/TitleTextFieldTableViewCell.swift +++ /dev/null @@ -1,32 +0,0 @@ -// -// TextFieldTableViewCell.swift -// pass -// -// Created by Mingshen Sun on 10/2/2017. -// Copyright © 2017 Bob Sun. All rights reserved. -// - -import UIKit - -class TitleTextFieldTableViewCell: UITableViewCell { - - @IBOutlet weak var titleLabel: UILabel! - @IBOutlet weak var contentTextField: UITextField! - - override func awakeFromNib() { - super.awakeFromNib() - // Initialization code - titleLabel.isUserInteractionEnabled = true - let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(tap(_:))) - titleLabel.addGestureRecognizer(tapGestureRecognizer) - } - - @objc func tap(_ sender: Any?) { - contentTextField.becomeFirstResponder() - } - - override func setSelected(_ selected: Bool, animated: Bool) { - super.setSelected(selected, animated: animated) - } - -} diff --git a/pass/Views/TitleTextFieldTableViewCell.xib b/pass/Views/TitleTextFieldTableViewCell.xib deleted file mode 100644 index 8e9d26a..0000000 --- a/pass/Views/TitleTextFieldTableViewCell.xib +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/passExtension/Base.lproj/MainInterface.storyboard b/passExtension/Base.lproj/MainInterface.storyboard index 4755832..9c3c624 100644 --- a/passExtension/Base.lproj/MainInterface.storyboard +++ b/passExtension/Base.lproj/MainInterface.storyboard @@ -1,12 +1,11 @@ - + - - + @@ -26,11 +25,11 @@ - + - +