Skip to content

Convenience Auto Layout methods using result builders

License

Notifications You must be signed in to change notification settings

PimCoumans/ConstraintBuilder

Repository files navigation

ConstraintBuilder

Convenience Auto Layout methods and ability to apply your constraints through a function builder

someView.extendToSuperview()
someOtherView.extendToSuperviewLayoutMargins()
centeredView.center(in: mySpecialLayoutGuide)
someView.applyConstraints {
	$0.leadingAnchor.constraint(equalTo: contentView.layoutMarginsGuide.leadingAnchor)
	$0.centerYAnchor.constraint(equalTo: contentView.layoutMarginsGuide.centerYAnchor)
}

About

Convenience Auto Layout methods using result builders

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages