The best way to create constraints in code.
translatesAutoresizingMaskIntoConstraints
and constraints activation.To give you a taste of what the semantic APIs look like, here is an example:
view.anchors.edges.pin(insets: 20, alignment: .center)
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.
Align | Swift | Xcode | Platforms |
---|---|---|---|
Align 3.2 | Swift 5.8 | Xcode 14.3 | iOS 13.0, tvOS 13.0, macOS 10.15 |
Align 3.0 | Swift 5.6 | Xcode 13.3 | iOS 12.0, tvOS 12.0, macOS 10.14 |
Align 2.0 | Swift 5.1 | Xcode 11.0 | iOS 11.0, tvOS 11.0, macOS 10.13 |
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:
anchors
link |
Stars: 352 |
Last commit: 1 week ago |
.base
propertySwiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics