mirror of https://github.com/SnapKit/SnapKit
Expose location as part of LayoutConstraint for public access
This commit is contained in:
parent
0fe4ad005b
commit
7ae143c3ac
|
@ -34,6 +34,9 @@ public class LayoutConstraint: NSLayoutConstraint {
|
||||||
|
|
||||||
internal var snp_constraint: Constraint? = nil
|
internal var snp_constraint: Constraint? = nil
|
||||||
|
|
||||||
|
public var snp_location: SourceLocation? {
|
||||||
|
return snp_constraint?.location
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal func ==(left: LayoutConstraint, right: LayoutConstraint) -> Bool {
|
internal func ==(left: LayoutConstraint, right: LayoutConstraint) -> Bool {
|
||||||
|
|
Loading…
Reference in New Issue