{"id":13859093,"url":"https://github.com/acrocat/EverLayout","last_synced_at":"2025-07-14T01:32:58.984Z","repository":{"id":56910128,"uuid":"80923829","full_name":"acrocat/EverLayout","owner":"acrocat","description":"Reusable, downloadable, up-datable iOS layouts","archived":false,"fork":false,"pushed_at":"2017-11-24T17:28:08.000Z","size":2479,"stargazers_count":102,"open_issues_count":3,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-20T11:21:35.268Z","etag":null,"topics":["autolayout","cocoapods","interface-builder","ios","json","swift","ui","xcode"],"latest_commit_sha":null,"homepage":"https://acrocat.github.io/EverLayout/","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/acrocat.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":"2017-02-04T14:16:52.000Z","updated_at":"2023-10-25T02:44:34.000Z","dependencies_parsed_at":"2022-08-20T19:40:07.503Z","dependency_job_id":null,"html_url":"https://github.com/acrocat/EverLayout","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrocat%2FEverLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrocat%2FEverLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrocat%2FEverLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrocat%2FEverLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acrocat","download_url":"https://codeload.github.com/acrocat/EverLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225938768,"owners_count":17548548,"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","cocoapods","interface-builder","ios","json","swift","ui","xcode"],"created_at":"2024-08-05T03:02:32.662Z","updated_at":"2024-11-22T17:30:42.022Z","avatar_url":"https://github.com/acrocat.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"http://i.imgur.com/5d67LhG.png\"/\u003e\n\u003c/p\u003e\n\n# EverLayout\nEverLayout translates JSON/XML data into iOS layouts which can be downloaded, reused and updated at runtime.\n\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg)](https://github.com/Carthage/Carthage) \n[![Pod Version](https://img.shields.io/badge/Pod-0.3.0-6193DF.svg)](https://cocoapods.org/)\n![Swift Version](https://img.shields.io/badge/Swift-3.0-orange.svg) \n![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg) \n![Plaform](https://img.shields.io/badge/Platform-iOS-lightgrey.svg)\n\n## Features\n* Create comprehensive layouts without the clumsiness of Interface Builder or view controllers bloated with layout code.\n* Downloadable layouts - Layouts written in JSON/XML can be downloaded from a web server, meaning an App UI can be updated without having to submit for App Review.\n* Build layouts with real-time update using a simple HTTP server (or EverLayout Bridge).\n* A/B Testing - Testing multiple UIs with your users is easy when building a layout is just loading a file.\n\n## Docs\n\nMore detailed documentation [here](https://acrocat.github.io/EverLayout/).\n\nThe documentation was most recently updated for version 0.9.3.\n\n## Requirements\n\n* iOS 8.0+\n* Xcode 8.2\n* Swift 3\n\n# Installation\n\n#### Cocoapods\n\nAdd EverLayout to your `Podfile`\n\n```\nplatform :ios, '8.0'\nuse_frameworks!\npod 'Everlayout'\n```\n\n#### Carthage\n\nCreate a Cartfile that lists the framework and run carthage update.\n\n```\ngithub \"acrocat/EverLayout\"\n```\n\n#### EverLayout Bridge\n\nEverLayout Bridge can be installed via Node Package Manager.\n```\nnpm install -g ever-layout-bridge\n```\nMore info [here](https://www.github.com/acrocat/everlayoutbridge)\n\n## Usage Example\n#### Layout file\n```\n{\n\t\"name\":\"ViewController\",\n\t\"root\":{\n\t\t\"views\":{\n\t\t\t\"exampleButton\":{\n\t\t\t\t\"constraints\":{\n\t\t\t\t\t\"center\":\"@super\",\n\t\t\t\t\t\"width\":\"+120\",\n\t\t\t\t\t\"height\":\"+80\"\n\t\t\t\t},\n\t\t\t\t\"properties\":{\n\t\t\t\t\t\"text\":\"Tap Me!\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n```\n#### Swift\n```\nimport UIKit\nimport EverLayout\n\nclass ViewController: UIViewController {\n    private var layout : EverLayout?\n    public let exampleButton : UIButton = UIButton()\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        \n        let layoutData = NSData(contentsOfFile: Bundle.main.path(forResource: \"ViewController\", ofType: \"json\", inDirectory: \"Layouts\")!) as! Data\n        self.layout = EverLayout(layoutData: layoutData)\n        self.layout?.build(onView: self.view, viewEnvironment: self)\n    }\n}\n```\n\n## Bridge Example\n\n![Basic example](http://i.imgur.com/owJonXQ.gif \"Basic example\")\n\n```\n{\n\t\"name\":\"ViewController\",\n\t\"root\":{\n\t\t\"views\":{\n\t\t\t\"!redSquare\":{\n\t\t\t\t\"constraints\": {\n\t\t\t\t\t\"width height\":\"+180\",\n\t\t\t\t\t\"center\":\"@super \u003c24\"\n\t\t\t\t},\n\t\t\t\t\"properties\":{\n\t\t\t\t\t\"backgroundColor\":\"red\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n```\nHere I am running a blank application in the simulator side-by-side\nwith a ViewController layout described in JSON, which is loaded by the default\nView Controller. The app has connected to EverLayout Bridge \nwhich is serving it layout updates ever time I save the layout file.\n\nIn the example I am just changing the properties of a UIView \nto show how layouts can be designed/built without having to re-compile\nthe app.\n\n## Discussion\nAt the moment EverLayout is more of an experiment than a solution.\nThe idea was born through frustration of Interface Builder \nand the existing alternative of clunky layout code.\n\nThe goal of this project is to find a middle ground which can offer the real-time\n'visual' approach of IB, and the flexibility and re-usability of\nlayouts described with code.\n\n## Further Reading\n\n[Building and distributing iOS Layouts with EverLayout](https://hackernoon.com/building-and-distributing-ios-layouts-with-everlayout-c9ea41750f6#.b41s5bsh7)\n\n[Downloading an iOS Layout](https://medium.com/@greatirl/downloading-an-ios-layout-a9b0ede80809)\n\n## Contribute\n\nContributions to EverLayout are welcome! If you have feature requests please raise an issue, or contact me at [sterdefs@gmail.com](mailto:sterdefs@gmail.com), or [@greatirl](http://www.twitter.com/greatirl).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrocat%2FEverLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facrocat%2FEverLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrocat%2FEverLayout/lists"}