Logo

Runtime Customization

Updating the Router

let newNavigationController = UINavigationController()
coordinator.update(router: newNavigationController)

Updating Configuration Values

The configurator's environment, language, and host hash can be updated without recreating the entire configurator.

configurator.environment = .development
configurator.language = .russian
configurator.host = "<NEW_HOST_APP_HASH>"

Replacing the Configurator

Create and assign a new configurator when the host application needs to replace the authentication manager, configuration, or details delegate.

let newConfiguration = try EcoConfiguration.build(
    environment: .development,
    language: .azerbaijani,
    host: "<HOST_APP_HASH>"
)

let newConfigurator = EcoConfigurator(
    configuration: newConfiguration,
    authManager: newAuthManager,
    detailsDelegate: newDetailsDelegate
)

coordinator.update(configurator: newConfigurator)
Important: The initial configurator is created with a hostDelegate parameter, while the replacement example above uses detailsDelegate. Confirm the correct initializer parameter label for the SDK version being integrated.