File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,16 +190,14 @@ struct HomeView: View {
190190
191191 private var recentTodoSection : some View {
192192 Section {
193- if viewModel. state. recentTodos. isEmpty {
194- if viewModel. state. isRecentTodosLoading {
195- LoadingView ( )
196- } else {
197- HStack {
198- Spacer ( )
199- Text ( " 최근 수정한 Todo가 없습니다. " )
200- . font ( . callout)
201- Spacer ( )
202- }
193+ if viewModel. state. isRecentTodosLoading {
194+ LoadingView ( )
195+ } else if viewModel. state. recentTodos. isEmpty {
196+ HStack {
197+ Spacer ( )
198+ Text ( " 최근 수정한 Todo가 없습니다. " )
199+ . font ( . callout)
200+ Spacer ( )
203201 }
204202 } else {
205203 ForEach ( viewModel. state. recentTodos, id: \. id) { todo in
@@ -222,16 +220,15 @@ struct HomeView: View {
222220
223221 private var webPageSection : some View {
224222 Section {
225- if viewModel. state. webPages. isEmpty {
226- if viewModel. state. isWebPageLoading {
227- LoadingView ( )
228- } else {
229- HStack {
230- Spacer ( )
231- Text ( " 저장한 Web Page가 표시됩니다. " )
232- . font ( . callout)
233- Spacer ( )
234- }
223+ if viewModel. state. isWebPageLoading {
224+ LoadingView ( )
225+ . id ( UUID ( ) ) // id 부여를 통해 렌더링 강제
226+ } else if viewModel. state. webPages. isEmpty {
227+ HStack {
228+ Spacer ( )
229+ Text ( " 저장한 Web Page가 표시됩니다. " )
230+ . font ( . callout)
231+ Spacer ( )
235232 }
236233 } else {
237234 ForEach ( viewModel. state. webPages, id: \. id) { page in
You can’t perform that action at this time.
0 commit comments