Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Use iOS 16 APIs to rotate orientation #36874

Merged
merged 1 commit into from
Oct 20, 2022
Merged

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Oct 19, 2022

On iOS 16:

BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:)

Fixes flutter/flutter#111587

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@jmagman jmagman self-assigned this Oct 19, 2022
@jmagman jmagman marked this pull request as ready for review October 20, 2022 01:03
Copy link
Contributor

@hellohuanlin hellohuanlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for fixing it 👍

@soarescaique
Copy link

I have tested the changes. It fixes Issue https://github.com/flutter/flutter/issues/111587. Thank you so much for the help. Well done

@jmagman jmagman added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 20, 2022
@auto-submit auto-submit bot merged commit 69f2bc8 into flutter:main Oct 20, 2022
@jmagman jmagman deleted the rotate branch October 20, 2022 17:35
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 20, 2022
CaseyHillers pushed a commit to CaseyHillers/engine that referenced this pull request Oct 31, 2022
CaseyHillers pushed a commit to CaseyHillers/engine that referenced this pull request Nov 1, 2022
CaseyHillers pushed a commit that referenced this pull request Nov 1, 2022
…ARC (#37049)" (#37195)

* Revert "Use iOS 16 APIs to rotate orientation (#36874)" (#37165)

* Revert "Migrate darwin common "framework_shared" target to ARC (#37049)"

This reverts commit 866b670.
@jmagman jmagman restored the rotate branch November 4, 2022 00:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App platform-ios
Projects
None yet
3 participants