From 4614b25f33fb4b791f7d857be3f855e7ec195bb8 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 9 Sep 2023 12:42:34 -0400 Subject: [PATCH] Remove test code --- .../Drafts.xcdatamodel/contents | 5 +-- .../Sources/ComposeUI/TestView.swift | 36 ------------------- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 Packages/ComposeUI/Sources/ComposeUI/TestView.swift diff --git a/Packages/ComposeUI/Sources/ComposeUI/CoreData/Drafts.xcdatamodeld/Drafts.xcdatamodel/contents b/Packages/ComposeUI/Sources/ComposeUI/CoreData/Drafts.xcdatamodeld/Drafts.xcdatamodel/contents index 6148bf07..75c66813 100644 --- a/Packages/ComposeUI/Sources/ComposeUI/CoreData/Drafts.xcdatamodeld/Drafts.xcdatamodel/contents +++ b/Packages/ComposeUI/Sources/ComposeUI/CoreData/Drafts.xcdatamodeld/Drafts.xcdatamodel/contents @@ -1,5 +1,5 @@ - + @@ -38,7 +38,4 @@ - - - \ No newline at end of file diff --git a/Packages/ComposeUI/Sources/ComposeUI/TestView.swift b/Packages/ComposeUI/Sources/ComposeUI/TestView.swift deleted file mode 100644 index ffca6639..00000000 --- a/Packages/ComposeUI/Sources/ComposeUI/TestView.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// File.swift -// -// -// Created by Shadowfacts on 4/22/23. -// - -import SwiftUI - -struct TestView: View { - @State var manager = DraftsPersistentContainer() - - var body: some View { - VStack { - Button("Add") { - let entity = TestEntity(context: manager.viewContext) - entity.id = UUID() - try! manager.viewContext.save() - } - InnerView() - .environment(\.managedObjectContext, manager.viewContext) - } - } -} - -struct InnerView: View { - @FetchRequest(sortDescriptors: []) var results: FetchedResults - - var body: some View { - List { - ForEach(results) { result in - Text(result.id?.uuidString ?? "") - } - } - } -}