[Chapter 12 - 4th edition] There's something wrong here

In the digital version I see this one error

let searchInput = searchCityName.rx
  .controlEvent(.editingDidEndOnExit)g
  .map { self.searchCityName.text ?? "" }
  .filter { !$0.isEmpty }

what is “g” after .controlEvent(.editingDidEndOnExit)

and this one:

let search = searchInput
  .flatMapLatest { text in
    ApiController.shared
      .currentWeather(for: text)
      .catchErrorJustReturn(.dummy)
  }
  .asDriver(onErrorJustReturn: .dummy)

What’s .dummy?

In chapter 11, it was .empty

This topic was automatically closed after 166 days. New replies are no longer allowed.