Repository navigation
spec(native): a Swift view's two initializers are one API - #8532
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 9a93550 |
PR Analysis Report
|
There was a problem hiding this comment.
Recommending approval: the added A3 sentence is consistent with architecture:public-component-api INV21, matches what the Swift views on generated props already do, and has an exact-head spec approval from an engineering owner. Nothing else is required; under AST-093 FR6 an engineering owner can approve once the required checks pass. Two optional touch-ups: the description's R5 rubric line reports user impact instead of the rubric's R5 (no pull request or issue references, which the record passes), and slots.md S3's per-component convenience initializer is a third way in that the new sentence does not cover.
[Automated review]
Summary
A Swift Astryx view has two initializers: a labeled one for app code, and one that takes the generated
<Name>Propsfor generated and wire-driven callers. A view with a component slot also has convenience initializers that take that component's props (slots S3). A reviewer applying public-component-api INV21 ("one API per job") could read them as two APIs for one job. They are one API in two Swift spellings: the labeled initializer builds the same props the other takes. Component API A3 now says so.What changes
specs/swift/library/component-api.mdA3: "The two initializers, and the convenience initializers that take a slot component's props (slots S3), are one API in several Swift spellings (architecture:public-component-apiINV21): each builds the<Name>Propsand slot values the props initializer takes."Existing authority searched
Search terms: INV18–INV21,
one API per job, A3,two initializers. Records found:architecture:public-component-apiINV21 (current) and Swift component API A3, which this clarifies. Overlapping open pull requests inspected: #8308, #8310, #8420, #8422; none edits A3.Writing rubric results
Tests
pnpm check:knowledge.