diff --git a/iOS/Projects/Features/Home/Sources/Coordinator/HomeCoordinator.swift b/iOS/Projects/Features/Home/Sources/Coordinator/HomeCoordinator.swift new file mode 100644 index 00000000..946bbf79 --- /dev/null +++ b/iOS/Projects/Features/Home/Sources/Coordinator/HomeCoordinator.swift @@ -0,0 +1,48 @@ +// +// HomeCoordinator.swift +// HomeFeature +// +// Created by MaraMincho on 12/5/23. +// Copyright © 2023 kr.codesquad.boostcamp8. All rights reserved. +// + +import Coordinator +import Foundation +import UIKit + +// MARK: - HomeCoordinating + +public protocol HomeCoordinating: Coordinating { + func pushHome() +} + +// MARK: - HomeCoordinator + +public final class HomeCoordinator: HomeCoordinating { + public var navigationController: UINavigationController + + public var childCoordinators: [Coordinator.Coordinating] = [] + + public var finishDelegate: CoordinatorFinishDelegate? + + public var flow: CoordinatorFlow + public init(navigationController: UINavigationController, delegate: CoordinatorFinishDelegate) { + self.navigationController = navigationController + finishDelegate = delegate + flow = .login + } + + public func start() { + pushHome() + } + + public func pushHome() { + let viewModel = HomeViewModel() + + let viewController = HomeViewController(viewModel: viewModel) + + navigationController.pushViewController(viewController, animated: true) + } + + public func pushBoardDetail() {} +} diff --git a/iOS/Projects/Features/Home/Sources/Data/HomeRepository.swift b/iOS/Projects/Features/Home/Sources/Data/HomeRepository.swift new file mode 100644 index 00000000..a9482ac8 --- /dev/null +++ b/iOS/Projects/Features/Home/Sources/Data/HomeRepository.swift @@ -0,0 +1,9 @@ +// +// HomeRepository.swift +// HomeFeature +// +// Created by MaraMincho on 12/7/23. +// Copyright © 2023 kr.codesquad.boostcamp8. All rights reserved. +// + +import Foundation