diff --git a/Trust/Settings/ViewControllers/SettingsViewController.swift b/Trust/Settings/ViewControllers/SettingsViewController.swift index 47d700258..1a26a8969 100644 --- a/Trust/Settings/ViewControllers/SettingsViewController.swift +++ b/Trust/Settings/ViewControllers/SettingsViewController.swift @@ -45,9 +45,10 @@ class SettingsViewController: FormViewController { form = Section() <<< PushRow { - $0.title = NSLocalizedString("settings.network.button.title", value: "Network", comment: "") + $0.title = viewModel.networkTitle $0.options = viewModel.servers $0.value = RPCServer(chainID: config.chainID).name + $0.selectorTitle = viewModel.networkTitle $0.displayValueFor = { value in let network = RPCServer(name: value ?? "") return network.name + (network.isTestNetwork ? " (Test)" : "") diff --git a/Trust/Settings/ViewModels/SettingsViewModel.swift b/Trust/Settings/ViewModels/SettingsViewModel.swift index 8a02981e8..d287e12fa 100644 --- a/Trust/Settings/ViewModels/SettingsViewModel.swift +++ b/Trust/Settings/ViewModels/SettingsViewModel.swift @@ -43,4 +43,8 @@ struct SettingsViewModel { return NSLocalizedString("settings.biometricsDisabled.label.title", value: "Passcode", comment: "") } } + + var networkTitle: String { + return NSLocalizedString("settings.network.button.title", value: "Network", comment: "") + } }