Contents

kean/align

The best way to create constraints in code.

Documentation

The documentation for Align is created using DocC and covers all of its APIs in a clear visual way. There is also a cheat sheet available that lists all of the available APIs.

<a href="https://kean-docs.github.io/align/documentation/align/"> <img alt="Screen Shot 2022-07-13 at 10 08 57 AM" src="https://user-images.githubusercontent.com/1567433/178755429-9420d25e-dad1-4e61-9a22-04139c5746e6.png" width="858px"> </a>

Requirements

| Align | Swift | Xcode | Platforms | |----------------|-------------|-------------------|------------------------------| | Align 3.3 | Swift 5.10 | Xcode 15.3 | iOS 14, tvOS 14, macOS 10.16 | | Align 3.0 | Swift 5.6 | Xcode 13.3 | iOS 12, tvOS 12, macOS 10.14 |

Why Align

Align strives for clarity and simplicity by following Swift API Design Guidelines. Although most of the APIs are compact, it is a non-goal to enable the most concise syntax possible.

Align is for someone who:

  • Prefers fluent high-level APIs
  • Doesn't want to depend on big, complex libraries – Align has only ~330 lines of code
  • Prefers to have as little extensions for native classes as possible – Align adds a single property: anchors
  • Doesn't overuse operator overloads, prefers fast compile times
  • Likes NSLayoutAnchor but wishes it had simpler API which didn't require manually activating constraints

Package Metadata

Repository: kean/align

Default branch: main

README: README.md