on my project I use RxSwift and Action to handle refresh indicator, but I got issues when run this code. Refresh control not showing, when I debug subscribe work properly but not showing refreshControl. It will be different when I set self.refreshControl?.beginRefreshing()
on outside if (executing == true) {
block
self.viewModel.transactionHistoryNetworkRequestAction?.executing
.subscribeOn(MainScheduler.instance)
.subscribe(onNext: { (executing) in
if (executing == true) {
self.refreshControl?.beginRefreshing()
} else {
self.refreshControl?.endRefreshing()
}
})
.addDisposableTo(self.disposeBag)
thanks for the answer