I want to call pip from WKWebview and customize it.

In the app being developed, WKWebview loads url containing videos player which has a safari pip mode activation button.

By the way, I want to set up the restoreUserInterfaceForPictureInPictureStopWithCompletionHandler, but I don't know how to customize this pip.

  1. I wonder how to customize the pip made with safari pip mode.
  2. I have already made a pip made by snapshot of wkwebview itself, and it is not worth it to me, so I need method 1.

Please let me know if there is a possibility of the first method.

I want to call pip from WKWebview and customize it.
 
 
Q