Skip to content

Convenience Auto Layout methods using result builders

License

Notifications You must be signed in to change notification settings

PimCoumans/ConstraintBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

 
 
 

Contributors

Languages