Fix orientation on iOS 16

This commit is contained in:
Arkadiusz Fal
2022-08-26 10:25:07 +02:00
parent 653cca07fe
commit fc7052a7fa
4 changed files with 20 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ extension PlayerModel {
videos.forEach { enqueueVideo($0, loadDetails: false) }
#if os(iOS)
onPresentPlayer = { [weak self] in self?.advanceToNextItem() }
onPresentPlayer.append { [weak self] in self?.advanceToNextItem() }
#else
advanceToNextItem()
#endif