diff --git a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIDUIApplicationDescriptor.mm b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIDUIApplicationDescriptor.mm index d5edf203626..39879755f3e 100644 --- a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIDUIApplicationDescriptor.mm +++ b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Descriptors/UIDUIApplicationDescriptor.mm @@ -59,7 +59,12 @@ - (UIDBounds*)boundsForNode:(UIApplication*)node { } - (UIImage*)snapshotForNode:(UIApplication*)node { - return UIDApplicationSnapshot(node, [self childrenOfNode:node]); + NSMutableArray* windows = [NSMutableArray new]; + UIWindow* window = node.keyWindow; + if (window != nil) { + [windows addObject:window]; + } + return UIDApplicationSnapshot(node, windows); } @end