Search code examples
swiftswift2uivisualeffectviewuiblureffect

Blur background view after segue


I have two views, one with some information and a button which performs a show segue to another view controller which I will call SVC. I want to add the UIBlurEffect to the UIView on SVC but all I have come across is adding subviews with blur which doesn't help me at all. Any help would be fantastic.


Solution

  • If you are going to make your SVC as a blur above your first VC. U can do this:

    first make the UIView on SVC bgcolor to clearColor enter image description here

    second add UIBlurEffect to the UIView as subview like this enter image description here

    and then make your content in the view in Visual Effect View