diff --git a/Zettel/NewNoteView.swift b/Zettel/NewNoteView.swift new file mode 100644 index 0000000..2dc2b2e --- /dev/null +++ b/Zettel/NewNoteView.swift @@ -0,0 +1,14 @@ +import SwiftUI + +struct NewNoteView: View { + @State private var content: String = "" + @FocusState private var isFocused: Bool + + var body: some View { + TextEditor(text: $content) + .focused($isFocused) + .padding() + .navigationTitle("New Note") + .onAppear { isFocused = true } + } +}