We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ecda5b commit 665bec1Copy full SHA for 665bec1
1 file changed
loader/src/hooks/FixSafeArea.cpp
@@ -0,0 +1,13 @@
1
+#ifdef GEODE_IS_IOS
2
+#include <Geode/Geode.hpp>
3
+#include <Geode/modify/AppDelegate.hpp>
4
+
5
+using namespace geode::prelude;
6
7
+class $modify(FixSafeAreaAppDelegate, AppDelegate) {
8
+ void setupGLView() {
9
+ AppDelegate::setupGLView();
10
+ m_needsSafeArea = geode::utils::getSafeAreaRect().size != CCDirector::get()->getWinSize();
11
+ }
12
+};
13
+#endif
0 commit comments