Revision: 2681
http://sourceforge.net/p/swingme/code/2681
Author: yuranet
Date: 2023-01-24 14:56:43 +0000 (Tue, 24 Jan 2023)
Log Message:
-----------
docs update
Modified Paths:
--------------
iOSME/src/net/yura/ios/AppController.java
iOSME/src/net/yura/ios/SwingMEiOSApplication.java
iOSME/src/net/yura/ios/WebViewController.java
Modified: iOSME/src/net/yura/ios/AppController.java
===================================================================
--- iOSME/src/net/yura/ios/AppController.java 2023-01-18 17:55:40 UTC (rev 2680)
+++ iOSME/src/net/yura/ios/AppController.java 2023-01-24 14:56:43 UTC (rev 2681)
@@ -87,6 +87,10 @@
return keyboardHeight - bottomPadding;
}
+ /**
+ * Note that preferredStatusBarStyle will in fact get called on the child view controller if
+ * you hide the navigation bar (set navigationBarHidden to YES), exactly as appropriate.
+ */
@Override
public long preferredStatusBarStyle() {
// BlackOpaque is Deprecated and does not work on new devices
@@ -127,6 +131,7 @@
view().addConstraints(constrs);
*/
+ // TODO when running on M1 mac there is a bug: https://github.com/th3rdwave/react-native-safe-area-context/issues/210
renderer.bottomAnchor().constraintEqualToAnchor(view().safeAreaLayoutGuide().bottomAnchor()).setActive(true);
renderer.topAnchor().constraintEqualToAnchor(view().safeAreaLayoutGuide().topAnchor()).setActive(true);
renderer.rightAnchor().constraintEqualToAnchor(view().safeAreaLayoutGuide().rightAnchor()).setActive(true);
Modified: iOSME/src/net/yura/ios/SwingMEiOSApplication.java
===================================================================
--- iOSME/src/net/yura/ios/SwingMEiOSApplication.java 2023-01-18 17:55:40 UTC (rev 2680)
+++ iOSME/src/net/yura/ios/SwingMEiOSApplication.java 2023-01-24 14:56:43 UTC (rev 2681)
@@ -170,6 +170,10 @@
}
}
+ /**
+ * currently it looks like MOE does not support building a Mac Catalyst App
+ * https://github.com/multi-os-engine/moe-plugin-gradle/blob/master/src/main/java/org/moe/gradle/MoePlatform.java
+ */
private static boolean isMacCatalystApp() {
try {
return NSProcessInfo.processInfo().isMacCatalystApp();
Modified: iOSME/src/net/yura/ios/WebViewController.java
===================================================================
--- iOSME/src/net/yura/ios/WebViewController.java 2023-01-18 17:55:40 UTC (rev 2680)
+++ iOSME/src/net/yura/ios/WebViewController.java 2023-01-24 14:56:43 UTC (rev 2681)
@@ -42,13 +42,6 @@
}
@Override
- public void viewWillAppear(boolean animated) {
- super.viewWillAppear(animated);
-
- navigationController().setNavigationBarHidden(false);
- }
-
- @Override
public void viewDidLoad() {
super.viewDidLoad();
@@ -77,6 +70,13 @@
openURL(url);
}
+ @Override
+ public void viewWillAppear(boolean animated) {
+ super.viewWillAppear(animated);
+
+ navigationController().setNavigationBarHidden(false);
+ }
+
private void openURL(String url) {
if (url.startsWith(PROTOCOL_ASSET)) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|