Skip to content

Commit 880be90

Browse files
committed
update demo project for #88
1 parent f1845da commit 880be90

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Example/Demo/ExampleListViewController.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,14 @@ class ExampleListViewController:UITableViewController {
7070
override func tableView(
7171
_ tableView: UITableView,
7272
didSelectRowAt indexPath: IndexPath) {
73+
let vc = items[indexPath.row].viewController
7374

74-
navigationController?.pushViewController(
75-
items[indexPath.row].viewController, animated: true)
75+
switch indexPath.row {
76+
case 0:
77+
present(vc, animated: true, completion: nil)
78+
default:
79+
navigationController?.pushViewController(
80+
vc, animated: true)
81+
}
7682
}
7783
}

0 commit comments

Comments
 (0)