Skip to content

Commit e6bc64b

Browse files
committed
refactor: TodoEditorFeature 탭 타입 이름 정리
1 parent 9f9b0cb commit e6bc64b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Application/DevLogPresentation/Sources/Home/Editor/TodoEditorFeature.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct TodoEditorFeature {
2727
var loading = LoadingFeature.State()
2828
var tags: OrderedSet<String> = []
2929
var tagText: String = ""
30-
var tabViewTag: Tag = .editor
30+
var tabViewTag: EditorTab = .editor
3131
var categories: [TodoCategoryItem] = []
3232
var category = TodoCategoryItem(from: .system(.etc))
3333
var saveResult: SaveResult?
@@ -91,7 +91,7 @@ struct TodoEditorFeature {
9191
}
9292
}
9393

94-
enum Tag: Equatable {
94+
enum EditorTab: Equatable {
9595
case editor
9696
case preview
9797
}

Application/DevLogPresentation/Sources/Home/Editor/TodoEditorView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ struct TodoEditorView: View {
140140
)
141141
) {
142142
Text(String(localized: "todo_write"))
143-
.tag(TodoEditorFeature.Tag.editor)
143+
.tag(TodoEditorFeature.EditorTab.editor)
144144
Text(String(localized: "todo_preview"))
145-
.tag(TodoEditorFeature.Tag.preview)
145+
.tag(TodoEditorFeature.EditorTab.preview)
146146
}
147147
.pickerStyle(.segmented)
148148
}

Application/DevLogPresentation/Tests/Home/TodoEditorFeatureTestDoubles.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ final class TodoEditorStoreTestAdapter {
125125
}
126126
}
127127

128-
func setTab(_ tab: TodoEditorFeature.Tag) async {
128+
func setTab(_ tab: TodoEditorFeature.EditorTab) async {
129129
await store.send(.binding(.set(\.tabViewTag, tab))) {
130130
$0.tabViewTag = tab
131131
}

0 commit comments

Comments
 (0)