Repository navigation
Reflect recent changes in docs - #218
Merged
Merged
Conversation
- Document the new `debounce(for:)` modifier. - Document the throwing `waitForUpdate(within:)` and `wait(for:within:until:)` variants on AtomTestContext. - Update the testing examples to Swift Testing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The doc-comment examples for waitForUpdate/wait still used XCTest after the test suite migrated to Swift Testing. Convert them to `@Test` / `#expect` (also fixing the `XCTAssertTure` typo, now moot). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The "store is nil" assertion message described an iOS 14 environment-propagation bug for `.sheet`, which no longer applies now that the minimum deployment target is iOS 17. Drop that paragraph and example, keeping the still-relevant guidance about UIKit-hosted views. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR updates public-facing documentation (README + source doc comments) to reflect recently added APIs and the project’s migration from XCTest to Swift Testing, and removes outdated guidance tied to older iOS deployment targets.
Changes:
- Documents the new
Atom/debounce(for:)modifier in the README. - Adds README coverage for the throwing
AtomTestContext.waitForUpdate(within:)andwait(for:within:until:)APIs. - Migrates testing examples in README and doc comments from XCTest assertions to Swift Testing (
@Test/#expect) and removes an outdated iOS 14.sheetnote from the@ViewContextdiagnostic.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| Sources/Atoms/PropertyWrapper/ViewContext.swift | Removes stale .sheet/iOS 14 environment-propagation troubleshooting from the @ViewContext “store is nil” diagnostic. |
| Sources/Atoms/Context/AtomTestContext.swift | Updates doc-comment examples to Swift Testing syntax for the waitForUpdate/wait APIs. |
| README.md | Adds documentation for debounce(for:), the new throwing wait APIs, and updates test examples to Swift Testing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The Swift Testing examples use the @MainActor-isolated AtomTestContext, so the test functions need @mainactor to compile without actor hops, matching the README examples. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Update the documentation to follow recent changes and API additions. Docs only.
README
debounce(for:)modifier.waitForUpdate(within:)andwait(for:within:until:)variants onAtomTestContext.@Test/#expect).Source doc comments
AtomTestContextdoc-comment examples (waitForUpdate/wait) from XCTest to Swift Testing, matching the migrated test suite (also fixes theXCTAssertTuretypo)..sheetenvironment-propagation note from the@ViewContext"store is nil" diagnostic, which no longer applies now that the minimum deployment target is iOS 17. The still-relevant guidance about UIKit-hosted views is kept.🤖 Generated with Claude Code