Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

304
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda