Skip to content

Commit 7d6685f

Browse files
authored
Fix typo in Comparison With SwiftData (#36)
1 parent 3a59404 commit 7d6685f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/SharingGRDBCore/Documentation.docc/Articles/ComparisonWithSwiftData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ search for rows in a table:
324324
Note that the SwiftData version of this code must have two views. The outer view, `ItemsView`,
325325
holds onto the `searchText` state that the user can change and uses the `searchable` SwiftUI view
326326
modifier. Then, the inner view, `SearchResultsView`, holds onto the `@Query` state so that it can
327-
initializer with a dynamic predicate based on the `searchText`. These two views are necessary
327+
initialize with a dynamic predicate based on the `searchText`. These two views are necessary
328328
because `@Query` state is not mutable after it is initialized. The only way to change `@Query`
329329
state is if the view holding it is reinitialized, which requires a parent view to recreate the
330330
child view.

0 commit comments

Comments
 (0)