Skip to content

Commit a3c9c26

Browse files
author
Alexander Mokrushin
committedMay 2, 2023
Added Bundle.module
1 parent 3f09167 commit a3c9c26

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎Package.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ let package = Package(
1313
.library(
1414
name: "WebViewSDK",
1515
targets: ["WebViewSDK"]),
16+
1617
],
1718
dependencies: [
1819
// Dependencies declare other packages that this package depends on.
@@ -23,7 +24,8 @@ let package = Package(
2324
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2425
.target(
2526
name: "WebViewSDK",
26-
dependencies: []),
27+
dependencies: [],
28+
resources: [.copy("SDKMain.storyboard")]),
2729
.testTarget(
2830
name: "WebViewSDKTests",
2931
dependencies: ["WebViewSDK"]),

‎Sources/WebViewSDK/WebViewSDK.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public struct WebViewSDK {
1313
}
1414

1515
public static func initWebViewController() -> WebViewController {
16-
let storyboard = UIStoryboard(name: "SDKMain", bundle: nil)
16+
let storyboard = UIStoryboard(name: "SDKMain", bundle: Bundle.module)
1717
return storyboard.instantiateViewController(withIdentifier: "WebViewControllerID") as! WebViewController
1818
}
1919
}

0 commit comments

Comments
 (0)
Please sign in to comment.