diff --git a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Utilities/UIDSnapshot.m b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Utilities/UIDSnapshot.m index c2806ebd8b4..16211936614 100644 --- a/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Utilities/UIDSnapshot.m +++ b/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Utilities/UIDSnapshot.m @@ -31,7 +31,7 @@ // like in Split View on an iPad, the running application is // not using the entire screen thus the snapshot stretches to // fill the screen size which is incorrect. - if (application.delegate.window) { + if ([application.delegate respondsToSelector:@selector(window)]) { size = application.delegate.window.bounds.size; }