I've been working with UIVisualEffectView to allow background blur and label/button vibrancy. It works great when you're using native controls but I would like to use the same Vibrancy with custom buttons.
See the example images, storyboard with label,button and 2 custom buttons (png 24bit), the result is working perfectly with label and native button, but custom buttons just disappear. Anyone?
You should definitly take a look at the following github: https://github.com/a1anyip/AYVibrantButton
or for the swift variant: https://github.com/remzr7/RZVibrantButton note that I did not get the swift variant to work but I used the Objective C button a few times.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.