mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-22 19:28:54 +10:00
set filterBarItem in didSet
This commit is contained in:
@@ -130,7 +130,9 @@ class FeedsViewController: UIViewController {
|
||||
didSet {
|
||||
feeds = []
|
||||
feedsTableView.reloadData()
|
||||
|
||||
|
||||
filterBarItem?.title = feedSortStyle.nameWithArrow
|
||||
|
||||
updateFeeds()
|
||||
}
|
||||
}
|
||||
@@ -219,10 +221,6 @@ class FeedsViewController: UIViewController {
|
||||
var isFetchingFeeds = false
|
||||
func updateFeeds(isLoadMore isLoadMore: Bool = false, finish: (() -> Void)? = nil) {
|
||||
|
||||
if let filterBarItem = filterBarItem {
|
||||
filterBarItem.title = feedSortStyle.nameWithArrow
|
||||
}
|
||||
|
||||
if isFetchingFeeds {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user