Adds some import tasks.

This commit is contained in:
2021-04-05 01:01:41 -07:00
parent 52f37b494e
commit f04932899a

View File

@@ -8,8 +8,9 @@
import SwiftUI import SwiftUI
struct Library: View { struct Library: View {
// TODO: add an import button that searches https://api.open5e.com/monsters/ and lets you import a monster from there
// TODO: add an import button that lets you browse for a tetra cube monster file and import it
@Environment(\.managedObjectContext) private var viewContext @Environment(\.managedObjectContext) private var viewContext
@FetchRequest( @FetchRequest(
sortDescriptors: [ sortDescriptors: [
NSSortDescriptor(keyPath: \Monster.name, ascending: true), NSSortDescriptor(keyPath: \Monster.name, ascending: true),