Download the files in the Sources folder and drag them into you project.
Usage
If you are using Swift Package Manager, you have to import FHConstraints to your file with import FHConstraints.
You can also import it globally with @_exported import FHConstraints. (e.g. in AppDelegate.swift)
FHConstraints
FHConstraints is an extension for the UIView class with useful constraint methods. Theses methods simplify the build-in constraint methods.
Requirements
Installation
Swift Package Manager
Add the following to the dependencies of your
Package.swift
:Manual
Download the files in the Sources folder and drag them into you project.
Usage
If you are using Swift Package Manager, you have to import FHConstraints to your file with
import FHConstraints
. You can also import it globally with@_exported import FHConstraints
. (e.g. inAppDelegate.swift
)Instead of:
you will use:
Convenience Methods
Combined constraining method:
Shortcut methods:
Constraint creation (but not activation) method:
License
FHConstraints is available under the MIT license. See the LICENSE file for more info.