Image Mask

Anyone has a example of a mask applied to a image in iOS?

I know that UIView has a property mask, but i didn’t find a way to use (https://developer.apple.com/documentation/uikit/uiview/1622557-mask)