:github_url: https://github.com/kivymd/KivyMD/blob/master/kivymd/tools/patterns/add_view.py

The script creates a new View package
=====================================

.. py:module:: kivymd.tools.patterns.add_view

.. autoapi-nested-parse::

   The script creates a new View package
   =====================================

   The script creates a new View package in an existing project with an MVC
   template created using the create_project utility.

   .. versionadded:: 1.0.0

   .. seealso::

       `Utility create_project <https://kivymd.readthedocs.io/en/latest/api/kivymd/tools/patterns/create_project/>`_

   .. rubric:: Use a clean architecture for your applications.

   To add a new view to an existing project that was created using the
   `create_project` utility, use the following command::

       kivymd.add_view \
           name_pattern \
           path_to_project \
           name_view

   Example command::

       kivymd.add_view \
           MVC \
           /Users/macbookair/Projects \
           NewScreen

   You can also add new views with responsive behavior to an existing project::

       kivymd.add_view \
           MVC \
           /Users/macbookair/Projects \
           NewScreen \
           --use_responsive yes

   For more information about adaptive design,
   `see here <https://kivymd.readthedocs.io/en/latest/components/responsivelayout/>`_.


API - :mod:`kivymd.tools.patterns.add_view`
-------------------------------------------

.. py:function:: main()

   The function of adding a new view to the project.



