chore: lint code

This commit is contained in:
Krzysztof Moch
2025-11-05 13:24:04 +01:00
parent f2afd16d0b
commit 90ccf4be29
3 changed files with 7 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ import React
#if os(iOS)
class RCTPictureInPicture: NSObject, AVPictureInPictureControllerDelegate {
public private(set) var _pipController: AVPictureInPictureController?
private(set) var _pipController: AVPictureInPictureController?
private var _onPictureInPictureEnter: (() -> Void)?
private var _onPictureInPictureExit: (() -> Void)?
private var _onRestoreUserInterfaceForPictureInPictureStop: (() -> Void)?
@@ -92,7 +92,7 @@ import React
}
#else
class RCTPictureInPicture: NSObject {
public let _pipController: NSObject? = nil
let _pipController: NSObject? = nil
func setRestoreUserInterfaceForPIPStopCompletionHandler(_: Bool) {}
func setupPipController(_: AVPlayerLayer?) {}

View File

@@ -81,7 +81,7 @@ class NowPlayingInfoCenterManager {
}
}
public func cleanup() {
func cleanup() {
observers.removeAll()
players.removeAllObjects()
@@ -199,7 +199,7 @@ class NowPlayingInfoCenterManager {
remoteCommandCenter.togglePlayPauseCommand.removeTarget(togglePlayPauseTarget)
}
public func updateNowPlayingInfo() {
func updateNowPlayingInfo() {
guard let player = currentPlayer, let currentItem = player.currentItem else {
invalidateCommandTargets()
MPNowPlayingInfoCenter.default().nowPlayingInfo = [:]

View File

@@ -1092,7 +1092,9 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
// Find the nearest view controller
var viewController: UIViewController! = RCTPresentedViewController() ?? RCTKeyWindow()?.rootViewController
guard viewController != nil else { return }
while let presented = viewController.presentedViewController { viewController = presented }
while let presented = viewController.presentedViewController {
viewController = presented
}
if viewController != nil {
_presentingViewController = viewController