Start a Project

Add gradient in iOS

Add gradient in iOS

Suppose you want to add the multicolor view in your application in the background, for this you have to set the gradient in background view. Firstly, you have to add the gradient on UIView then you have to add the UIImageView and add the image to the  UIImageView then make that UIImageView transparent mean you have set the alpha of UIImageView (image.alpha = 0.1). Example using gradient:-

 

Exit mobile version