Oy, after I posted I figured out my own answer (I as smarter than ChatGPT).
The key is to use your type and use the .asPartiallyGenerated() method to get a PartiallyGenerated version. Hope this helps someone else.
#Preview("Vegetable Suggestion Card") {
let sample = VegetableSuggestion(
vegetableName: "Tomato",
startSeedsIndoors: "6–8 weeks before last frost",
startSeedsOutdoors: "After last frost when soil is warm",
transplantSeedlingsOutdoors: "1–2 weeks after last frost",
tips: "Harden off seedlings; provide full sun and consistent moisture."
)
VegetableSuggestionCard(vegetableSuggestion: sample.asPartiallyGenerated())
.padding()
}
Topic:
Machine Learning & AI
SubTopic:
Foundation Models