Repository navigation
docs(swift-sdk): show saved views, their groups and writing them - #612
Merged
Merged
Conversation
aicayzer
commented
Oct 24, 2026
aicayzer
left a comment
Contributor
Author
There was a problem hiding this comment.
Checks only: documents withmarfa/marfa-swift#361 (reviewed and merged). The Swift snippets were compiled against that branch in a scratch package. It overlaps #611 on swift-sdk.mdx; #611 rebases after this merges.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Swift SDK page shows how to read a saved view, read a layout's groups, follow a layout with a live query, and create, change and delete a view. The
read-a-viewguide points to those calls in place of saying the Swift SDK adopts the core's view calls later.Links withmarfa/marfa-swift#355, which withmarfa/marfa-swift#361 closes. Merge this after that pull request.
Changes
swift-sdk.mdx: a new "Saved views" section with reads, a live query over a layout, the table of read calls, and "Create, change and delete a view" with the version, idempotency key and refusal rules.read-a-view.mdx: the "Read a view in an app" section names the Swift SDK's calls beside the core's, with a Swift example, and drops the line that said the SDK adopts core APIs on its own schedule.Testing
pnpm testpasses (39 files, 700 tests), andpnpm build,pnpm build:statusandpnpm types:checkpass.swift buildin a scratch package that depends on the branch of feat(package)!: create, change and delete views marfa-swift#361, then removed. The calls they use are exercised by the live tests in feat(package)!: read views and rename a folder's search to query marfa-swift#359 and docs(api-ref): a device approval leaves the same consent a browser approval does #361.3d66082and against the package source.Notes for reviewers
swift-sdk.mdx, and theblobs.getandnoRoomlines this page still shows are fixed there. Whichever merges second needs a rebase; the sections do not overlap.Checklist