Skip to content

Commit

Permalink
fix: update configured values in player container vc when theyre changed
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjl-mux committed Nov 6, 2024
1 parent 1ac3a54 commit b3c35d0
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,16 @@ private struct PlayerView: UIViewControllerRepresentable {
return viewController
}

func updateUIViewController(_ uiViewController: PlayerContainerViewController, context: Context) {
func updateUIViewController(
_ uiViewController: PlayerContainerViewController,
context: Context
) {
if didPressPlay {
uiViewController.playButtonPressed()
}
uiViewController.adTagURLString = adTagURL
uiViewController.contentURLString = contentURL
uiViewController.environmentKey = environmentKey
uiViewController.title = title
}
}

0 comments on commit b3c35d0

Please sign in to comment.