Added support on constraint maker for iOS 8 properties

This commit is contained in:
Robert Payne 2015-04-11 19:41:10 +12:00
parent 2dec123ce0
commit 656920acd3
1 changed files with 12 additions and 0 deletions

View File

@ -43,6 +43,18 @@ final public class ConstraintMaker {
public var centerY: Constraint { return self.addConstraint(ConstraintAttributes.CenterY) }
public var baseline: Constraint { return self.addConstraint(ConstraintAttributes.Baseline) }
#if os(iOS)
public var firstBaseline: Constraint { return self.addConstraint(ConstraintAttributes.FirstBaseline) }
public var leftMargin: Constraint { return self.addConstraint(ConstraintAttributes.LeftMargin) }
public var rightMargin: Constraint { return self.addConstraint(ConstraintAttributes.RightMargin) }
public var topMargin: Constraint { return self.addConstraint(ConstraintAttributes.TopMargin) }
public var bottomMargin: Constraint { return self.addConstraint(ConstraintAttributes.BottomMargin) }
public var leadingMargin: Constraint { return self.addConstraint(ConstraintAttributes.LeadingMargin) }
public var trailingMargin: Constraint { return self.addConstraint(ConstraintAttributes.TrailingMargin) }
public var centerXWithinMargins: Constraint { return self.addConstraint(ConstraintAttributes.CenterXWithinMargins) }
public var centerYWithinMargins: Constraint { return self.addConstraint(ConstraintAttributes.CenterYWithinMargins) }
#endif
public var edges: Constraint { return self.addConstraint(ConstraintAttributes.Edges) }
public var size: Constraint { return self.addConstraint(ConstraintAttributes.Size) }
public var center: Constraint { return self.addConstraint(ConstraintAttributes.Center) }