Enabled landscape orientation for iPad devices. iPhone is still locked to portrait orientation.
Views and constraints are still set up programmatically. Views that were not behaving correctly during orientation changes now have their constraints consolidated into a helper function that is called every time the screen orientation changes. This helper function deactivates the existing constraints and then reactivates a new set of constraints with any orientation-related changes that are needed.
Enabled landscape orientation for iPad devices. iPhone is still locked to portrait orientation.
Views and constraints are still set up programmatically. Views that were not behaving correctly during orientation changes now have their constraints consolidated into a helper function that is called every time the screen orientation changes. This helper function deactivates the existing constraints and then reactivates a new set of constraints with any orientation-related changes that are needed.