Can I remove the image on the left of an UISearchbar and add a new image?
UISearchbar
Swift 4 solution:
searchBar.setImage(UIImage(), for: .search, state: .normal)
You probably also want to adjust the gap on the left side:
searchBar.setPositionAdjustment(UIOffset(horizontal: -20, vertical: 0), for: .search)