Browse Source

Expose location as part of LayoutConstraint for public access

Akiva Leffert 10 years ago
parent
commit
7ae143c3ac
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/LayoutConstraint.swift

+ 3 - 0
Source/LayoutConstraint.swift

@@ -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 {