Skip to content

Fix Apple TV 4K crash#1

Merged
tomkidd merged 3 commits intotomkidd:masterfrom
dnicolson:fix-apple-tv-4k-crash
Feb 23, 2021
Merged

Fix Apple TV 4K crash#1
tomkidd merged 3 commits intotomkidd:masterfrom
dnicolson:fix-apple-tv-4k-crash

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