Pragmatically creating UIView Mask : <p>I have a UIView, which has a user selected number of circles (5) and a gradient color scheme  (Top image)  That part was easy</p>

<p>The circles are just additional subViews of the master UIView with black borders  and the master UIView has a Red border</p>

<p>How can one create the cyan blue  mask seen on the bottom image ?
With Code ?</p>

<p>Thanks in advance</p>

<p><a href="https://i.stack.imgur.com/9LjpE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9LjpE.png" alt="enter image description here"></a></p>
