Whazzup
Whazzup

Reputation: 185

Background custom camera view with blur effect in Swift 3

I want to make a launch screen for an app that has got a custom camera view in the background which is blurred by a visual effect view. In the foreground you've got all the important buttons for the login.

My custom camera view is already finished and works fine; the problem is, that I can't add any buttons or a blur effect to it, and I don't know why. Here's my storyboard scene:

My storyboard

I was expecting it looking like that: blurred camera view in the background, login button in the foreground.

Instead, it looks like this:

What the actual app looks like

Can anyone explain me why that happens and what I have to do?

Thank you!

Upvotes: 0

Views: 894

Answers (1)

mcd
mcd

Reputation: 726

You should change your hierarchy. It should be like this: View

 - Camera View
 - Visual Effect View
     - View
         - Login (Button)

And try rearranging your views because there is a bug that seems to reorder the elements without showing you.

Upvotes: 1

Related Questions