Skip to content

Conversation

@okwasniewski
Copy link
Member

Summary:

Goal of this PR is to properly retrieve displayScale for visionOS. It replaces usages of [[UIScreen mainScreen] scale].

Changelog:

[VISIONOS] [FIXED] - properly retrieve displayScale for visionOS

Test Plan:

Check if useWindowDimensionsHook returns proper displayScale

@okwasniewski
Copy link
Member Author

This PR is also reflected as a PR to Core: facebook#41214

I will remove #if TARGET_OS_VISION once the PR gets merged.

Copy link
Collaborator

@matthargett matthargett left a comment

Choose a reason for hiding this comment

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

Is there anything visual we can see a difference on in the tester app?

@okwasniewski
Copy link
Member Author

@matthargett I think we are close to merging this PR to core: facebook#41214 - So I think I will hold with merging this PR (I've added more extensive description there)

@okwasniewski
Copy link
Member Author

okwasniewski commented Nov 1, 2023

The original PR got merged to core. I'm closing this one and will do a rebase

@okwasniewski okwasniewski deleted the okwasniewski/feat/displayScale branch January 31, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants