{"id":13465809,"url":"https://github.com/cruisediary/DeviceLayout","last_synced_at":"2025-03-25T16:32:50.942Z","repository":{"id":56908501,"uuid":"76531540","full_name":"cruisediary/DeviceLayout","owner":"cruisediary","description":"📱AutoLayout can be set differently for each device","archived":false,"fork":false,"pushed_at":"2020-04-19T10:50:28.000Z","size":1056,"stargazers_count":165,"open_issues_count":3,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-24T04:37:26.065Z","etag":null,"topics":["autolayout","device","devicelayout","ios","resolution","swift","ui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cruisediary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-15T06:43:03.000Z","updated_at":"2025-02-11T15:49:01.000Z","dependencies_parsed_at":"2022-08-20T19:50:28.586Z","dependency_job_id":null,"html_url":"https://github.com/cruisediary/DeviceLayout","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FDeviceLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FDeviceLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FDeviceLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cruisediary%2FDeviceLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cruisediary","download_url":"https://codeload.github.com/cruisediary/DeviceLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245500472,"owners_count":20625587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autolayout","device","devicelayout","ios","resolution","swift","ui"],"created_at":"2024-07-31T15:00:35.798Z","updated_at":"2025-03-25T16:32:50.642Z","avatar_url":"https://github.com/cruisediary.png","language":"Swift","funding_links":[],"categories":["Libs","Layout [🔝](#readme)"],"sub_categories":["Layout"],"readme":"# DeviceLayout\n\n![logo](README/logo.png)\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/cruisediary/DeviceLayout)\n![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)\n[![CI Status](http://img.shields.io/travis/cruisediary/DeviceLayout.svg?style=flat)](https://travis-ci.org/cruisediary/DeviceLayout)\n[![Version](https://img.shields.io/cocoapods/v/DeviceLayout.svg?style=flat)](http://cocoapods.org/pods/DeviceLayout)\n[![License](https://img.shields.io/cocoapods/l/DeviceLayout.svg?style=flat)](http://cocoapods.org/pods/DeviceLayout)\n[![Platform](https://img.shields.io/cocoapods/p/DeviceLayout.svg?style=flat)](http://cocoapods.org/pods/DeviceLayout)\n\n**DeviceLayout** is a Swift framework that lets you set *Auto Layout* constraints's differently for each device\n\nUsing only `IBInspector` of Xcode to set up your constant per device size differently without any CODE :)\n\n`@IBInspectable` make a migic with outh any CODE\n\nOnly 3 seconds you can set design guide and make designer happy  🚀\n\n```swift\npublic enum Size: Int, Comparable {\n    case unknownSize = 0\n    /// iPhone 4, 4s, iPod Touch 4th gen.\n    case screen3_5Inch\n    /// iPhone 5, 5s, 5c, SE, iPod Touch 5-6th gen.\n    case screen4Inch\n    /// iPhone 6, 6s, 7, 8\n    case screen4_7Inch\n    /// iPhone 6+, 6s+, 7+, 8+\n    case screen5_5Inch\n    /// iPhone X, Xs\n    case screen5_8Inch\n    /// iPhone Xr\n    case screen6_1Inch\n    /// iPhone Xs Max\n    case screen6_5Inch\n    /// iPad Mini\n    case screen7_9Inch\n    /// iPad\n    case screen9_7Inch\n    /// iPad Pro (10.5-inch)\n    case screen10_5Inch\n    /// iPad Pro (11-inch)\n    case screen11Inch\n    /// iPad Pro (12.9-inch)\n    case screen12_9Inch\n}\n```\n\n## Example\n\n#### First inherit your constraint to `DeviceLayoutConstraint`\n\n![logo](README/screenshot1.png)\n\nSecond Set your own constant per device size and adjust your UI design guide\n\ncomparing `PSD`, `Sketch` or `Zeplin` UI Guide \n\nMake designer be happy :)\n\n![logo](README/screenshot2.png)\n\n## Requirements\n- iOS 8.0+\n- Swift 3+, 4+, 5+\n\n## Installation\n\n## 📲 Installation\nDeviceLayout is available through [Cocoapods](http://cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage)\n\n```ruby\npod \"DeviceLayout\"\n```\n\n### Carthage\n```\ngithub \"cruisediary/DeviceLayout\" ~\u003e 0.5.0\n```\n\n## Dependencies\n* [Device](https://github.com/Ekhoo/Device) - Light weight tool for detecting the current device and screen size written in swift.\n\n## 👨‍💻 Author\n\ncruz, cruzdiary@gmail.com\n\n## 🛡 License\n\nDeviceLayout is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruisediary%2FDeviceLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcruisediary%2FDeviceLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcruisediary%2FDeviceLayout/lists"}