Skip to content

Commit

Permalink
Postpone fetchEvents for main view after view appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
antonsergeev88 committed Sep 15, 2018
1 parent 2c097ac commit 489b744
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ class MainViewController: UIViewController, DisplayCollectionWithTableViewDelega
super.viewWillAppear(animated)
self.tableView.reloadData()

fetchEvents()
profileNavigationController?.pushEditProfileTo(self.navigationController)
}

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
fetchEvents()
}

override func az_tabBarItemContentView() -> AZTabBarItemView {
return TabBarItemView.create(with: .main)
}
Expand Down

0 comments on commit 489b744

Please sign in to comment.