I’m having difficulty with the source code handed over by my colleague. This is an IOS webview application, using Kivy and the IOSWebiew class, everything seems to work fine, but there is an “X” appearing on the top left corner (it appears on all ios devices), how to hide it, thank you for your help
main.py
from kivy.app import App
from kivy.core.window import Window
import ios
Window.borderless = False
Window.fullscreen = False
class WebApp(App):
def build(self):
url = b"https://mywebapp.xyz/"
self.height = 100
if Window.width >= 2048:
ios.IOSWebView().open(url, 0, 0 , 1030, 1360)
elif Window.width >= 1668:
ios.IOSWebView().open(url, -5, 0 , 850, 1160)
elif Window.width >= 1640:
ios.IOSWebView().open(url, -5, 0 , 835, 1160)
elif Window.width >= 1620:
ios.IOSWebView().open(url, 0, 0 , 800, 1050)
elif Window.width >= 1488:
ios.IOSWebView().open(url, -3, 0 , 750, 1100)
elif Window.width >= 1290:
ios.IOSWebView().open(url, -5, 0, 440, 880)
elif Window.width >= 1284:
ios.IOSWebView().open(url, -5, 0 , 440, 880)
elif Window.width >= 1179:
ios.IOSWebView().open(url, 0, 0 , 400, 830)
elif Window.width >= 1170:
ios.IOSWebView().open(url, 0, 0 , 393, 830)
elif Window.width >= 1125:
ios.IOSWebView().open(url, 0, 0 , 375, 810)
elif Window.width >= 1080:
ios.IOSWebView().open(url, 0, 0 , 380, 780)
elif Window.width >= 828:
ios.IOSWebView().open(url, 0, 0, 415, 810)
elif Window.width >= 750:
ios.IOSWebView().open(url, 0, -45 , 380, 830)
else:
ios.IOSWebView().open(url, 0, 0 , 380, 830)
if __name__ == "__main__":
WebApp().run()
screenshots