PIPKit icon indicating copy to clipboard operation
PIPKit copied to clipboard

Cannot find 'isAVKitPIPSupported' in scope

Open niteshvaishnani opened this issue 2 years ago • 5 comments

I am getting errors as below. Screenshot at Aug 25 20-00-37

I imported PIPKit into the class.

Screenshot 2022-08-25 at 8 07 00 PM

Help Me ASAP. Thank you in advance.

niteshvaishnani avatar Aug 25 '22 14:08 niteshvaishnani

PIPKit.isAVKitPIPSupported or AVPIPKitUsable Protocol instead of PIPUsable

image image

if you want use exitPublisher: AnyPublisher<Void, Never> AVPIPUIKitUsable Protocol instead of AVPIPKitUsable

plz read the AVPIPKitUsable agian

Kofktu avatar Aug 25 '22 15:08 Kofktu

Thank you @Kofktu . I am able to solve the above problem but now I am getting new issues while showing the view controller. I am getting errors as below. image

I have used AVPIPKITUsable as you suggested.

niteshvaishnani avatar Aug 26 '22 06:08 niteshvaishnani

PIPUsable != AVPIPKitUsable

PIPUsable is only in app with UIViewController AVPIPKitUsable is Picture in Picutre in iOS(Apple's AVKit.framework)

Kofktu avatar Aug 26 '22 14:08 Kofktu

@Kofktu Thank you. So if I am having a calling application with screen share so while screen share I need to use pip view. So when I minimize the call, it should work in and outside of the app. so which class should I use for it?

niteshvaishnani avatar Aug 29 '22 09:08 niteshvaishnani

@niteshvaishnani In this case, you can use AVPIPKitUsable

Kofktu avatar Aug 31 '22 04:08 Kofktu