[Solved] Create a gradient overlay over an image


That looks like it is a pink to orange gradient with an opacity of about 60%

What I would do is create it on a design software like Sketch (which I use and love). It is super easy to create a gradient on there and there are tons of tutorials. You can get a 30-day trial for free ;). After making the gradient, you can just plop it into your assets folder and add a UIImageView to your project to get that gradient in your app.

If you want to create the gradient programmatically, here is a link to make a gradient: https://www.raywenderlich.com/90693/modern-core-graphics-with-swift-part-2

…and to change the opacity of a CGRect: How to set the alpha of an UIImage in SWIFT programmatically?

Hope this helps! If you like this answer, it would mean so much to just give it a checkmark. Have a great day. Cheers, Theo

solved Create a gradient overlay over an image