File tree Expand file tree Collapse file tree
Application/DevLogPresentation Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments