How to simulate a red glitter button in an iphone / ipad contact?

I want to have a green OK button and a red Cancel button in my application. Red will look like this:

enter image description here

I wonder if this can be done programmatically instead of taking a screenshot → Photoshop lessons → being configured as a custom button in IB

Thanks! Leo

+6
source share
4 answers

I like the Jeff LaMarche Gradient Buttons library for this kind of thing.

+3
source

Check out UIKit-Artwork-Extractor on github. It allows you to reproduce colors and save ready-to-use buttons.

+1
source

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


All Articles