Add add account selection scene for iOS

This commit is contained in:
Maurice Parker
2019-05-16 17:45:38 -05:00
parent 53f65d39bb
commit 970b7535dc
8 changed files with 232 additions and 2 deletions

View File

@@ -93,6 +93,14 @@ class SettingsViewController: UITableViewController {
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
switch indexPath.section {
case 0:
let sortedAccounts = AccountManager.shared.sortedAccounts
if indexPath.row == sortedAccounts.count {
let timeline = UIStoryboard.settings.instantiateController(ofType: AddAccountViewController.self)
self.navigationController?.pushViewController(timeline, animated: true)
} else {
// TODO
}
case 1:
switch indexPath.row {
case 0: