I have a UISearchDisplayController and UISearchBar hooked up to my ViewController via Outlets from my nib.
I\'d like to hide the cancel button so that the user never
On iOS 13.0 and later, UISearchController has this property you can use:
@property (nonatomic) BOOL automaticallyShowsCancelButton API_AVAILABLE(ios(13.0)); // Default YES