Position, Move and Stretch a UIView with contentMode

Predict what will happen when bounds change

Photo by Tiago Felipe Ferreira on Unsplash

I drew a circle using a in a custom . 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: