diff --git a/Source/ConstraintViewDSL.swift b/Source/ConstraintViewDSL.swift index 3e85df0..2a2331d 100644 --- a/Source/ConstraintViewDSL.swift +++ b/Source/ConstraintViewDSL.swift @@ -70,10 +70,15 @@ public struct ConstraintViewDSL { return ConstraintItem(target: self.view, attributes: ConstraintAttributes.CenterY) } + @available(iOS, deprecated:0.30.0, message:"Please use migrated .lastBaseline") public var baseline: ConstraintItem { return ConstraintItem(target: self.view, attributes: ConstraintAttributes.Baseline) } + public var lastBaseline: ConstraintItem { + return ConstraintItem(target: self.view, attributes: ConstraintAttributes.Baseline) + } + @available(iOS 8.0, *) public var firstBaseline: ConstraintItem { return ConstraintItem(target: self.view, attributes: ConstraintAttributes.FirstBaseline)