[App] Integrated the Feed List to the App with coordinators (#16)

This PR contains the work done to implement the integration of the `FeedListViewController` view controller in the `Feed` framework to the `App` target by using coordinators.

Reviewed-on: rock-n-code/app-reviews#16
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #16.
This commit is contained in:
2024-03-21 18:52:52 +00:00
committed by javier
parent 60cab50c1e
commit 9a5c385903
7 changed files with 143 additions and 14 deletions
@@ -14,7 +14,7 @@ public class WindowRouter: Router {
private let window: UIWindow?
// MARK: Initialisers
public init(window: UIWindow?) {
public init(_ window: UIWindow?) {
self.window = window
}
@@ -22,7 +22,7 @@ public class WindowRouter: Router {
public func present(
_ viewController: UIViewController,
animated: Bool,
onDismiss: OnDismissClosure?
onDismiss: OnDismissClosure? = nil
) {
window?.rootViewController = viewController
window?.makeKeyAndVisible()