diff --git a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIDNodeDescriptor.m b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIDNodeDescriptor.m index f3f7bb671ab..3b576ce45cc 100644 --- a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIDNodeDescriptor.m +++ b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIDNodeDescriptor.m @@ -20,7 +20,7 @@ - (NSString*)nameForNode:(id)node { } - (UIDInlineAttributes*)inlineAttributesForNode:(id)node { - return @{@"address" : [NSString stringWithFormat:@"%p", node]}; + return nil; } - (UIDGenericAttributes*)hiddenAttributesForNode:(id)node { diff --git a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIView+UIDDescriptor.m b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIView+UIDDescriptor.m index a6ea0c6c940..4ecfaff9d68 100644 --- a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIView+UIDDescriptor.m +++ b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIView+UIDDescriptor.m @@ -14,6 +14,7 @@ #import "UIDSnapshot.h" #import "UIView+UIDDescriptor.h" +static UIDMetadataId AddressAttributeId; static UIDMetadataId UIViewAttributeId; static UIDMetadataId FrameAttributeId; static UIDMetadataId BoundsAttributeId; @@ -83,6 +84,9 @@ - (nonnull NSString*)UID_name { - (void)UID_aggregateAttributes:(nonnull UIDMutableAttributes*)attributes { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ + AddressAttributeId = [[UIDMetadataRegister shared] + registerMetadataWithType:UIDEBUGGER_METADATA_TYPE_ATTRIBUTE + name:@"Address"]; UIViewAttributeId = [[UIDMetadataRegister shared] registerMetadataWithType:UIDEBUGGER_METADATA_TYPE_ATTRIBUTE name:@"UIView"]; @@ -345,6 +349,11 @@ - (void)UID_aggregateAttributes:(nonnull UIDMutableAttributes*)attributes { NSMutableDictionary* viewAttributes = [NSMutableDictionary new]; + [viewAttributes + setObject:[UIDInspectableText + fromText:[NSString stringWithFormat:@"%p", self]] + forKey:AddressAttributeId]; + [viewAttributes setObject:[UIDInspectableBounds fromRect:self.frame] forKey:FrameAttributeId]; [viewAttributes setObject:[UIDInspectableBounds fromRect:self.bounds]