Latest2.1.4
Homepagehttps://github.com/alibaba/Tangram-iOS
LicenseMIT
Platformsios 8.0, requires ARC
DependenciesSDWebImage, LazyScroll, VirtualView
Authors,

Tangram – iOS

Tangram is a UI Framework for building a fast and dynamic ScrollView.

The system requirement for Tangram is iOS 7.0+

中文站点

Tips: If you get [!] Unable to find a specification for `LazyScroll` when executed pod install, you can try to update ruby to 2.3.0 or higher and update CocoaPods to 1.0.0 or higher . If it doesn’t work , you can try to reset or update CocoaPods master repo again .

Feature

  • Two platform support (iOS & Android, See Tangram-Android in Github for Android Version)
  • Fast Generate View by JSON Data , provide default parser.
  • Easily control the reuseability of views
  • Provide multiple built-in layouts
  • Custom layout style (by JSON Data or code)
  • High scroll performance (Base on LazyScrollView)
  • Extendable API

Advantage

Compare to system standard controls(like UICollectionView, GridView),
the advantages of Tangram are :

Easily control ‘layout’ selected for elements(cells).

Tangram

In the picture above, it shows several kinds of layout, Tangram can easily control
which kind of layout these elements use. You can find its usage in TangramDemo.

Provide default parser , quick parse JSON to View

JSON to View can be very easy by use our default parser.

You can open TangramDemo to see how to tranfer JSON to view.

The default parsers are same in two platform (Android and iOS).

Provide several kinds of layout

We provide internal layouts, including:

  • FlowLayout (like grid)
  • One drag N Layout (N=2/3/4)
  • Fix Layout
  • Sticky Layout
  • Dragable Layout
  • PageScroll Layout
  • WaterFlow Layout

To See detailed performance of interal layouts , Click me

Install

Use Cocoapods to Get latest version of Tangram

pod 'Tangram'

Getting Started

微信群

Tangram

搜索 tangram_ 或者扫描以上二维码添加 Tangram 为好友,以便我们邀请你入群。

Latest podspec

{
    "name": "Tangram",
    "version": "2.1.4",
    "summary": "Tangram is a modular UI solution for building native page dynamically & quickly.",
    "description": "Tangram is a modular UI solution for building native page dynamically & quickly.nAnd Tangram 2.x with VirtualView can create & release UI component dynamically.nThe solution also have an implementation for Andriod platform.",
    "homepage": "https://github.com/alibaba/Tangram-iOS",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "fydx": "[email protected]",
        "HarrisonXi": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/alibaba/Tangram-iOS.git",
        "tag": "2.1.4"
    },
    "resources": "Tangram/Resources/*",
    "source_files": "Tangram/**/*.{h,m}",
    "dependencies": {
        "SDWebImage": [
            "~> 4.2"
        ],
        "LazyScroll": [
            "1.0.1"
        ],
        "VirtualView": [
            "1.2.7"
        ]
    }
}

Pin It on Pinterest

Share This