Latest 0.0.1
License MIT
Platforms ios , requires ARC

Build Status
Pod Version
Pod Platform
Pod License
Reference Status

What this class is for?

Ever need to move some UI blocks higher on iphone 4s?

Ever need to hide some UI block on iphone 4s and show it on every other type of device?

Ever tried to make a universal UI with some elements than should grow/shrink on some devices and Size Classes didn’t help at all?

If your answer is ‘YES’ – you may find this class helpful. SZDeviceSpecificLayoutConstraint allows you to specify additional constant values for a specific device. This allows you to make your autolayout more flexible.



This class is available via CocoaPods. Write this in your Podfile:

pod 'SZDeviceSpecificLayoutConstraint'

Then run pod install or pod update


Simply clone this repo and copy SZDeviceSpecificLayoutConstraint.h and SZDeviceSpecificLayoutConstraint.m to your project.

How to use

  1. Select your constraint in IB, set it’s class to SZDeviceSpecificLayoutConstraint:

    class set screenshot

  2. Set any specific constraint value in property inspector:

    constant set screenshot

  3. Drink your coffie, you’re awesome!

Latest podspec

    "name": "SZDeviceSpecificLayoutConstraint",
    "version": "0.0.1",
    "summary": "NSLayoutConstraint that can be adopted to a specific devices",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": "u0421u0435u0440u0433u0435u0439 u0413u0430u043bu0435u0437u0434u0438u043du043eu0432",
    "social_media_url": "",
    "platforms": {
        "ios": null
    "source": {
        "git": "",
        "tag": "0.0.1"
    "source_files": "SZDeviceSpecificLayoutConstraint.{h,m}",
    "requires_arc": true

Pin It on Pinterest

Share This