Skip to content

Reflect recent changes in docs - #218

Merged
ra1028 merged 4 commits into
mainfrom
reflect-recent-changes-in-docs
Jun 26, 2026
Merged

ra1028 merged 4 commits into
mainfrom
reflect-recent-changes-in-docs

Conversation

@ra1028

@ra1028 ra1028 commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Summary

Update the documentation to follow recent changes and API additions. Docs only.

README

  • 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 (@Test / #expect).

Source doc comments

  • Convert the AtomTestContext doc-comment examples (waitForUpdate / wait) from XCTest to Swift Testing, matching the migrated test suite (also fixes the XCTAssertTure typo).
  • Remove the stale iOS 14 .sheet environment-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

ra1028 and others added 3 commits June 26, 2026 14:06
- 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>
Copilot AI review requested due to automatic review settings June 26, 2026 07:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:) and wait(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 .sheet note from the @ViewContext diagnostic.

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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@ra1028
ra1028 merged commit 035e139 into main Jun 26, 2026
5 checks passed
@ra1028
ra1028 deleted the reflect-recent-changes-in-docs branch June 26, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants