Skip to content

Commit

Permalink
๐ŸŽจ :: ์ฝ”๋“œ Formatting ์ ์šฉ
Browse files Browse the repository at this point in the history
  • Loading branch information
yongbeomkwak committed Jun 13, 2024
1 parent 8cacfb5 commit 6f3e805
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public final class AfterSearchComponent: Component<AfterSearchDependency> {
return AfterSearchViewController.viewController(
songSearchResultFactory: dependency.songSearchResultFactory,
listSearchResultFactory: dependency.listSearchResultFactory,
reactor: .init(text:text)
reactor: .init(text: text)
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,46 @@ import SongsDomainInterface

public final class AfterSearchReactor: Reactor {
var disposeBag: DisposeBag = DisposeBag()

private let service: any SearchCommonService

public enum Action {}

public enum Mutation {
case updateText(String)
}

public struct State {
var text: String
}

public var initialState: State

init(service: some SearchCommonService = DefaultSearchCommonService.shared, text: String) {
self.initialState = State(
text: text
)
self.service = service
}

deinit {
LogManager.printDebug("\(Self.self)")
}

public func mutate(action: Action) -> Observable<Mutation> {}

public func reduce(state: State, mutation: Mutation) -> State {
var newState = state

switch mutation {
case let .updateText(text):
newState.text = text
}

return newState
}
}

private extension AfterSearchReactor {
#warning("์œ ์ฆˆ์ผ€์ด์Šค ์ฃผ์ž…")
}

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import SearchFeatureInterface
protocol SearchCommonService {
var typingStatus: BehaviorSubject<TypingStatus> { get }
var recentText: PublishSubject<String> { get }

}

final class DefaultSearchCommonService: SearchCommonService {
Expand Down

0 comments on commit 6f3e805

Please sign in to comment.