Skip to content

o-liccardo/SwiftyConstraints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

SwiftyConstraints

SwiftyConstraints is and extension of the UIView class that enable every instance of the UIView's sub classes (UILabel, UIButton, etc) to set constraints programmatically between two UIView(or sub classes) in a Swifty way :)

Code Example

In this case, the label that we create will be centered to the main view

let lbl = UILabel()
lbl.setConstraint(pinTo: self.view, constraintType: .fixedSizeConstrainToCenter)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages