From 8269bcea6302d8180a2ab0459ebf4166a1a9372b Mon Sep 17 00:00:00 2001 From: Alex Jarvis Date: Tue, 30 Jun 2015 14:25:25 +0100 Subject: [PATCH] Fix crash --- Source/Debugging.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Debugging.swift b/Source/Debugging.swift index 8a96a74..ca2c4ee 100644 --- a/Source/Debugging.swift +++ b/Source/Debugging.swift @@ -107,11 +107,11 @@ private var labelKey = "" private func descriptionForObject(object: AnyObject) -> String { let pointerDescription = NSString(format: "%p", [object]) if let object = object as? View { - return "<\(object.dynamicType):\(object.snp_label ?? pointerDescription)>" + return "<\(object.dynamicType.description()):\(object.snp_label ?? pointerDescription)>" } else if let object = object as? LayoutConstraint { - return "<\(object.dynamicType):\(object.snp_label ?? pointerDescription)>" + return "<\(object.dynamicType.description()):\(object.snp_label ?? pointerDescription)>" } - return "<\(object.dynamicType):\(pointerDescription)>" + return "<\(object.dynamicType.description()):\(pointerDescription)>" } private extension NSLayoutRelation {