# SnapKit

> A Swift DSL that makes Auto Layout easy on iOS and macOS

Source: https://talira.ai/catalog/snapkit-yxywzswg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / ui layout / auto layout](https://talira.ai/categories/libraries/ui-layout/auto-layout), [languages / swift](https://talira.ai/categories/languages/swift)
- Platforms: ios, macos, tvos[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [SnapKit](https://talira.ai/orgs/snapkit.md)
- Creator: Robert Payne (robertjpayne)

SnapKit is a Swift DSL for writing Auto Layout constraints in code: instead of building NSLayoutConstraint objects by hand, you write `view.snp.makeConstraints { make in make.edges.equalToSuperview() }` and chain sizes, edges, centers, offsets and insets. It's type-safe, so invalid constraints can't be created, and it can update, remake or remove a view's constraints later. Version 6 needs iOS 14, macOS 12 or tvOS 14 and installs with Swift Package Manager.

## Links

- Website: https://snapkit.github.io/SnapKit/
- GitHub: https://github.com/SnapKit/SnapKit
- Docs: https://snapkit.github.io/SnapKit/docs/

## Problems it solves

- writing NSLayoutConstraint code by hand in my iOS app is verbose and hard to read
- lay out UIKit views in code without storyboards or Interface Builder
- pin a view to its superview's edges with insets in one line of Swift
- update or remake a view's Auto Layout constraints when the screen changes

## Features

- Chaining DSL for Auto Layout constraints
- Type-safe constraints
- Make, update, remake and remove constraints
- iOS, macOS and tvOS

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.27, adoption 0.86, momentum 0.65, community 0.80, backing 0.50, extensibility 0.00.

- latest release 6.0.0 6 months ago
- 20.3k GitHub stars
- 97 contributors
- has a company behind it
- created by Robert Payne (robertjpayne)

Warnings:

- last commit 4 months ago

## Sources

[^1]: https://github.com/SnapKit/SnapKit/blob/develop/LICENSE (checked 26 Nov 2026)
[^2]: https://github.com/SnapKit/SnapKit/blob/develop/README.md (checked 26 Nov 2026)
