Ios swift – How to make the view fit exactly to screen without overflowing bounds of phone screen when it gets rotated?
I had a fixed View RectangleView that displays content from external sources with arbitrary width and height which means that direct adjustments of frame is not preferred with the .frame modifier. When user clicks on a button to rotate this…