[Framework] Feed Item coordinator #17

Merged
javier merged 10 commits from framework/feed/coordinators into main 2024-03-21 22:56:39 +00:00
Showing only changes of commit 63739cb8cd - Show all commits

View File

@ -19,6 +19,13 @@ public final class FeedListCoordinator: Coordinator {
// MARK: Properties
public var children: [any Coordinator] = []
lazy var viewController = {
FeedListViewController(.init(
configuration: configuration,
coordination: self
))
}()
// MARK: Initialisers
public init(
configuration: FeedListConfiguration,
@ -34,10 +41,7 @@ public final class FeedListCoordinator: Coordinator {
onDismiss: Router.OnDismissClosure? = nil
) {
router.present(
FeedListViewController(.init(
configuration: configuration,
coordination: self
)),
viewController,
animated: animated,
onDismiss: onDismiss
)
@ -53,7 +57,7 @@ extension FeedListCoordinator: FeedListCoordination {
present(
child: FeedItemCoordinator(
item: item,
router: router
router: SheetRouter(parentViewController: viewController)
),
animated: true
)