스토리보드 삭제
1. Info.plist 수정
여기서 StoryBoard Name 완전 삭제
2. 프로젝트 수정
Supports multiple windows 클릭
Main storyboard file base name에 Value 값 삭제
3. SceneDelegate scene 수정
1
2
3
4
5
6
7
8
9
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: UIScreen.main.bounds)
let viewController = ViewController()
window?.rootViewController = viewController
window?.makeKeyAndVisible()
window?.windowScene = windowScene
1
2
3
4
5
6
7
8
9
guard let windowScene = (scene as? UIWindowScene) else { return }
let window = UIWindow(windowScene: windowScene)
let viewController = ViewController()
window.rootViewController = viewController
window.makeKeyAndVisible()
self.window = window
4. iOS 13이하 버전 대응
1
2
3
4
5
6
7
8
9
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
if #available(iOS 13.0, *) {
return true
}
window = UIWindow()
window?.rootViewController = ViewController()
window?.makeKeyAndVisible()
return true
}