mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add add account selection scene for iOS
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user