Skip to content

Commit

Permalink
Merge pull request #4 from SpectatorNanWithZZC/master
Browse files Browse the repository at this point in the history
fix error and adapter (11M392r)
  • Loading branch information
Jinxiansen committed Sep 6, 2019
2 parents edaa9b8 + 6037232 commit 877ed2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Example/Example/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {


func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {

let window = UIWindow(frame: UIScreen.main.bounds)
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
window.rootViewController = UIHostingController(rootView: ContentView())
self.window = window
window.makeKeyAndVisible()
}
}

func sceneDidDisconnect(_ scene: UIScene) {
Expand Down

0 comments on commit 877ed2b

Please sign in to comment.