Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

296
Views
How to get RxSwift autocomplete to work in Xcode 10.1?

Just started learning RxSwift. Why is the autocomplete not working, even though rx commands build fine? enter image description here

EDIT: Temporary solution may be to add asObservable but I want the full experience! enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It is saying that the result of call bind(to:) is unused because you are not attaching it to a disposable.

You need to create a disposeBag

In the scope of the class:

let disposeBag = DisposeBag()

And the after the .bind().disposed(by: disposeBag)

If not it wont be retained, the disposeBag retains all the subscriptions until it is disposed (and if you declare it in the class scope it will be disposed when the class is disposed)

Also Rx is a complex layer "over" swift, so when there is something wrong Xcode has many troubles to detect what is exactly the bug and it becomes crazy saying that there is a mistake but maybe not the right one (and it happens too when you are trying to use the autocompletable, Xcode sucks...) there is nothing you can do to fix it.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!