What type of value is [.layerMaxXMinYCorner, .layerMinXMinYCorner]
? Is it possible to set this parameter on a View in Interface Builder? I know how to set lay
maskedCorners
is a CACornerMask, which is an OptionSet, or bit mask. The raw value is an integer: in code, you can try printing the value of someView.layer.maskedCorners.rawValue
, or setting it via someView.layer.maskedCorners.setValue(3, forKey: "maskedCorners")
.
So you should be able to set the value of layer.maskedCorners
to the integer 3 (or whatever you need) in Interface Builder, and I don't see why it would be unsafe to do this. Though it will be a pain to figure out what set of corners that integer value actually maps to if you forget.
Did not check if it works, but you may try c:
(Don't forget to apply the mask to your view