udacity / ios-nd-networking

Resources for Udacity's iOS Networking with Swift course.
MIT License
173 stars 89 forks source link

Suggest get value of watchlist and favorites in viewDidLoad of SearchVC. #18

Open Haibo-Zhou opened 4 years ago

Haibo-Zhou commented 4 years ago

The default VC for the tab bar is SearchVC. It would be better to get user's watchlist and favorites when loading SearchVC. Because if not, WatchlistVC will not know whether a movie is in Favorites or not if user didn't open FavoritesVC yet (toggleBarButton displayed as dark or not) and as same as FavoritesVC.

MartinSmithno commented 1 year ago

I saw the same issue. I thought that the solution is calling getWatchList() and getFavorites() from SearchViewController. It could be a cool feature.