Skip to content

Commit c45d70b

Browse files
committed
Add store picker hosting controller
1 parent 68bef81 commit c45d70b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

WooCommerce/Classes/Authentication/Epilogue/StorePickerError.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
import SwiftUI
22

3+
/// Hosting controller wrapper for `StorePickerError`
4+
///
5+
final class StorePickerErrorHostingController: UIHostingController<StorePickerError> {
6+
init() {
7+
super.init(rootView: StorePickerError())
8+
}
9+
required dynamic init?(coder aDecoder: NSCoder) {
10+
fatalError("init(coder:) has not been implemented")
11+
}
12+
}
13+
14+
315
/// Generic Store Picker error view that allows the user to contact support.
416
///
517
struct StorePickerError: View {

0 commit comments

Comments
 (0)