Skip to content

Commit 0cf6a38

Browse files
author
Sharma Elanthiriayan
committed
SettingsViewController mutable ViewModel
- Make SettingsViewModelInput confirm to AnyObject to make ViewModel mutable.
1 parent 7d971ce commit 0cf6a38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Settings/SettingsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protocol SettingsViewPresenter: AnyObject {
1212
final class SettingsViewController: UIViewController {
1313
typealias ViewModel = SettingsViewModelOutput & SettingsViewModelActionsHandler & SettingsViewModelInput
1414

15-
private var viewModel: ViewModel
15+
private let viewModel: ViewModel
1616

1717
/// Main TableView
1818
///

WooCommerce/Classes/ViewRelated/Dashboard/Settings/Settings/SettingsViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protocol SettingsViewModelActionsHandler {
3939
func onStorePickerDismiss()
4040
}
4141

42-
protocol SettingsViewModelInput {
42+
protocol SettingsViewModelInput: AnyObject {
4343
var presenter: SettingsViewPresenter? { get set }
4444
}
4545

0 commit comments

Comments
 (0)