// // UIView+AutoLayoutDebugging.m // HeyLets // // Created by Jason Lee on 3/10/15. // Copyright (c) 2015 Jason Lee. All rights reserved. // @import ObjectiveC.runtime; #import "UIView+AutoLayoutDebugging.h" @implementation UIView (AutoLayoutDebugging) - (void)setLayoutDebuggingIdentifier:(NSString *)readableName { #ifdef DEBUG objc_setAssociatedObject(self, @"layoutDebuggingIdentifier", readableName, OBJC_ASSOCIATION_COPY_NONATOMIC); #endif } #ifdef DEBUG - (NSString *)_layoutDebuggingIdentifier { return objc_getAssociatedObject(self, @"layoutDebuggingIdentifier"); } #endif @end