Is there a blending mode or something else I can set for UIControls so that I can see a layer beneath it?
问题 I have various UIControls added to my view. I'd like to have an image of a gradient show through it like I can with a like a blending mode in Photoshop. Here I used the luminance blending mode. I'm hoping there's something similar that I can access on the layer in Swift. 回答1: I figured out how to do this with the compositingFilter property. I tried this, but had it backwards. It must be used on the image which should be a layer on top of the UIControls: let image: UIImage = UIImage(named: