From 7ae143c3acd1e533e997f581ac4c45042b21844e Mon Sep 17 00:00:00 2001 From: Akiva Leffert Date: Tue, 13 Oct 2015 21:32:42 -0400 Subject: [PATCH] Expose location as part of LayoutConstraint for public access --- Source/LayoutConstraint.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/LayoutConstraint.swift b/Source/LayoutConstraint.swift index 14ec1ed..87aaad9 100644 --- a/Source/LayoutConstraint.swift +++ b/Source/LayoutConstraint.swift @@ -34,6 +34,9 @@ public class LayoutConstraint: NSLayoutConstraint { internal var snp_constraint: Constraint? = nil + public var snp_location: SourceLocation? { + return snp_constraint?.location + } } internal func ==(left: LayoutConstraint, right: LayoutConstraint) -> Bool {