Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
MaraMincho committed Jan 16, 2024
2 parents 3046b79 + b8106b7 commit 4d861da
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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() {}
}
9 changes: 9 additions & 0 deletions iOS/Projects/Features/Home/Sources/Data/HomeRepository.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// HomeRepository.swift
// HomeFeature
//
// Created by MaraMincho on 12/7/23.
// Copyright © 2023 kr.codesquad.boostcamp8. All rights reserved.
//

import Foundation

0 comments on commit 4d861da

Please sign in to comment.