File tree Expand file tree Collapse file tree
Projects/Presentation/Sources/Home Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ public final class HomeViewController: BaseReactorViewController<HomeReactor> {
180180 . disposed ( by: disposeBag)
181181
182182 viewWillAppearPublisher. asObservable ( )
183+ . do ( onNext: { [ weak self] _ in
184+ self ? . recentCompanyCollectionView. setContentOffset ( . zero, animated: false )
185+ } )
183186 . map { _ in HomeReactor . Action. viewWillAppear }
184187 . bind ( to: reactor. action)
185188 . disposed ( by: disposeBag)
@@ -252,6 +255,7 @@ public final class HomeViewController: BaseReactorViewController<HomeReactor> {
252255
253256 reactor. state. map { $0. recentCompanyList }
254257 . distinctUntilChanged ( )
258+ . observe ( on: MainScheduler . instance)
255259 . bind ( to: recentCompanyCollectionView. rx. items (
256260 cellIdentifier: RecentCompanyCollectionViewCell . identifier,
257261 cellType: RecentCompanyCollectionViewCell . self
You can’t perform that action at this time.
0 commit comments