From 05ff757e25a6184d459621ce8c39b0359984218b Mon Sep 17 00:00:00 2001 From: Komeno Date: Mon, 17 Nov 2025 15:33:21 +0900 Subject: [PATCH] Update images and content in Dictionary.md --- content/Swift/Dictionary.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/content/Swift/Dictionary.md b/content/Swift/Dictionary.md index 5a8984ca8..f1f860681 100644 --- a/content/Swift/Dictionary.md +++ b/content/Swift/Dictionary.md @@ -564,7 +564,7 @@ struct TabViewSearch: View { For the home view, I just implemented a dummy view for the moment: -Home-screen-v1 +Home Let's start building the `SearchView()` for searching by stroke count. Here, we are going to use a pattern of having one main view switching between different states. Let's start by defining some [[@State]] variables: @@ -633,7 +633,7 @@ graph TD ### State 1: No search input -empty +Empty ```swift if searchText.isEmpty { @@ -658,7 +658,7 @@ struct EmptySearchStateView: View { ### State 2: Database query in progress -loading +Loading ```swift else if model.isLoading { @@ -676,9 +676,10 @@ struct LoadingStateView: View { > [!note] What is ProgressView()? > A built-in view for displaying a loading indicator (a spinner) + ### State 3: An error occurred -error +Error ```swift else if let error = model.errorMessage { @@ -702,7 +703,7 @@ struct ErrorStateView: View { ### State 4: Search completed but no results found -noresults +No results ```swift else if model.entries.isEmpty { @@ -725,7 +726,7 @@ struct NoResultsStateView: View { ``` ### State 5: Search completed with results -results +Results ```swift else { @@ -778,7 +779,7 @@ struct CharacterListRow: View { ``` ### The character detail view -details +Details Here, the `GroupBox` is used to create a section in the view that visually groups some content.