Encapsulate more of the AppCoordinate API

This commit is contained in:
Maurice Parker
2019-07-06 11:32:19 -05:00
parent 15754684a4
commit 4884aebbfd
4 changed files with 44 additions and 28 deletions

View File

@@ -136,11 +136,11 @@ class DetailViewController: UIViewController {
}
@IBAction func prevArticle(_ sender: Any) {
coordinator.currentArticleIndexPath = coordinator.prevArticleIndexPath
coordinator.selectPrevArticle()
}
@IBAction func nextArticle(_ sender: Any) {
coordinator.currentArticleIndexPath = coordinator.nextArticleIndexPath
coordinator.selectNextArticle()
}
@IBAction func toggleRead(_ sender: Any) {