samvermette/SVProgressHUD — Issue #28: Allow a different way to disable the default network activity indicator
Author: adamjernst
Created: 2011-11-18 18:55:58+00:00
State: open

Right now you can disable the network activity indicator control by setting a define in the header file. However since I import SVProgressHUD directly using git submodules, this isn't an ideal solution; if I modify the header file the submodule is marked as dirty, making it hard to keep the repository clean and update SVProgressHUD cleanly.

Could you support an alternate way of disabling it? Either a class method to disable it by default, or moving the declaration to the implementation file and allowing it to be set with an `ifdef` like so:

// To disable SVProgressHUD's control of the network activity indicator by default,
// add -DSVHUD_DISABLE_NETWORK_INDICATOR to CFLAGS.
#ifdef SVHUD_DISABLE_NETWORK_INDICATOR
#define SVProgressHUDShowNetworkIndicator 0
#else
#define SVProgressHUDShowNetworkIndicator 1
#endif