Skip to content

Commit 878d26a

Browse files
committed
Added reload API function
1 parent 73fa554 commit 878d26a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/API/YouTubePlayer+ConfigurationAPI.swift

+7
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,11 @@ public extension YouTubePlayer {
4848
}
4949
}
5050

51+
/// Reloads the YouTubePlayer.
52+
func reload() {
53+
self.update(
54+
configuration: self.configuration
55+
)
56+
}
57+
5158
}

0 commit comments

Comments
 (0)