Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable blury background on UISearchController on tvOS

Since we are using a custom background image throughout our tvOS app, I need the UISearchController to not blur the background. Apparently the dimsBackgroundDuringPresentation flag is not available on UISearchController under tvOS. Is there any other way to get rid of it?

like image 399
martn_st Avatar asked Mar 15 '23 12:03

martn_st


1 Answers

Set the obscuresBackgroundDuringPresentation flag.

UISearchController *searchController;
searchController.obscuresBackgroundDuringPresentation = NO;
like image 87
Peter Lin Avatar answered May 07 '23 06:05

Peter Lin