Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

302
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda