Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vibrancy Effect on UIButton in Interface Builder

I have some visual effect views with blur and vibrancy in one of my view controllers. I have labels working correctly with vibrancy, but every time i try to add a UIButton to the view, the text appears to be transparent, and the background of the button appears to have vibrancy. I am looking for the effect the "Edit" button has in notification center. I have attached some photos for reference.

What I want:

enter image description here

What is happening:

enter image description here

If there is no way to accomplish this in IB, can it be done with code? I am using Swift.

EDIT

Now here is what happening, it appears with vibrancy, but the text is not dark:

enter image description here

like image 894
Jacob Avatar asked Apr 23 '15 10:04

Jacob


1 Answers

You can place your button above the view with vibrancy effect (view must have the same frame as your button).

Take a look:

enter image description here

enter image description here

like image 180
Vlad Avatar answered Sep 16 '22 13:09

Vlad