ConfigurationManager

public protocol ConfigurationManager

Configuration manager.

  • get(_:_:) Extension method

    Returns a value for the given configuration key from config, or the default value. Crashes if the value is not found, and if no default value is provided.

    Declaration

    Swift

    public func get<T>(_ config: ConfigurationFile, _ key: ConfigurationKey<T>) -> T
  • getTheme(_:) Extension method

    Returns a value from the theme configuration file.

    Declaration

    Swift

    public func getTheme<T>(_ key: ConfigurationKey<T>) -> T
  • get(_:) Extension method

    Returns a value for the given configuration key from the state/main configuration, or the default value.

    Declaration

    Swift

    public func get<T>(_ key: ConfigurationKey<T>) -> T