Skip to content

Commit

Permalink
AppComponent non main actor
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun committed Nov 25, 2024
1 parent c47fd32 commit 3397bd4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions Projects/App/Sources/Application/AppComponent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ import RootFeature
import StorageFeature
import UIKit

@MainActor
public final class AppComponent: BootstrapComponent {
public func makeRootView() -> IntroViewController {
rootComponent.makeView()
}

public var keychain: any Keychain {
shared {
KeychainImpl()
Expand Down
2 changes: 1 addition & 1 deletion Projects/App/Sources/Application/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
self.window = UIWindow(windowScene: scene)
registerProviderFactories()
self.root = AppComponent()
self.window?.rootViewController = root?.makeRootView().wrapNavigationController
self.window?.rootViewController = root?.rootComponent.makeView().wrapNavigationController
self.window?.makeKeyAndVisible()

// Handling App Entry:: Not Running State
Expand Down

0 comments on commit 3397bd4

Please sign in to comment.