UIImage masked with Label

suggest change

This makes image masked to the shape of the letters of the label:


self.maskImage.layer.mask = self.maskLabel.layer;
self.maskImage.layer.masksToBounds = YES;

Swift 3

maskImageView.mask = maskLabel
maskImageView.masksToBounds = true

Here is the result:

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents