Skip to content

Commit

Permalink
If "Allow Arbitrary Loads" is set to No in Info.plist, the "TableView…
Browse files Browse the repository at this point in the history
…WithEditingCommands" example will exit as soon as you run it.

So, added a catchError.
  • Loading branch information
magicmon authored and kzaher committed Jul 13, 2017
1 parent de2837f commit 5699fea
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ class TableViewWithEditingCommandsViewController: ViewController, UITableViewDel
SectionModel(model: "Normal Users", items: $0.users)
]
}
.catchError { (error) in
showAlert(error.localizedDescription)
return Observable.empty()
}
.bind(to: tableView.rx.items(dataSource: dataSource))
.disposed(by: disposeBag)

Expand Down

0 comments on commit 5699fea

Please sign in to comment.