The example app that demonstrates how to dynamically adapt views and constraints in storyboard and programmatically.
You can read the full explanation in my Medium article:
https://rodionartyukhin.medium.com/adaptive-layout-for-ios-in-swift-20842307116f
-
Open up Terminal,
cd
into the directory you want to place the project, and execute the following command:$ git clone https://github.com/creimbord/adaptive-layout-uikit.git
-
Then navigate to the
AdaptiveLayoutUIKit
folder:$ cd AdaptiveLayoutUIKit/
-
Open
AdaptiveLayoutUIKit.xcodeproj
in Xcode. -
Build and run the project (
โ + R
).