Skip to content

Commit e8201ba

Browse files
committed
Add ULErrorViewModel.didLoadView
1 parent deef916 commit e8201ba

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

WooCommerce/Classes/Authentication/Navigation Exceptions/JetpackErrorViewModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ struct JetpackErrorViewModel: ULErrorViewModel {
5959
fancyAlert.transitioningDelegate = AppDelegate.shared.tabBarController
6060
viewController?.present(fancyAlert, animated: true)
6161
}
62+
63+
func didLoadView(in viewController: UIViewController?) {
64+
65+
}
6266
}
6367

6468

WooCommerce/Classes/Authentication/Navigation Exceptions/NoSecureConnectionErrorViewModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ struct NoSecureConnectionErrorViewModel: ULErrorViewModel {
3232
// NO-OP
3333
}
3434

35+
func didLoadView(in viewController: UIViewController?) {
36+
37+
}
38+
3539
}
3640

3741
private extension NoSecureConnectionErrorViewModel {

WooCommerce/Classes/Authentication/Navigation Exceptions/NotWPAccountViewModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ struct NotWPAccountViewModel: ULErrorViewModel {
3737
fancyAlert.transitioningDelegate = AppDelegate.shared.tabBarController
3838
viewController?.present(fancyAlert, animated: true)
3939
}
40+
41+
func didLoadView(in viewController: UIViewController?) {
42+
43+
}
4044
}
4145

4246

WooCommerce/Classes/Authentication/Navigation Exceptions/NotWPErrorViewModel.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ struct NotWPErrorViewModel: ULErrorViewModel {
3434
func didTapAuxiliaryButton(in viewController: UIViewController?) {
3535
// NO-OP
3636
}
37+
38+
func didLoadView(in viewController: UIViewController?) {
39+
40+
}
3741
}
3842

3943

WooCommerce/Classes/Authentication/Navigation Exceptions/ULErrorViewModel.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ protocol ULErrorViewModel {
2121
/// Provides a title for a secondary action button
2222
var secondaryButtonTitle: String { get }
2323

24+
func didLoadView(in viewController: UIViewController?)
25+
2426
/// Executes action associated to a tap in the view controller primary button
2527
/// - Parameter viewController: usually the view controller sending the tap
2628
func didTapPrimaryButton(in viewController: UIViewController?)

0 commit comments

Comments
 (0)