Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Refactor deprecated keyWindow api in UIDSnapshot.m
Browse files Browse the repository at this point in the history
Summary: Refactor the use of the deprecated `keyWindow` property in ../xplat/sonar/iOS/Plugins/FlipperKitUIDebuggerPlugin/FlipperKitUIDebuggerPlugin/Utilities/UIDSnapshot.m to avoid app review rejection.

Reviewed By: ingridwang

Differential Revision: D65429199

fbshipit-source-id: 81920edc730c72528c22870bb8971be5d7104711
  • Loading branch information
Chenglin Liu authored and facebook-github-bot committed Nov 4, 2024
1 parent e5a8332 commit 10a4f0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
// 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.keyWindow) {
size = application.keyWindow.bounds.size;
if (application.delegate.window) {
size = application.delegate.window.bounds.size;
}

UIGraphicsImageRenderer* renderer =
Expand Down

0 comments on commit 10a4f0e

Please sign in to comment.