diff --git a/iOS/Settings/Settings.storyboard b/iOS/Settings/Settings.storyboard index c8497b2e5..a49be81f1 100644 --- a/iOS/Settings/Settings.storyboard +++ b/iOS/Settings/Settings.storyboard @@ -57,10 +57,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -90,7 +169,7 @@ - + @@ -120,7 +199,7 @@ - + @@ -151,72 +230,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -233,7 +250,7 @@ - + @@ -250,7 +267,7 @@ - + @@ -267,7 +284,7 @@ - + @@ -284,7 +301,7 @@ - + @@ -301,7 +318,7 @@ - + @@ -317,23 +334,6 @@ - - - - - - - - - - - diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift index cab947682..cff7c1d82 100644 --- a/iOS/Settings/SettingsViewController.swift +++ b/iOS/Settings/SettingsViewController.swift @@ -81,7 +81,7 @@ class SettingsViewController: UITableViewController { switch section { case 1: return AccountManager.shared.accounts.count + 1 - case 4: + case 2: let defaultNumberOfRows = super.tableView(tableView, numberOfRowsInSection: section) if AccountManager.shared.activeAccounts.isEmpty || AccountManager.shared.anyAccountHasFeedWithURL(appNewsURLString) { return defaultNumberOfRows - 1 @@ -135,7 +135,7 @@ class SettingsViewController: UITableViewController { controller.account = sortedAccounts[indexPath.row] self.navigationController?.pushViewController(controller, animated: true) } - case 3: + case 2: switch indexPath.row { case 0: let timeline = UIStoryboard.settings.instantiateController(ofType: RefreshIntervalViewController.self) @@ -152,6 +152,9 @@ class SettingsViewController: UITableViewController { let sourceRect = tableView.rectForRow(at: indexPath) exportOPML(sourceView: sourceView, sourceRect: sourceRect) } + case 3: + addFeed() + tableView.selectRow(at: nil, animated: true, scrollPosition: .none) default: break } @@ -175,9 +178,6 @@ class SettingsViewController: UITableViewController { case 5: openURL("https://github.com/brentsimmons/NetNewsWire/tree/master/Technotes") tableView.selectRow(at: nil, animated: true, scrollPosition: .none) - case 6: - addFeed() - tableView.selectRow(at: nil, animated: true, scrollPosition: .none) default: break }