awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
SnapKit avatar

SnapKit/Masonry

0
View on GitHub↗
18,157 stars·3,150 forks·Objective-C·MIT·18 views

Masonry

Masonry is a declarative UI layout engine and domain-specific language for defining layout constraints on iOS and macOS. It serves as a wrapper for native Apple layout constraints, providing a system for positioning views on a screen by declaring rules and priorities.

The library implements a fluent interface that uses chainable method calls to define complex screen layouts. This approach replaces native configuration calls with an expressive syntax for generating layout rules.

The engine includes capabilities for managing constraint priorities to resolve layout conflicts and tools for updating or resetting layout constants at runtime. It also provides debugging utilities that assign human-readable identifiers to views and constraints to isolate errors within the system layout logs.

Features

  • iOS UI Layout - Provides a declarative DSL for defining adaptive user interfaces using constraints on iOS and macOS.
  • Swift UI Constraints Wrappers - Wraps native Apple layout constraints in a streamlined interface for easier view positioning.
  • Swift Auto Layout DSL - Implements a domain-specific language for defining NSLayoutConstraints using an expressive, chainable syntax.
  • Fluent Interfaces - Implements a fluent interface with chainable method calls for expressive and readable layout definitions.
  • Constraint Priority Assignment - Maps custom priority levels to native constraints to resolve layout conflicts during rendering.
  • Fluent Constraint APIs - Offers a fluent API for defining complex screen layouts using a chain of commands.
  • Declarative Layout Engines - Functions as a declarative engine for building user interfaces via constraints and priorities.
  • Constraint-Based - Provides a high-level wrapper syntax that simplifies the generation of native Apple layout constraints.
  • Dynamic Constraint Constants - Provides a system for tracking and updating layout constants at runtime without manual references.
  • Layout Debugging Utilities - Includes utilities for naming views and constraints to isolate and fix layout errors in the console.
  • Layout Identifier Attachments - Attaches human-readable identifiers to native constraints to improve the clarity of system layout logs.
  • Adaptive View Hierarchies - Enables the construction of intricate screen layouts that scale correctly across different device sizes.
  • Constraint Lifecycle Management - Allows clearing existing positioning rules for a view and applying a new set of layout definitions.
  • Dynamic Constraint Modification - Enables updating the fixed values of existing layout rules without manual constraint references.
  • Element Positioning - Allows updating layout constants and resetting constraints at runtime to dynamically reposition elements.
  • Constraint Conflict Debugging - Helps identify and resolve conflicting layout constraints by assigning readable names to views and rules.
  • Layout Frameworks - Chainable and expressive syntax for Auto Layout constraints.
  • UI Layout and AutoLayout - Lightweight layout framework using elegant chainable syntax.
  • UI Layout Tools - Chainable syntax for Auto Layout constraints.

Star history

Star history chart for snapkit/masonryStar history chart for snapkit/masonry

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Masonry

These projects share indexed features with Masonry. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • snapkit/snapkitSnapKit avatar

    SnapKit/SnapKit

    20,336View on GitHub↗

    SnapKit is a declarative layout library and domain-specific language for managing user interface constraints and view relationships in Swift. It serves as a programmatic framework for positioning and sizing interface elements on iOS and macOS by wrapping native Auto Layout calls in a concise syntax. The library provides a fluent interface that translates high-level descriptive language into imperative layout rules. It differentiates itself through automatic constraint tracking and lifecycle management, allowing for the bulk removal and replacement of positioning rules without manual tracking

    Swift
    View on GitHub↗20,336
  • robb/cartographyrobb avatar

    robb/Cartography

    7,328View on GitHub↗

    Cartography is a declarative layout engine and constraint management framework for Swift. It provides a domain-specific language to define, group, and prioritize user interface layout rules, abstracting the process of positioning and aligning visual components. The framework distinguishes itself through a fluent API and the use of overloaded operators to define relationships between view attributes. It enables the bundling of multiple layout rules into single units, allowing for the dynamic swapping of constraint groups at runtime to transition views between different positional states. The

    Swift
    View on GitHub↗7,328
  • purelayout/purelayoutPureLayout avatar

    PureLayout/PureLayout

    7,599View on GitHub↗

    PureLayout is a declarative layout framework and Auto Layout wrapper library used for positioning views and managing constraints in iOS and macOS applications. It provides a programmatic engine for building user interfaces through constrained-based positioning and priority levels. The framework utilizes a fluent-interface API design and wrapper-based abstractions to simplify the definition of layout constraints. It features deferred and batch constraint activation to group multiple rules together for simultaneous application to the view hierarchy. The project covers general Auto Layout manag

    Objective-C
    View on GitHub↗7,599
  • gsdios/sdautolayoutgsdios avatar

    gsdios/SDAutoLayout

    5,869View on GitHub↗

    SDAutoLayout is an iOS UI layout framework and programmatic wrapper library. It provides an auto layout constraint engine and tools for managing view dimensions and positions within the Apple iOS user interface ecosystem. The project features a dynamic content height calculator and a simplified syntax for defining layout constraints to reduce boilerplate code. It includes specialized utilities for automatically determining and caching the height of table cells and labels based on their internal text content. The framework covers a range of layout capabilities, including automatic content siz

    Objective-C
    View on GitHub↗5,869
Compare all 30 related projects→

Frequently asked questions

What does snapkit/masonry do?

Masonry is a declarative UI layout engine and domain-specific language for defining layout constraints on iOS and macOS. It serves as a wrapper for native Apple layout constraints, providing a system for positioning views on a screen by declaring rules and priorities.

What are the main features of snapkit/masonry?

The main features of snapkit/masonry are: iOS UI Layout, Swift UI Constraints Wrappers, Swift Auto Layout DSL, Fluent Interfaces, Constraint Priority Assignment, Fluent Constraint APIs, Declarative Layout Engines, Constraint-Based.

Which projects share features with snapkit/masonry?

Projects with overlapping indexed features include: snapkit/snapkit — SnapKit is a declarative layout library and domain-specific language for managing user interface constraints and view… robb/cartography — Cartography is a declarative layout engine and constraint management framework for Swift. It provides a… purelayout/purelayout — PureLayout is a declarative layout framework and Auto Layout wrapper library used for positioning views and managing… gsdios/sdautolayout — SDAutoLayout is an iOS UI layout framework and programmatic wrapper library. It provides an auto layout constraint… roberthein/tinyconstraints — TinyConstraints is a declarative UI layout engine and constraint-based positioning framework designed to simplify the… youngsoft/mylinearlayout — MyLinearLayout is an Objective-C UI layout framework and responsive layout engine for iOS. It serves as a…