ios/AuthenticatorShared/UI/DebugMenu/DebugMenuEffect.swift
2024-10-30 11:17:16 -05:00

21 lines
631 B
Swift

import Foundation
// MARK: - DebugMenuEffect
/// Effects that can be processed by a `DebugMenuProcessor`.
///
enum DebugMenuEffect: Equatable {
/// Triggers a refresh of feature flags, clearing local settings and re-fetching from the remote source.
case refreshFeatureFlags
/// Toggles a specific feature flag's state.
///
/// - Parameters:
/// - String: The identifier for the feature flag.
/// - Bool: The state to which the feature flag should be set (enabled or disabled).
case toggleFeatureFlag(String, Bool)
/// The view appeared and is ready to load data.
case viewAppeared
}