[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user