You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeviceLayout is a Swift framework that lets you set Auto Layout constraints's differently for each device
Using only IBInspector of Xcode to set up your constant per device size differently without any CODE :)
@IBInspectable make a migic with outh any CODE
Only 3 seconds you can set design guide and make designer happy 🚀
publicenumSize:Int,Comparable{case unknownSize =0
/// iPhone 4, 4s, iPod Touch 4th gen.
case screen3_5Inch
/// iPhone 5, 5s, 5c, SE, iPod Touch 5-6th gen.
case screen4Inch
/// iPhone 6, 6s, 7, 8
case screen4_7Inch
/// iPhone 6+, 6s+, 7+, 8+
case screen5_5Inch
/// iPhone X, Xs
case screen5_8Inch
/// iPhone Xr
case screen6_1Inch
/// iPhone Xs Max
case screen6_5Inch
/// iPad Mini
case screen7_9Inch
/// iPad
case screen9_7Inch
/// iPad Pro (10.5-inch)
case screen10_5Inch
/// iPad Pro (11-inch)
case screen11Inch
/// iPad Pro (12.9-inch)
case screen12_9Inch
}
Example
First inherit your constraint to DeviceLayoutConstraint
Second Set your own constant per device size and adjust your UI design guide