mirror of https://github.com/SnapKit/SnapKit
Deprecate .baseline and migrate to .lastBaseline
This commit is contained in:
parent
47d84e1e62
commit
adab4b821a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue