Skip to content

Clarify Swift source structure guidance - #20

Merged
backslash-f merged 1 commit into
mainfrom
codex/swift-structure-guidance
Aug 13, 2026
Merged

Clarify Swift source structure guidance#20
backslash-f merged 1 commit into
mainfrom
codex/swift-structure-guidance

Conversation

@backslash-f

Copy link
Copy Markdown
Contributor

Summary

  • require SwiftUI dynamic properties before ordinary stored properties
  • require one top-level type per file and deterministic previews for meaningful views
  • document focused function decomposition, logical enum grouping, and declaration layout
  • clarify which declaration-layout conventions remain review-guided rather than swift-format-enforced
  • prepare release 0.0.16 and update consumer installation commands

Why

These conventions make Swift and SwiftUI source easier to scan and maintain consistently across ThatFactory applications and packages. swift-format preserves the intended signature layout but does not expose a focused rule that can enforce it without broad source reflow, so that limitation is now explicit.

Validation

  • python3 Scripts/validate_guidelines.py
  • python3 -m unittest discover -s Tests -v (7 tests passed)
  • git diff --check

@backslash-f
backslash-f merged commit 1e6127b into main Aug 13, 2026
1 check passed
@backslash-f
backslash-f deleted the codex/swift-structure-guidance branch August 13, 2026 19:58
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.

1 participant