Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why my Modally Presented UIVisualEffect View is done in dark grey?

I am trying to to use UIVisualEffectView on my modally presented view which gonna be sign in view for user.I really dont know what is going on with UIVisualEffectView.When the modal animation appear,it work fine.But,when the animation was done,the effect turn to dark grey,Any help with that?I am stucking with that for too long.

My Simulator,Also happen on iPhone

My Storyboard

Please Help?

Here is my source code , Download

like image 585
Thiha Aung Avatar asked Dec 13 '25 23:12

Thiha Aung


1 Answers

Underlying views will disappear once a modal covers them. To prevent this from happening, you need to set the UIModalPresentationStyle of the modal view controller to OverCurrentContext:

ModalVC.modalPresentationStyle = UIModalPresentationStyle.OverCurrentContext

like image 97
David Fusilier Avatar answered Dec 15 '25 19:12

David Fusilier