Refresh hometimeline (IOS-157)
This commit is contained in:
parent
5daf944384
commit
1a0ab4607c
|
@ -77,6 +77,7 @@ class SuggestionAccountViewController: UIViewController, NeedsDependency {
|
|||
//MARK: - Actions
|
||||
|
||||
@objc func doneButtonDidClick(_ sender: UIButton) {
|
||||
viewModel.delegate?.homeTimelineNeedRefresh.send()
|
||||
dismiss(animated: true, completion: nil)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -133,6 +133,7 @@ final class SuggestionAccountViewModel: NSObject {
|
|||
}
|
||||
})
|
||||
|
||||
delegate?.homeTimelineNeedRefresh.send()
|
||||
completion?()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,11 +83,6 @@ final public class FeedFetchedResultsController: NSObject {
|
|||
}
|
||||
.store(in: &disposeBag)
|
||||
}
|
||||
|
||||
deinit {
|
||||
logger.log(level: .debug, "\((#file as NSString).lastPathComponent, privacy: .public)[\(#line, privacy: .public)], \(#function, privacy: .public)")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - NSFetchedResultsControllerDelegate
|
||||
|
@ -96,7 +91,6 @@ extension FeedFetchedResultsController: NSFetchedResultsControllerDelegate {
|
|||
_ controller: NSFetchedResultsController<NSFetchRequestResult>,
|
||||
didChangeContentWith snapshot: NSDiffableDataSourceSnapshotReference
|
||||
) {
|
||||
os_log("%{public}s[%{public}ld], %{public}s", ((#file as NSString).lastPathComponent), #line, #function)
|
||||
let snapshot = snapshot as NSDiffableDataSourceSnapshot<String, NSManagedObjectID>
|
||||
self._objectIDs.send(snapshot.itemIdentifiers)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue