diff --git a/Snap.xcodeproj/project.pbxproj b/Snap.xcodeproj/project.pbxproj index 9c28aba..d7eec06 100644 --- a/Snap.xcodeproj/project.pbxproj +++ b/Snap.xcodeproj/project.pbxproj @@ -32,6 +32,7 @@ EECDB39C1AC0CBFF006BBC11 /* View+Snap.swift in Sources */ = {isa = PBXBuildFile; fileRef = EECDB3671AC0C95C006BBC11 /* View+Snap.swift */; }; EECDB39D1AC0CC03006BBC11 /* Snap.h in Headers */ = {isa = PBXBuildFile; fileRef = EECDB3661AC0C95C006BBC11 /* Snap.h */; settings = {ATTRIBUTES = (Public, ); }; }; EEFCF32C1AD910B900A425FA /* Debugging.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEFCF32B1AD910B900A425FA /* Debugging.swift */; }; + EEFCF32D1AD9250C00A425FA /* Debugging.swift in Sources */ = {isa = PBXBuildFile; fileRef = EEFCF32B1AD910B900A425FA /* Debugging.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -366,6 +367,7 @@ buildActionMask = 2147483647; files = ( EECDB3951AC0CBFF006BBC11 /* Constraint.swift in Sources */, + EEFCF32D1AD9250C00A425FA /* Debugging.swift in Sources */, EECDB3991AC0CBFF006BBC11 /* ConstraintRelation.swift in Sources */, EECDB39C1AC0CBFF006BBC11 /* View+Snap.swift in Sources */, EECDB39A1AC0CBFF006BBC11 /* EdgeInsets.swift in Sources */, diff --git a/Source/Constraint.swift b/Source/Constraint.swift index 020aec2..8ba6784 100644 --- a/Source/Constraint.swift +++ b/Source/Constraint.swift @@ -672,7 +672,7 @@ private extension NSLayoutAttribute { private struct ConstraintInstallInfo { - weak var view: UIView? = nil + weak var view: View? = nil let layoutConstraints: NSHashTable } diff --git a/Source/Debugging.swift b/Source/Debugging.swift index 8e6a5f7..581117f 100644 --- a/Source/Debugging.swift +++ b/Source/Debugging.swift @@ -106,7 +106,7 @@ private var labelKey = "" private func descriptionForObject(object: AnyObject) -> String { let pointerDescription = NSString(format: "%p", [object]) - if let object = object as? UIView { + if let object = object as? View { return "<\(object.dynamicType):\(object.snp_label ?? pointerDescription)>" } else if let object = object as? LayoutConstraint { return "<\(object.dynamicType):\(object.snp_label ?? pointerDescription)>"