how to refactor this code to Xcode 15 and make preview works?
struct HistoryView_Previews: PreviewProvider {
static var history: History {
History(attendees: [
DailyScrum.Attendee(name: "Jon"),
DailyScrum.Attendee(name: "Darla"),
DailyScrum.Attendee(name: "Luis")
],
transcript: "Darla, would you like to start today? Sure, yesterday I reviewed Luis' PR and met with the design team to finalize the UI...")
}
static var previews: some View {
HistoryView(history: history)
}
}
I don’t know how to use this new #Preview, help!
New contributor
fuRjNg JGYKK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.