Position, Move and Stretch a UIView with contentMode
Predict what will happen when bounds change
I drew a circle using a UIBezierPath
in a custom UIView
. No problem — except on rotation the circle turned into an oval — less cool.
The solution involved no code at all. You simply set the contentMode to .redraw and.. Solved! Solution from the Storyboard: