简体   繁体   中英

Blur View background turns opaque after view controller has loaded

My social media app has a Feed view controller embedded in a navigation controller with a search button as a bar button item. Upon clicking the search button, a search view controller embedded in a different navigation controller is pushed with a blurred background. This segue is done via Storyboard. The blurred background sustains for a half second before turning opaque. My assumption is that once the search view controller loads, the root view controller changes from the Feed view controller to the Search view controller.

Is there any way for me to sustain the blurred Feed view as the background of the Search view controller? Thanks in advance.

UPDATE: After trying this out on a simple separate Xcode project, it seems that the issue specifically occurs with the Show/Push segue (once again, made via storyboard) but does not with the other segue styles. Is there a workaround to this?

Simplified project storyboard

Simplified project blurred background issue GIF

In my case, I would present search VC, on click of search button action, instead of pushing using a separate navigation controller. This could help avoid the hierarchy conflict that you are facing currently.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM