SnapKit

screenshot of SnapKit

A Swift Autolayout DSL for iOS & OS X

Overview

SnapKit is a Domain Specific Language (DSL) that simplifies Auto Layout for iOS and macOS projects. It is compatible with Cocoapods and Carthage and supports both Swift 4.x and Swift 5.x.

Features

  • Easy to use DSL for Auto Layout
  • Compatible with iOS, macOS, and tvOS
  • Supports Swift 4.0+ and Swift 5.0+

Cocoapods

To install SnapKit using Cocoapods, use the following steps:

  1. Install Cocoapods 1.1.0+ if you haven't already.
  2. Add the following line to your Podfile:
    pod 'SnapKit'
    
  3. Run pod install command in your project directory.

Carthage

To install SnapKit using Carthage, follow these steps: