Skip to content

SmartAutoLayout is an extended form of NSLayoutConstraint that provides the facility to add device specific layout constraints from Storyboard or Xib.

License

Notifications You must be signed in to change notification settings

nagibazad/SmartAutoLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SmartAutoLayout

SmartAutoLayout is an extended form of NSLayoutConstraint that provides the facility to add device specific layout constraints from Storyboard or Xib.

How To Use

  1. Add SmartLayoutConstraint.swift, NSLayoutConstraint+NSCoding.h and UIDeviceExt.swift files in your project.

  2. Create Bridging Header for your project. How to create Bridging Header

  3. Import NSLayoutConstraint+NSCoding.h in your bridging header.

    alt text

  1. Select the NSLayoutConstraint in your interface builder and change the class to SmartLayoutConstraint

alt text

  1. Choose the devices in which you want to make active/inactive your Layout Constraint.

alt text

About

SmartAutoLayout is an extended form of NSLayoutConstraint that provides the facility to add device specific layout constraints from Storyboard or Xib.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published