Short description of the issue:
When I search some tutorials about RxSwift, I find out so many sample codes still use deprecated addDisposableTo method instead of disposed(by:). I think that the main reason is a missing warning message.
Deprecated addDisposableTo method can not make a warning during a build time. To show a warning and avoid an old method, it need to comment out in Deprecated.swift.
Short description of the issue: When I search some tutorials about RxSwift, I find out so many sample codes still use deprecated
addDisposableTo
method instead ofdisposed(by:)
. I think that the main reason is a missing warning message.Deprecated
addDisposableTo
method can not make a warning during a build time. To show a warning and avoid an old method, it need to comment out inDeprecated.swift
.Um. it is not the correct statement. It should be:
Expected outcome:
show a warning to avoid to use deprecated method
What actually happens:
no warning.
RxSwift/RxCocoa/RxBlocking/RxTest version/commit
3.6.1
Platform/Environment
How easy is to reproduce? (chances of successful reproduce after running the self contained code)
Xcode version:
Installation method:
I have multiple versions of Xcode installed: (so we can know if this is a potential cause of your issue)
Level of RxSwift knowledge: (this is so we can understand your level of knowledge and formulate the response in an appropriate manner)