On this page
Overview
SnapKit is a library for writing Auto Layout constraints on iOS, macOS, and tvOS through a chained Swift API. After adding a view, developers can group width, height, centering, and related constraints inside snp.makeConstraints.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Key features
Group constraints in a Swift DSL
Expressions such as make.width.height.equalTo(50) and make.center.equalTo(view) describe layout relationships without assembling NSLayoutConstraint calls individually. The API covers making, updating, and remaking constraints in code-driven interfaces.
Sources: [1]
Best fit
Before adoption
Official sources
- [1]SnapKit 6.0.0 README(2026-10-04)
- [2]SnapKit 6.0.0 Package.swift(2026-10-04)
- [3]SnapKit 6.0.0 release(2026-10-04)
Supplemental curator note
SnapKit fits interfaces whose constraints live in code rather than storyboards. Compare its OS minimums and Xcode 26 with Swift 6 toolchain requirement against the project before adoption.
Try it in 3 steps
- 1
Clone release 6.0.0
Run in a terminal with Xcode 26 or later selected. If several versions are installed, set DEVELOPER_DIR for this session before cloning the reviewed release.
git clone --branch 6.0.0 --depth 1 https://github.com/SnapKit/SnapKit.git snapkit-demo - 2
Inspect the Swift package targets
Read Package.swift on macOS and list the SnapKit library and test targets.
cd snapkit-demo && swift package describe - 3
Run the package tests
Build and test with the selected Xcode 26+ macOS Swift toolchain. Validate iOS or tvOS UI behavior separately in an Xcode Simulator or on a device.
swift test
Growth
Growth trends · Last 30 days
20,346 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 0
- Open PRs
- 9
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- auto
- autolayout
- snapkit
- swift
- xcode
- dsl
- cocoapods
- constraints
- layout
- ui
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- Carbon Design System9,518 Stars
1 shared tag(s) · 1 shared category(s)
share React components, Sass styles, design tokens, and icons to build product interfaces aligned with IBM Design Language
JavaScript - Ariakit8,622 Stars
1 shared tag(s) · 1 shared category(s)
build custom React interfaces from unstyled accessibility primitives for dialogs, menus, comboboxes, and other UI patterns
TypeScript - Android Jetpack (AndroidX)6,103 Stars
1 shared tag(s) · 1 shared category(s)
use independently released Jetpack libraries for Android UI, architecture, data, and background work across platform versions
Kotlin - .NET Community Toolkit3,762 Stars
1 shared tag(s) · 1 shared category(s)
add MVVM, argument-validation, and high-performance memory helpers to .NET applications as UI-framework-agnostic NuGet packages
C# - React250,873 Stars
1 shared tag(s) · 1 shared category(s)
build web and native interfaces from declarative components
JavaScript - Flutter179,318 Stars
1 shared tag(s) · 1 shared category(s)
build mobile, web, and desktop UI from one Dart codebase
Dart
Report incorrect information
Tell us if any listing information is incorrect or outdated.