It is due to static var preview
,
so use either static as well
static var a = DataProvider.DataHeader(title: "a", text: "b")
or construct in place
DetailView(header: DataProvider.DataHeader(title: "a", text: "b"))
It is due to static var preview
,
so use either static as well
static var a = DataProvider.DataHeader(title: "a", text: "b")
or construct in place
DetailView(header: DataProvider.DataHeader(title: "a", text: "b"))