Masking UIView/UIImageView to cutout transparent text
<p>How can I mask an UIView or UIImageView so that a text is cutout from it?</p>

<p>I googled a lot and it seems that many people struggled the same. Most irritating I always tried to invert the alpha of a snapshotted view to get the result.</p>

<p>What I want looks like this:</p>

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