We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9270477 commit 78ef659Copy full SHA for 78ef659
Sources/WebViewSDK/WebViewSDK.swift
@@ -1,3 +1,7 @@
1
+#if canImport(UIKit)
2
+import UIKit
3
+#endif
4
+
5
public enum InvalidUrlError: Error {
6
case runtimeError(String)
7
}
@@ -9,6 +13,7 @@ public struct WebViewSDK {
9
13
10
14
11
15
public static func initWebViewController() -> WebViewController {
12
- return WebViewController()
16
+ let storyboard = UIStoryboard(name: "Main", bundle: nil)
17
+ return storyboard.instantiateViewController(withIdentifier: "WebViewController") as! WebViewController
18
19
0 commit comments