📄️ Create the HabitDetailView
This View is used for adding or editing a new Habit
📄️ Adding and Editing Habits
Adding or Editing?
📄️ Using HabitDetailView
We want to navigate from the list of habits to add a new Habit or to edit an existing one. For that we'll use HabitDetailView from ConfigView.
📄️ Passing an initial List of Habits
Right now, in MainView we're passing an empty Habits variable to ConfigView. We need to create and insert one Habits in the Realm so the information we add in our HabitDetailView is persisted.