Latest 0.3.8
License MIT
Platforms ios 8.0

CI Status

UniLayout is a project to make multi-platform development easier for iOS and Android regarding layouts. The goal is to have a uniform layout system to port the flexibility of Android layouts to iOS while adding more features to Android. Based on the layout container system from Android (like LinearLayout and FrameLayout).


  • Ports the Android layout capabilities to iOS, including Linear Layout, Frame Layout and Scroll View
  • For iOS, the scroll view automatically updates its content size
  • Adds additional capabilities like minimum and maximum sizes and more flexibility in alignment (through gravity)
  • For iOS, the linear and frame containers also have built-in support for taps and highlighting
  • For Android, there is a custom reusing container which can be used as an alternative for the recycler view

iOS integration guide

The library is available through CocoaPods. To install it, simply add the following line to your Podfile:

Swift 4:

pod "UniLayout", '~> 0.3.8'

Swift 3:

pod "UniLayout", '~> 0.3.7'

Android integration guide

When using gradle, the library can easily be imported into the build.gradle file of your project. Add the following dependency:

compile 'com.crescentflare.unilayout:UniLayoutLib:0.3.6'

Make sure that jcenter is added as a repository.


The provided example shows how to build several layout styles. The layout is written in code on iOS, or xml files on Android.

More information

Refer to the wiki for more detailed information about the library.


The library is in its initial state but has basic functionality which can already be useful. However, code isn’t optimized yet and may contain bugs. Code optimizations and more features will be added in the future.

Latest podspec

    "name": "UniLayout",
    "version": "0.3.8",
    "summary": "A uniform layout system for iOS and Android.",
    "description": "A uniform layout system for both iOS and Android. Based on the layout container system from Android (like LinearLayout and FrameLayout).",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Crescent Flare": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.3.8"
    "platforms": {
        "ios": "8.0"
    "source_files": "UniLayoutIOS/UniLayout/Classes/**/*",
    "resource_bundles": {
        "UniLayout": [
    "pushed_with_swift_version": "4.0"

Pin It on Pinterest

Share This