title: how can i add opacity to bottom of my image in swift?
body: <p>I want to add an opacity but only on the bottom of my imageview, e.g my background of my screen is black and i want the image to fade in black at the bottom of the image. How can i achieve this in swift? An example is shown in the image below:
  <a href="https://i.stack.imgur.com/lxxl6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lxxl6.png" alt="enter image description here" /></a></p>