rwblickhan / Spreppy

A spaced repetition flashcards app
1 stars 0 forks source link

Stub out a UI for adding decks #20

Closed rwblickhan closed 2 years ago

rwblickhan commented 3 years ago

Basically a copy of #18 🙂

  1. Stub out a CreateDeckViewController (and view model, etc), which for now might be nothing more than a text field to enter a title and a save button. The text field should of course show some sort of error state or alert if you try to enter an empty name.
  2. The save button should add the card via repos.deckRepo.updateOrCreate.
  3. When pressing the add button in DeckListViewController, navigate to CreateDeckViewController (via MainCoordinator of course).
  4. Add unit tests 🙂