iOS UI layout library with linear, relative, flow, float, grid, path, and flex-style containers beyond Auto Layout alone.
Overview
MyLayout, also known as MyLinearLayout in its repository title, is an Objective-C framework for building iOS interfaces programmatically. It combines ideas from iOS Auto Layout and Size Classes with Android-style layout classes and HTML/CSS float, flexbox, and bootstrap-style patterns.
Developers use container types such as linear, relative, frame, table, flow, float, path, grid, and flex layouts to arrange subviews with margin and size helpers exposed on UIView. Size Class support helps adapt layouts across device sizes. A Swift counterpart is named TangramKit in the documentation.
The project includes performance comparison tables against frame layout, Auto Layout, Masonry, and UIStackView, demo samples, FAQ guidance, and installation via copying sources, CocoaPods, or Carthage. It targets iPad and iPhone example apps for evaluation.
Key features
- Linear and relative layout containers
- Flow, float, and flex layout modes
- Table, grid, and path layouts
- Margin and size constraint helpers
- iOS Size Class integration
- RTL layout support
- CocoaPods and Carthage distribution
- Swift TangramKit companion
Use cases
- Build complex iOS UIs in code
- Replace verbose Auto Layout chains
- Implement responsive layouts with Size Classes
- Prototype collection and table style grids