July 14, 2020

Adding Constraints in Xcode

The Problem while view in portrait mode:

Portrait Looks Bad
The content is falling off of the right edge while in portrait mode.

The Problem while view in landscape mode:

Landscape Looks Bad
The content is falling off of the right edge while in landscape mode.

The problem here is that no constraints have been set. To do so:

Adding Constraints in Xcode
Adding Constraints in Xcode for a UIWebView on a View.

The resulting effect is that the layout is properly sized…

Portrait is now good to go.
Portrait is now good to go.