I do not know why but my code crashes on this $searchTerm publisher. I have many such publishers in my code and everything else works ok. It only does not work in this new Xcode version and works in previous version. If I commented this line and replace it with _searchTerm.projectedValue it starts working as usuall!
_searchTerm.projectedValue
//$searchTerm
.debounce(for: .milliseconds(350), scheduler: DispatchQueue.global())
.flatMap { term in
self.search(by: term)
}
.print("searching")
.receive(on: DispatchQueue.main)
.assign(to: \.results, on: self)
.store(in: &disposables)
I have error
Fatal error: Call of deleted method