Skip to content

Fix Safe Areas not working on iOS#2075

Open
Alphalaneous wants to merge 1 commit into
geode-sdk:mainfrom
Alphalaneous:fix-ios-safe-area
Open

Fix Safe Areas not working on iOS#2075
Alphalaneous wants to merge 1 commit into
geode-sdk:mainfrom
Alphalaneous:fix-ios-safe-area

Conversation

@Alphalaneous
Copy link
Copy Markdown
Contributor

This is a somewhat cheaty fix, but is needed due to how the Geode launcher on iOS handles resolution.

By default GD's resolution is hard set at that of an iPhone 11 Pro for some reason. The width of that is 2436 on taller iPhones, and GD does this check.
image
This check fails in the launcher, due to the resolution being different and actually following the device (Funnily enough, this means this bug does not exist on iPhone 11 Pros using the Geode launcher). My solution is to merely set the bool needed to if the safe zone size geode provides is different than the window size.

Note that the node IDs mod does break some of these safe areas. Most actually work fine since detaching preserves position. But on ones that position is changed, it will likely still have an overlap. I will also be making a node IDs PR to accompany this one.

@FireMario211
Copy link
Copy Markdown
Member

lgtm

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