iOS
Manage Intro Slider, Login and Infinite Scrolling locally.
To Set the data for Infinite Scroll, Introduction Slider, Login from static data for whole application. It will allow you to set the specific flow for the Application, that whether to go with the server settings for Infinite Scroll, Introduction Slider, Login or set this data from server. Follow below steps to set the static data.
- Open
..Constants.swift
file in Xcode. - Set
IS_FROM_STATIC_DATA
totrue
orfalse
as below screenshot. If the value istrue
then application will consider data from static data. And if value isfalse
then application will allow to use server configured data.
To set Infinite Scrolling Locally, follow below steps.
- Open
..Constants.swift
file in Xcode. - It is required to set value for
IS_FROM_STATIC_DATA
totrue
then only it is posible to manage the Infinite Scroll locally. - Set the value for
IS_INFINITE_SCROLL
totrue
orfalse
. If the value istrue
then application will consider the Infinite scroll view for home page, and if the value isfalse
then application will consider the Default flow for the home page.
To remove Introduction Slider Locally, follow below steps.
- Open
..Constants.swift
file in Xcode. - It is required to set value for
IS_FROM_STATIC_DATA
totrue
then only it is posible to manage the Introduction Slider locally. - Set the value for
IS_INTRO_SLIDER
totrue
orfalse
. If the value istrue
then application will consider the Introduction Slider to be shown at the first launch, and if the value isfalse
then application will consider the application without Introduction Slider.
To remove Login Locally, follow below steps.
- Open
..Constants.swift
file in Xcode. - It is required to set value for
IS_FROM_STATIC_DATA
totrue
then only it is posible to manage the Login locally. - Set the value for
IS_LOGIN
totrue
orfalse
. If the value istrue
then application will consider it as Login is required when launching or using the application, and if the value isfalse
then application will consider as Login is not required to use the application.
To remove Add to cart button Locally, follow below steps.
- Open
..Constants.swift
file in Xcode. - It is required to set value for
IS_FROM_STATIC_DATA
totrue
then only it is posible to manage the Login locally. - Set the value for
IS_ADD_TO_CART
totrue
orfalse
. If the value istrue
then application will consider it as Login is required when launching or using the application, and if the value isfalse
then application will consider as Login is not required to use the application.
To enable/disable catalog mode, follow below steps.
- Open
..Constants.swift
file in Xcode. - It is required to set value for
IS_FROM_STATIC_DATA
totrue
then only it is posible to manage the Login locally. - Set the value for
IS_CATALOG_MODE
totrue
orfalse
. If the value istrue
then application will consider it as Catalog mode enable, so Cart page and my order tab from account will be removed and even the buttons for all add to cart or buy now are removed. And if the value isfalse
then application will consider as General application with buy now and add to cart button.