adamzarn / AZVideoPlayer

An alternative to SwiftUI's VideoPlayer that includes an overlay button that will transition the player to be presented full screen.
31 stars 6 forks source link

Doesn't work with SPIndicator #2

Closed PedroCavaleiro closed 1 year ago

PedroCavaleiro commented 1 year ago

I'm trying to create a list of videos, but in this case I'm using a ScrollView instead of a List

The AZVideoPlayer works as expected but together with SPIndicator (a lib from another developer that shows toasts) gets pushed towards the notch.

I was able to find out that the problem probably lies in the AVPlayerViewController, I tried to implement a simpler version of the video player with the AVPlayerViewController and got the same result, no issues when using the native VideoPlayer

https://user-images.githubusercontent.com/1993871/202064081-de4fd802-98e1-4d4b-b459-348af696a40c.mov

It's a bit hard to get a idea with the screen grab but the toast should cover the "Feed" word completely

I added the SPIndicator on the topmost view to see if it would helped but it doesn't

PedroCavaleiro commented 1 year ago

Was able to fix by applying a fix in the SPIndicator Library