I've seen different approaches on how to design a view with rounded corners. However, what if I want to make this kind of view reactive and change the radius of some of its corners at some point? In another words, I would like to be able to modify corner radius of each corner programatically. As an example, I want to be able to make top-left corner of the view rectangular on some event and then make it rounded again on another one.
I know that maybe there are out-of-box solutions, but I am deeply interested in implementing it myself.
It would be great if at some point I am able to write something like myView.topLeftCornerRadius = 10f