DeviceLayout alternatives and similar libraries
Based on the "Auto Layout" category.
Alternatively, view DeviceLayout alternatives based on common mentions on social networks and blogs.
-
TinyConstraints
TinyConstraints is the syntactic sugar that makes Auto Layout sweeter for human use. -
MisterFusion
A Swift DSL for AutoLayout. It can be used in both Swift and Objective-C, in addition, it supports Size Class. -
QuickLayout
Written in pure Swift, QuickLayout offers a simple and easy way to manage Auto Layout in code. -
Swift-iOS-Localize-Constraint
localize constraint on the fly to support RTL and LTR with same view.
Get performance insights in less than 4 minutes.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of DeviceLayout or a related project?
README
DeviceLayout
[logo](README/logo.png)
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 ๐
public enum Size: 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
[logo](README/screenshot1.png)
Second Set your own constant per device size and adjust your UI design guide
comparing PSD
, Sketch
or Zeplin
UI Guide
Make designer be happy :)
[logo](README/screenshot2.png)
Requirements
- iOS 8.0+
- Swift 3+, 4+, 5+
Installation
๐ฒ Installation
DeviceLayout is available through Cocoapods or Carthage
pod "DeviceLayout"
Carthage
github "cruisediary/DeviceLayout" ~> 0.5.0
Dependencies
- Device - Light weight tool for detecting the current device and screen size written in swift.
๐จโ๐ป Author
cruz, cruzdiary@gmail.com
๐ก License
DeviceLayout is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the DeviceLayout README section above
are relevant to that project's source code only.