I am developing an Application where I wanted to change the text of Search String in the SearchBar. I wanted to change the text of Cancel Button Also which appears next to t
if #available(iOS 13.0, *) { controller.searchBar.setValue("Done", forKey:"cancelButtonText") } else { controller.searchBar.setValue("Done", forKey:"_cancelButtonText") }