File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 391391 "중요 표시" : {
392392
393393 },
394- "집중 표시" : {
394+ "중요 표시만" : {
395+
396+ },
397+ "중요 표시한 Todo만 표시됩니다." : {
395398
396399 },
397400 "최근 검색" : {
Original file line number Diff line number Diff line change @@ -102,16 +102,20 @@ struct TodayView: View {
102102 }
103103 }
104104
105- Picker (
106- " 집중 표시 " ,
107- selection: Binding (
108- get: { viewModel. state. displayOptions. focusVisibility } ,
109- set: { viewModel. send ( . setFocusVisibility( $0) ) }
105+ Toggle (
106+ " 중요 표시만 " ,
107+ isOn: Binding (
108+ get: { viewModel. state. displayOptions. focusVisibility == . focusedOnly } ,
109+ set: {
110+ viewModel. send ( . setFocusVisibility( $0 ? . focusedOnly : . all) )
111+ }
110112 )
111- ) {
112- ForEach ( TodayDisplayOptions . FocusVisibility. allCases, id: \. self) { option in
113- Text ( option. title) . tag ( option)
114- }
113+ )
114+ . tint ( . orange)
115+
116+ if viewModel. state. displayOptions. focusVisibility == . focusedOnly {
117+ Text ( " 중요 표시한 Todo만 표시됩니다. " )
118+ . font ( . caption)
115119 }
116120 } label: {
117121 let options = viewModel. state. displayOptions
@@ -252,17 +256,6 @@ private extension TodayViewModel.SummaryScope {
252256 }
253257}
254258
255- private extension TodayDisplayOptions . FocusVisibility {
256- var title : String {
257- switch self {
258- case . all:
259- return " 전체 "
260- case . focusedOnly:
261- return " 중요 표시만 "
262- }
263- }
264- }
265-
266259private struct SummaryCard : View {
267260 let title : String
268261 let value : Int
You can’t perform that action at this time.
0 commit comments