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