Implemented the EmptyContainerModifier preview modifier in the app target.

This commit is contained in:
2026-02-10 01:32:31 +01:00
parent 7b982799db
commit 24639081c0
3 changed files with 85 additions and 4 deletions
+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)
}