Config Key
- 
                  
                  
ConfigKey
ConfigKey is a key class specialized with
ValueTypefor Remote Config It allows you to get value as a type ofValueTypefrom Remote Config with subscription. That is, you don’t need to manually convert value to another type you want. You can handle the value to type safe.Example for getting value with ConfigKey:
extension ConfigKeys { static let title = ConfigKey<String>("title") } let title = Lobster.shared[.title] print(String(describing: type(of: title))) // StringNote
If you want to define aConfigKeyofDecodableorCodable, Please useDecodableConfigKeyorCodableConfigKeyinstead.Declaration
Swift
public final class ConfigKey<ValueType> : ConfigKeyBase<ValueType> where ValueType : ConfigSerializable - 
                  
                  
ConfigKeys
ConfigKeys is just a class that gathers
ConfigKeyinstances you define. You can defineConfigKeyinside this class’s extension.Example for definition of ConfigKey:
extension ConfigKeys { static let title = ConfigKey<String>("title") static let buttonColor = ConfigKey<UIColor>("button_color") static let experimentEnabled = ConfigKey<Bool>("experiment_enabled") }Declaration
Swift
public class ConfigKeys 
            View on GitHub
          
      Config Key  Reference