diff --git a/Sources/Classes/DataLoading/PaginationDataLoading/PaginationDataLoadingModel.swift b/Sources/Classes/DataLoading/PaginationDataLoading/PaginationDataLoadingModel.swift index 3629c057..a74d00e7 100644 --- a/Sources/Classes/DataLoading/PaginationDataLoading/PaginationDataLoadingModel.swift +++ b/Sources/Classes/DataLoading/PaginationDataLoading/PaginationDataLoadingModel.swift @@ -67,9 +67,7 @@ public final class PaginationDataLoadingModel Observable in - if applicationCurrentlyActive.value { - return .just(state) - } else { - return applicationCurrentlyActive - .asObservable() - .filter { $0 } - .delay(0.5, scheduler: MainScheduler.instance) - .asObservable() - .replace(with: state) - } - } - .bind(to: stateChanged) + .drive(stateChanged) .disposed(by: disposeBag) } - private func removeCurrentPlaceholderView() { + private func removeAllPlaceholderView() { wrappedView.backgroundView = nil - } - - private func bindAppStateNotifications() { - let notificationCenter = NotificationCenter.default.rx - - notificationCenter.notification(UIApplication.willResignActiveNotification) - .replace(with: false) - .asDriver(onErrorJustReturn: false) - .drive(applicationCurrentlyActive) - .disposed(by: disposeBag) - - notificationCenter.notification(UIApplication.didBecomeActiveNotification) - .replace(with: true) - .asDriver(onErrorJustReturn: true) - .drive(applicationCurrentlyActive) - .disposed(by: disposeBag) + wrappedView.footerView = nil } }