Skip to content

Commit 2c04de7

Browse files
author
JWI
committed
revert
1 parent 0c51b3e commit 2c04de7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Sources/UIKitBackend/UIKitBackend.swift

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,22 +214,15 @@ open class ApplicationDelegate: UIResponder, UIApplicationDelegate {
214214
_ application: UIApplication,
215215
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
216216
) -> Bool {
217-
if UIKitBackend.mainWindow == nil {
218-
let window = UIWindow(frame: UIScreen.main.bounds)
219-
window.rootViewController = RootViewController(backend: UIKitBackend()) // Your main VC
220-
window.makeKeyAndVisible()
221-
UIKitBackend.mainWindow = window
222-
}
223-
224217
if let onReceiveURL = UIKitBackend.onReceiveURL,
225-
let url = launchOptions?[.url] as? URL {
218+
let url = launchOptions?[.url] as? URL
219+
{
226220
onReceiveURL(url)
227221
}
228222

229223
return true
230224
}
231225

232-
233226
/// Asks the delegate to open a resource specified by a URL, and provides a dictionary of launch options.
234227
///
235228
/// If you override this method in a subclass, you should call

0 commit comments

Comments
 (0)