Value of type 'UISearchBar' has no member 'showLoading'

I have searchBarTextDidEndEditing func , but when I want to call searchBar in other func like that

`search.searchBar.showLoading()`

it throw error like that "Value of type 'UISearchBar' has no member 'showLoading'"

searchBarTextDidEndEditing func:

`
  func searchBarTextDidEndEditing(_ searchBar: UISearchBar) {
    self.search.animationController(forDismissed: self)
    self.search.automaticallyShowsSearchResultsController = false
  }`

As the error message is clearly stating, UISearchBar does not have a method named showLoading. Did you define it by yourself? Where? How? And what is search (or self.search) in your code?

Yes you are right, get it now, let me check again

Value of type 'UISearchBar' has no member 'showLoading'
 
 
Q