I’m looking into ways to add a property (an integer in this case) to all UIView instances, whether they are subclassed or not. Is using objc_setAssociated
UIView
objc_setAssociated
Use tag. That's what it was meant for.
tag