-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IDLE-489] ChattingListFactory구현 및 읜존성 주입
- Loading branch information
Showing
11 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import Foundation | ||
import Testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
project/Projects/Presentation/Feature/Chatting/Interface/ChattingListFeatureFactory.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// ChattingListFeatureFactory.swift | ||
// Chatting | ||
// | ||
// Created by choijunios on 11/5/24. | ||
// | ||
|
||
import UIKit | ||
|
||
public protocol ChattingListFeatureFactory { | ||
|
||
typealias Module = UIViewController | ||
|
||
func createModule() -> Module | ||
} |
Empty file.
26 changes: 26 additions & 0 deletions
26
...jects/Presentation/Feature/Chatting/Sources/ChattingList/ChattingListFeatureFactory.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// ChattingListFeatureFactory.swift | ||
// Chatting | ||
// | ||
// Created by choijunios on 11/5/24. | ||
// | ||
|
||
import ChattingFeatureInterface | ||
import Core | ||
|
||
public class DefaultChattingListFeatureFactory: ChattingListFeatureFactory { | ||
|
||
public init() { } | ||
|
||
public func createModule() -> Module { | ||
|
||
let viewModel: ChattingListViewModel = .init() | ||
|
||
// | ||
|
||
let viewController: ChattingListViewController = .init() | ||
viewController.bind(viewModel: viewModel) | ||
|
||
return viewController | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.