Button with gradient like tint color for segmented control

933 Views Asked by At

I should to reproduce this behavior

image

I've tried using NSGradient with a simple linear gradient in order to fill it but it's a poor result. What kind of gradient is it?

1

There are 1 best solutions below

3
On

Are you putting the button in a UINavigationBar or a toolbar?

UIBarButtonItem will do that shading on its own, but it tends to live in a toolbar or navbar.