From adab4b821aa92d0ac33c6e4f6c4bd9219423020c Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Wed, 6 Jul 2016 09:08:14 -0700 Subject: [PATCH] Deprecate .baseline and migrate to .lastBaseline --- Source/ConstraintViewDSL.swift | 5 +++++ 1 file changed, 5 insertions(+) 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)