UserFeatureToggles

public protocol UserFeatureToggles

The interface to user-specified feature toggling, where a user may choose to switch certain features on or off in the Settings of your app.

The DefaultAvailabilityChecker uses instances of this type to verify availability of user toggled features at runtime. The default implementation UserDefaultsFeatureToggles stores the toggled values in User Defaults.

If you want to store your feature toggles differently, implement this protocol and assign your own instance of DefaultAvailabilityChecker to Flint.availabilityChecker at startup.