ProductPromotion
Logo

Swift

made by https://0x3d.site

GitHub - cruisediary/DeviceLayout: 📱AutoLayout can be set differently for each device
📱AutoLayout can be set differently for each device - cruisediary/DeviceLayout
Visit Site

GitHub - cruisediary/DeviceLayout: 📱AutoLayout can be set differently for each device

GitHub - cruisediary/DeviceLayout: 📱AutoLayout can be set differently for each device

DeviceLayout

logo

Carthage compatible Swift CI Status Version License Platform

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

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

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, [email protected]

🛡 License

DeviceLayout is available under the MIT license. See the LICENSE file for more info.

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory