Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ”€ :: (#1118) μ •λ ¬ μ˜΅μ…˜ λ³€κ²½ , κ°€λ‚˜λ‹€μˆœ -> κ΄€λ ¨λ„μˆœ #1183

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Projects/Domains/SearchDomain/Interface/Enum/Option.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public enum FilterType: String, Encodable, SearchOptionType {
public enum SortType: String, Encodable, SearchOptionType {
case latest
case oldest
case alphabetical
case relevance
case popular

public var title: String {
Expand All @@ -34,8 +34,8 @@ public enum SortType: String, Encodable, SearchOptionType {
"μ΅œμ‹ μˆœ"
case .oldest:
"과거순"
case .alphabetical:
"κ°€λ‚˜λ‹€μˆœ"
case .relevance:
"κ΄€λ ¨λ„μˆœ"
case .popular:
"인기순"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ final class SongSearchResultReactor: Reactor {
init(text: String, fetchSearchSongsUseCase: any FetchSearchSongsUseCase) {
self.initialState = State(
isLoading: true,
sortType: .latest,
sortType: .relevance,
filterType: .all,
selectedCount: 0,
scrollPage: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class SearchSortOptionViewController: BaseViewController {

private var disposeBag = DisposeBag()

private let options: [SortType] = [.latest, .oldest, .alphabetical, .popular]
private let options: [SortType] = [.relevance, .latest, .oldest, .popular]

private var selectedModel: SortType

Expand Down
Loading