Skip to content

Commit 5c7de30

Browse files
committed
Update logs on willUnmount
1 parent e7477a1 commit 5c7de30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ios/THEOplayerRCTView.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ public class THEOplayerRCTView: UIView {
121121
}
122122

123123
func willUnmount() {
124+
if DEBUG_PRESENTATIONMODES {PrintUtils.printLog(logText: "[NATIVE] willUnmount with presentationMode: \(self.presentationModeManager.presentationMode._rawValue)")}
125+
124126
// before destruction, make sure the view reparenting is reset when player was put in fullscreen
125127
if self.presentationModeManager.presentationMode == .fullscreen {
126-
if DEBUG_THEOPLAYER_INTERACTION {PrintUtils.printLog(logText: "[NATIVE] willUnmount with presentationMode: \(self.presentationModeManager.presentationMode._rawValue)")}
127-
128+
if DEBUG_PRESENTATIONMODES { PrintUtils.printLog(logText: "[NATIVE] presentationMode is fullscreen => back to inline for player unmount.") }
128129
self.setPresentationMode(newPresentationMode: PresentationMode.inline)
129130
}
130131
}

0 commit comments

Comments
 (0)