finds.dev

youngsoft/TangramKit

TangramKit is a powerful iOS UI framework implemented by Swift. It integrates the functions with Android layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView

View on GitHub

★ 1,211SwiftMITupdated Aug 2021

// the take

TangramKit is a Swift UIKit layout framework that reimplements Android's five layout types (Linear, Relative, Frame, Table, Flow) plus CSS float/flexbox positioning, as an alternative to Auto Layout and Masonry. It's aimed at iOS developers who find Auto Layout's constraint API verbose and want something closer to the layout models from Android or CSS.

The breadth is real: seven distinct layout engines (including a path-based layout for radial/curved arrangements) under one consistent API using tg_ prefixed properties. The author's own benchmarks show meaningful speed advantages over Auto Layout and Masonry for both construction and layout passes, which tracks since it's not solving a general constraint system. SizeClass support is woven through every layout type rather than bolted on, so adapting layouts per device isn't an afterthought.

Last commit is from August 2021 — over five years stale, with no SwiftUI story and no Swift Package Manager support (CocoaPods, Carthage, or manual file copy only), which makes it a hard sell for any Xcode project started in the last few years. Minimum deployment target of iOS 5 signals ancient code that hasn't been touched for modern toolchains, and there's real risk the operator overloads (~=, >=, +=) and six-plus parallel layout paradigms create a learning curve and debugging surface that a plain Auto Layout or SwiftUI approach wouldn't have. Support channels are QQ/Weibo/Baidu, suggesting maintenance and community activity have moved on from GitHub issues entirely.

We read the README, the directory tree and a key source file in November 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
1,211
Forks
174
Language
Swift
License
MIT
Last commit
29 Aug 2021

// nearby

If TangramKit isn't quite it.

All repos →