-
Notifications
You must be signed in to change notification settings - Fork 5
Gestures
The application supports many gestures. These gestures are either implied by the operating system or specific for this application. The application specific gestures are not needed for the daily running of the application and are intended for advanced users only.
This is the basic gesture and can be found everywhere. The operating specific behaviours used are:
- Disclosure tap - Tapping on a cell that has a disclosure indicator, will open the corresponding view. This can be more information about a product or image;
- Button - Tapping on a button can open another view (preferences, scan, etc). Or they can initiate an action (share, save, add e, etc);
- Pages-indicator - tapping on the left or right of pages indicator (the row with dots), will backward or forward the pages;
This is the standard gesture for scrolling on a page
This is the standard gesture (alternate) for changing pages. The gesture hqs an additional meaning on the iPad in portrait mode. It will reveal the products pane (right) or hides it (left).
On any (?) product page, this will refresh the data, i.e. the latest data will be downloaded from OFF.
There are four gestures implemented specific for this application: single tap, double tap, long press, two finger swipe down. These two gestures do not interfere with any of the IOS-gestures.
Tapping on a state in the community efforts page will move to the corresponding product page. This is useful to quickly edit the missing data.
The double tap is used to toggle or cycle between views that are similar:
- name/generic name/ingredients - cycles through the various languages of the product;
- energy - the energy units can be cycled between kJ, Cal and kcal;
- salt - this nutrition can be be toggled between salt and sodium, which are equivalent;
- tag-fields - any tag-field can be cycled through 4 types of views of tags. These are based on the views offered by the product-jsons: original (data as entered by the user), interpreted, hierarchy and prefix corrected;
- nutrion score page headers - toggles between the french and uk method of calculation;
- headers - all(?) headers can be used to toggle between the local (edited) product and the remote (off) version of a product. This allows the user to see his edits (this option is still work in progress on 12 jan 2019);
The long press gesture can be used to initiate a search of the item under the long press gesture. The item if the long press gesture can be:
- a tag, for instance a brand, a label, a packaging label, a country, etc. Note that the tag is associated with the header above. So a country-tag under the producer will search something different from the country-tag under the countries where the product is sold.
- a state, long press any state in the community effort page, and you can initiate a search for that state
- a contributor. A long press on a contributor can inititiate a search for that contributor.
This gesture is available on the products (history) page. It will cycle bthrough the product types supported by FoodViewer, i.e. food product, beauty products, pet food products and other products.