We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task { for try await payload in daView.buildingWebViewAction.values { switch payload.type { case .disableScroll: guard let bool = payload.data as? Bool else { return } scrollView.isScrollEnabled = !bool default: break } } } OR Task { [weak self] in guard let weakSelf = self else { return } for try await payload in daView.buildingWebViewAction.values { switch payload.type { case .disableScroll: guard let bool = payload.data as? Bool else { return } weakSelf.scrollView.isScrollEnabled = !bool default: break } } }
When I wrote the code as above View Controller Deinit is not invoked It's happening.
daView.buildingWebViewAction .bind(with: self) { owner, payload in switch payload.type { case .disableScroll: guard let bool = payload.data as? Bool else { return } owner.scrollView.isScrollEnabled = !bool default: break } } .disposed(by: rx.disposeBag)
However, if I modify the code as applicable Deinit is being called normally.
Is there anything I missed? I would appreciate it if you could tell me how to solve it
The text was updated successfully, but these errors were encountered:
If you put a .debug() on your stream. What is the output? Does it ever complete?
.debug()
This would be a better question to ask on the RxSwift slack channel...
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
This is a problem I found while using RxSwift. Version 6.8.0
The text was updated successfully, but these errors were encountered: