It\'s easy to add a custom image or a background for a UIButton , but there seems to be no programmatic way to set one of the following default iOS icons for a
UIButton
Now you can just do
button.setImage(UIImage(.search), for: .normal)