SmartAutoLayout is an extended form of NSLayoutConstraint that provides the facility to add device specific layout constraints from Storyboard or Xib.
-
Add
SmartLayoutConstraint.swift,NSLayoutConstraint+NSCoding.handUIDeviceExt.swiftfiles in your project. -
Create Bridging Header for your project. How to create Bridging Header
-
Import
NSLayoutConstraint+NSCoding.hin your bridging header.
- Select the
NSLayoutConstraintin your interface builder and change the class toSmartLayoutConstraint
- Choose the devices in which you want to make active/inactive your Layout Constraint.


