From 77a38807f340bbe6a8322c2bba365c9923cd4afb Mon Sep 17 00:00:00 2001 From: Bob Sun Date: Sat, 7 Oct 2017 21:07:02 -0700 Subject: [PATCH] Additional content show at top by default when editing a password --- pass/Controllers/PasswordEditorTableViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pass/Controllers/PasswordEditorTableViewController.swift b/pass/Controllers/PasswordEditorTableViewController.swift index 71defd2..ce72409 100644 --- a/pass/Controllers/PasswordEditorTableViewController.swift +++ b/pass/Controllers/PasswordEditorTableViewController.swift @@ -75,6 +75,9 @@ class PasswordEditorTableViewController: UITableViewController, FillPasswordTabl self.tableView.sectionFooterHeight = UITableViewAutomaticDimension; self.tableView.estimatedSectionFooterHeight = 0; } + override func viewDidLayoutSubviews() { + additionsCell?.contentTextView.setContentOffset(.zero, animated: false) + } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cellData = tableData[indexPath.section][indexPath.row]