I have a UIView with a custom shape (see image), I would like to dim that view sometimes with a black tint. However, just pulling down the alpha doesn’t work for me, since that uses dim it.
So I thought of adding a subview to the view with the same shape and dim that view with an alpha, so it will look like the lower-bubble (see image). How can I copy the shape of an view, do I need to subclass it again or is there an easier way?

In the end I solved it by drawing a new UIView on top of the existing UIView and giving it an 40% black color.
Since I drew the view once, I could draw it again.