Implemented the EmptyContainerModifier preview modifier in the app target.
This commit is contained in:
@@ -99,7 +99,9 @@ struct NewTaskView: View {
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
#Preview("New todo task") {
|
||||
#Preview(
|
||||
"New todo task",
|
||||
traits: .emptyContainer
|
||||
) {
|
||||
NewTaskView()
|
||||
.modelContainer(for: Todo.self, inMemory: true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user