Skip to content

Commit a606236

Browse files
committed
refactor: Setting -> Settings 로 이름 수정
1 parent 732a78d commit a606236

11 files changed

Lines changed: 50 additions & 50 deletions

File tree

Application/DevLogPresentation/DevLogPresentation.xcodeproj/project.pbxproj

Lines changed: 36 additions & 36 deletions
Large diffs are not rendered by default.

Application/DevLogPresentation/Sources/Main/MainView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,13 @@ struct MainView: View {
359359
TodoDetailView(viewModel: profileViewCoordinator.makeTodoDetailViewModel(todoId: todoId))
360360
.id(todoId)
361361
case .settings:
362-
SettingView(viewModel: profileViewCoordinator.settingViewModel)
362+
SettingsView(viewModel: profileViewCoordinator.settingsViewModel)
363363
.environment(profileViewCoordinator.router)
364364
case .theme:
365365
ThemeView(
366366
theme: Binding(
367-
get: { profileViewCoordinator.settingViewModel.state.theme },
368-
set: { profileViewCoordinator.settingViewModel.send(.setTheme($0)) }
367+
get: { profileViewCoordinator.settingsViewModel.state.theme },
368+
set: { profileViewCoordinator.settingsViewModel.send(.setTheme($0)) }
369369
)
370370
)
371371
case .pushNotification:

Application/DevLogPresentation/Sources/Profile/ProfileView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ struct ProfileView: View {
148148
private func profileDestinationView(_ route: ProfileRoute) -> some View {
149149
switch route {
150150
case .settings:
151-
SettingView(viewModel: coordinator.settingViewModel)
151+
SettingsView(viewModel: coordinator.settingsViewModel)
152152
.environment(coordinator.router)
153153
case .activity(let todoId):
154154
TodoDetailView(viewModel: coordinator.makeTodoDetailViewModel(todoId: todoId))
155155
case .theme:
156156
ThemeView(
157157
theme: Binding(
158-
get: { coordinator.settingViewModel.state.theme },
159-
set: { coordinator.settingViewModel.send(.setTheme($0)) }
158+
get: { coordinator.settingsViewModel.state.theme },
159+
set: { coordinator.settingsViewModel.send(.setTheme($0)) }
160160
)
161161
)
162162
case .pushNotification:

Application/DevLogPresentation/Sources/Profile/ProfileViewCoordinator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import DevLogDomain
1313
@Observable
1414
final class ProfileViewCoordinator {
1515
let viewModel: ProfileViewModel
16-
let settingViewModel: SettingViewModel
16+
let settingsViewModel: SettingsViewModel
1717
var router = NavigationRouter<ProfileRoute>()
1818
private let container: DIContainer
1919

@@ -27,7 +27,7 @@ final class ProfileViewCoordinator {
2727
fetchHeatmapActivityTypesUseCase: container.resolve(FetchHeatmapActivityTypesUseCase.self),
2828
updateHeatmapActivityTypesUseCase: container.resolve(UpdateHeatmapActivityTypesUseCase.self)
2929
)
30-
self.settingViewModel = SettingViewModel(
30+
self.settingsViewModel = SettingsViewModel(
3131
deleteAuthUseCase: container.resolve(DeleteAuthUseCase.self),
3232
signOutUseCase: container.resolve(SignOutUseCase.self),
3333
networkConnectivityUseCase: container.resolve(ObserveNetworkConnectivityUseCase.self),

Application/DevLogPresentation/Sources/Setting/AccountView.swift renamed to Application/DevLogPresentation/Sources/Settings/AccountView.swift

File renamed without changes.

Application/DevLogPresentation/Sources/Setting/AccountViewModel.swift renamed to Application/DevLogPresentation/Sources/Settings/AccountViewModel.swift

File renamed without changes.

Application/DevLogPresentation/Sources/Setting/PushNotificationSettingsView.swift renamed to Application/DevLogPresentation/Sources/Settings/PushNotificationSettingsView.swift

File renamed without changes.

Application/DevLogPresentation/Sources/Setting/PushNotificationSettingsViewModel.swift renamed to Application/DevLogPresentation/Sources/Settings/PushNotificationSettingsViewModel.swift

File renamed without changes.

Application/DevLogPresentation/Sources/Setting/SettingView.swift renamed to Application/DevLogPresentation/Sources/Settings/SettingsView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// SettingView.swift
2+
// SettingsView.swift
33
// DevLogPresentation
44
//
55
// Created by opfic on 5/6/25.
@@ -8,9 +8,9 @@
88
import SwiftUI
99
import DevLogDomain
1010

11-
struct SettingView: View {
11+
struct SettingsView: View {
1212
@Environment(NavigationRouter<ProfileRoute>.self) private var router
13-
@State var viewModel: SettingViewModel
13+
@State var viewModel: SettingsViewModel
1414

1515
var body: some View {
1616
let connected = viewModel.state.isNetworkConnected

Application/DevLogPresentation/Sources/Setting/SettingViewModel.swift renamed to Application/DevLogPresentation/Sources/Settings/SettingsViewModel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// SettingViewModel.swift
2+
// SettingsViewModel.swift
33
// DevLogPresentation
44
//
55
// Created by 최윤진 on 11/22/25.
@@ -11,7 +11,7 @@ import DevLogCore
1111
import DevLogDomain
1212

1313
@Observable
14-
final class SettingViewModel: Store {
14+
final class SettingsViewModel: Store {
1515
struct State: Equatable {
1616
var theme: SystemTheme = .automatic
1717
var dirSize: Int64 = 0
@@ -158,7 +158,7 @@ final class SettingViewModel: Store {
158158
}
159159
}
160160

161-
private extension SettingViewModel {
161+
private extension SettingsViewModel {
162162
func setAlert(
163163
_ state: inout State,
164164
isPresented: Bool,

0 commit comments

Comments
 (0)