Implemented the EmptyContainerModifier preview modifier in the app target.

This commit is contained in:
javier committed 2026-02-10 01:32:31 +01:00
1 parent 7b982799db
commit 24639081c0
3 files changed
+85 -4

No files matched your search

+4 -2
View File
@@ -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)
}