Vibration Effect on UIButton in Builder Interface

I have some blurry and vibrant visuals in one of my controllers. I have shortcuts that work correctly with vibration, but every time I try to add a UIButton to the view, the text seems transparent and the button background seems to have brightness. I am looking for the effect that the β€œChange” button has in the notification center. I have attached some photos for reference.

What I want:

enter image description here

What's happening:

enter image description here

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

EDIT

Now here's what happens, it appears with vibration, but the text is not dark:

enter image description here

+6
source share
1 answer

You can place your button above the image with the brightness effect (the view should have the same frame as your button).

Take a look:

enter image description here

enter image description here

+19
source

Source: https://habr.com/ru/post/985769/


All Articles