SearchTextField icon indicating copy to clipboard operation
SearchTextField copied to clipboard

Sometimes isn't appearing

Open dfmarulanda opened this issue 6 years ago • 3 comments

Sometimes when i'm doing a request, the SearchTextField doesn't appear even if there are items inside it.

 searchView.rx.text.orEmpty
      .debounce(0.5, scheduler: MainScheduler.instance)
      .distinctUntilChanged()
      .filterEmpty()
      .map { [unowned self] text in
        self.searchView.showLoadingIndicator()
        let request = MKLocalSearch.Request()
        request.naturalLanguageQuery = text
        request.region = self.mapView.region
        return request
      }
      .flatMapLatest{ MKLocalSearch(request:$0).rx.start() }
      .map { $0.mapItems }
      .filterEmpty()
      .asDriver(onErrorJustReturn: [])
      .drive( onNext:{ location in
        self.searchView.filterStrings(location.compactMap { $0.placemark.title } )
        self.searchView.stopLoadingIndicator()
        self.searchView.layoutIfNeeded()
      }).disposed(by:disposeBag)```

dfmarulanda avatar Jan 22 '19 22:01 dfmarulanda

It seems that the response of my request doesn't match with the exact value of the word i entered into the textView.

dfmarulanda avatar Jan 22 '19 22:01 dfmarulanda

@apasccon I see that you're not actively maintaining this repo; if you need help I can keep it updated.

dfmarulanda avatar Jan 23 '19 23:01 dfmarulanda

Hey! It will be totally appreciated!

El El mié, 23 ene. 2019 a las 20:03, Daniel Marulanda < [email protected]> escribió:

@apasccon https://github.com/apasccon I see that you're not actively maintaining this repo; if you need help I can keep it updated.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/apasccon/SearchTextField/issues/163#issuecomment-457001039, or mute the thread https://github.com/notifications/unsubscribe-auth/ACxuu2wR1jcPbMT8PX-Pg3ogXqCVLjMiks5vGOpegaJpZM4aNpiZ .

--

Alejandro Pasccon [email protected] Skype: apasccon Mobile: +54 (9) 261 5789766

apasccon avatar Jan 23 '19 23:01 apasccon