Skip to content

Commit

Permalink
Remove reference to deprecated property in iOS build of base-console …
Browse files Browse the repository at this point in the history
…demo

Summary: `applicationFrame` property of `UIScreen` has been deprecated since iOS 9.0.

Reviewed By: thorntondr

Differential Revision: D60075989

fbshipit-source-id: 3b5457f613a539a32bca2d5a986b7878989e21ac
  • Loading branch information
leapally authored and facebook-github-bot committed Dec 23, 2024
1 parent efa2aab commit e7787a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)viewDidLoad
// writing the logs to standard output (e.g,. debug window) and queuing the messages to allow popping them
Messenger::get().setOutputType(Messenger::MessageOutput(Messenger::OUTPUT_STANDARD | Messenger::OUTPUT_QUEUED));

const CGRect rect = [[UIScreen mainScreen] applicationFrame];
const CGRect rect = [UIApplication sharedApplication].delegate.window.frame;
messengerView_ = [[MessengerView alloc] initWithFrame:rect];
[self.view addSubview:messengerView_];

Expand Down

0 comments on commit e7787a1

Please sign in to comment.