-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
No deprecation warning in Xcode on using Variable:
As per release notes provided here, Variable is deprecated in the favor of BehaviorRelay. But I dont see any deprecation warning on using Variable in Xcode
Expected outcome:
Xcode should alert the deprecation of Variable.
What actually happens:
I am using RxSwift4. My pod specs looks like
pod 'RxSwift', '~> 4.0'
pod 'RxCocoa', '~> 4.0'
My project is making use of Swift4. When I declare a variable
var emyFilter = Variable<[MyFilterModel]>([MyFilterModel(data: "{:}")])
No warning is shown, realized the deprecation of Variable only when somebody specified it in their answer on SO
Just realized that I cant even access BehaviorRelay with RxSwift (4.0.0) in pod repo. Am I missing anything here? Is BehaviorRelay available in RxSwift4.0 and what should be our course of action? Should we still stick with Variable or BehaviorRelay? There are loads of content on web regarding Variable but dont see much on BehaviorRelay yet, so little confused of its usage as well. As I cant access it in my Xcode, cant even access the source code
RxSwift/RxCocoa/RxBlocking/RxTest version/commit
Using RxCocoa (4.0.0)
Using RxSwift (4.0.0)
Platform/Environment
- iOS
- macOS
- tvOS
- watchOS
- playgrounds
How easy is to reproduce? (chances of successful reproduce after running the self contained code)
- easy, 100% repro
- sometimes, 10%-100%
- hard, 2% - 10%
- extremely hard, %0 - 2%
Xcode version:
Version 9.1 (9B55)
Installation method:
- CocoaPods
- Carthage
- Git submodules
I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)
- yes (which ones)
- no
Level of RxSwift knowledge:
(this is so we can understand your level of knowledge
and formulate the response in an appropriate manner)
- just starting
- I have a small code base
- I have a significant code base