Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 466 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 466 Bytes

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)
}