Skip to content

Commit

Permalink
Change playerHTMLPath to support SPM Ressource Module loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Tuchner committed Mar 5, 2021
1 parent 14d5e7f commit 7df2250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YouTubePlayer/YouTubePlayer/YouTubePlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ open class YouTubePlayerView: UIView, WKNavigationDelegate {
}

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

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

0 comments on commit 7df2250

Please sign in to comment.