Deprecate .baseline and migrate to .lastBaseline

This commit is contained in:
Robert Payne 2016-07-06 09:08:14 -07:00
parent 47d84e1e62
commit adab4b821a
1 changed files with 5 additions and 0 deletions

View File

@ -70,10 +70,15 @@ public struct ConstraintViewDSL {
return ConstraintItem(target: self.view, attributes: ConstraintAttributes.CenterY) return ConstraintItem(target: self.view, attributes: ConstraintAttributes.CenterY)
} }
@available(iOS, deprecated:0.30.0, message:"Please use migrated .lastBaseline")
public var baseline: ConstraintItem { public var baseline: ConstraintItem {
return ConstraintItem(target: self.view, attributes: ConstraintAttributes.Baseline) return ConstraintItem(target: self.view, attributes: ConstraintAttributes.Baseline)
} }
public var lastBaseline: ConstraintItem {
return ConstraintItem(target: self.view, attributes: ConstraintAttributes.Baseline)
}
@available(iOS 8.0, *) @available(iOS 8.0, *)
public var firstBaseline: ConstraintItem { public var firstBaseline: ConstraintItem {
return ConstraintItem(target: self.view, attributes: ConstraintAttributes.FirstBaseline) return ConstraintItem(target: self.view, attributes: ConstraintAttributes.FirstBaseline)