Skip to content

Commit 7df2250

Browse files
author
Marcel Tuchner
committed
Change playerHTMLPath to support SPM Ressource Module loading
1 parent 14d5e7f commit 7df2250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YouTubePlayer/YouTubePlayer/YouTubePlayer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ open class YouTubePlayerView: UIView, WKNavigationDelegate {
253253
}
254254

255255
fileprivate func playerHTMLPath() -> String {
256-
return Bundle(for: YouTubePlayerView.self).path(forResource: "YTPlayer", ofType: "html")!
256+
return Bundle.module.path(forResource: "YTPlayer", ofType: "html")!
257257
}
258258

259259
fileprivate func htmlStringWithFilePath(_ path: String) -> String? {

0 commit comments

Comments
 (0)