Latest 0.5.2
License MIT
Platforms ios 8.0

Viewlet creator

CI Status

Viewlet creator is a project to allow creation of layouts and view components from JSON on both iOS and Android. It provides a way to make UI development more modular and dynamic. The example demonstrates how to use viewlet creator to prototype user interfaces real-time on multiple devices simultaneously.

Use the library together with UniLayout for simultaneous multi-platform development of UI on both iOS and Android.


  • Provides a structure to create view components from JSON
  • Register viewlets in the viewlet creator to allow viewlets within viewlets (nested items)
  • Adds utilities to safely fetch view properties from a JSON structure with data conversion
  • Share colors and coordinates/sizes by using color and dimension tables
  • Define styles with default attributes to fall back on for each viewlet
  • Define sub-attributes to be merged into the attribute list, or attributes to be excluded. For example, to define extra attributes which are specific for a platform

iOS integration guide

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

pod "ViewletCreator", '~> 0.5.2'

The above version is for Swift 5.0. For older Swift versions use the following:

  • Swift 4.2: ViewletCreator 0.5.0
  • Swift 4.1: ViewletCreator 0.4.2
  • Swift 4.0: ViewletCreator 0.4.1
  • Swift 3: ViewletCreator 0.4.0

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.viewletcreator:ViewletCreatorLib:0.5.0'

Make sure that jcenter is added as a repository.


The provided example shows how to create viewlets, register them and use them to make and prototype UI. In the example, it will use autolayout on iOS and viewgroup related layouts for Android.


The library is new but already provides a range of useful functionality. More features may be added in the future.

Latest podspec

    "name": "ViewletCreator",
    "version": "0.5.2",
    "swift_versions": "5.0",
    "summary": "ViewletCreator creates layouts from JSON for both Android and iOS.",
    "description": "ViewletCreator is a library to create Viewlet objects. These are able to create entire layouts and view components from JSON for a module oriented development of UI. Works well together with UniLayout.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Crescent Flare Apps": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.5.2"
    "platforms": {
        "ios": "8.0"
    "source_files": "ViewletCreatorIOS/ViewletCreator/Classes/**/*"

Pin It on Pinterest

Share This