Skip to content

Fix Apple TV 4K crash #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 23, 2021
Merged

Conversation

dnicolson
Copy link

This pull request fixes a crash on the Apple TV 4K due to the viewport width (3840px) exceeding the maximum width (3072px). The crash can be reproduced in the Simulator by setting these values manually here, setting the height value in excess of the maximum only seems to cause visual issues.

The logic used to centre the viewport isn't that elegant but should work across all tvOS and iOS devices.

@dnicolson dnicolson force-pushed the fix-apple-tv-4k-crash branch from 025111c to 0b571e4 Compare October 19, 2020 17:01
@tomkidd tomkidd merged commit 2961e51 into tomkidd:master Feb 23, 2021
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.

2 participants