Skip to content

Clarify that @Slot is optional and only needed for convenience inits#2

Merged
kylebshr merged 1 commit intomainfrom
claude/clarify-slot-annotation-slots-2
Mar 30, 2026
Merged

Clarify that @Slot is optional and only needed for convenience inits#2
kylebshr merged 1 commit intomainfrom
claude/clarify-slot-annotation-slots-2

Conversation

@kylebshr
Copy link
Copy Markdown
Owner

Summary

  • Rewrite the solution section intro to lead with the fact that generic View properties are automatically slots — no per-property annotation needed
  • Rename "Slot options" → "The @Slot annotation" and open with an explicit statement that @Slot is not required to define a slot
  • Clarify that @Slot is purely additive: it opts a slot in to LocalizedStringKey/String/system image name convenience inits, and without any options it has no effect
  • Add inline comments to the solution example reinforcing which parts are optional

https://claude.ai/code/session_0146841j3MHfYwLTTA1Mnd6i

Make it clear throughout that generic View properties are automatically
slots without any annotation. Rename the section to "@slot annotation"
and lead with an explicit statement that it is not required, only used
to opt in to LocalizedStringKey/String/systemImage convenience inits.

https://claude.ai/code/session_0146841j3MHfYwLTTA1Mnd6i
@kylebshr kylebshr merged commit 07c8b5f into main Mar 30, 2026
1 check passed
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