I would like to know how to use these properties in the right manner.
As I understand, frame
can be used from the container of the view I am creating.
It sets the view position relative to the container view. It also sets the size of that view.
Also center
can be used from the container of the view I’m creating. This property changes the position of the view relative to its container.
Finally, bounds
is relative to the view itself. It changes the drawable area for the view.
Can you give more info about the relationship between frame
and bounds
? What about the clipsToBounds
and masksToBounds
properties?