Hacking macOS Sierra's PIP

Hacking macOS Sierra's PIP

One of the headline features in macOS Sierra is Picture in Picture. Unfortunately Apple decided to restrict this to Safari and iTunes which means the majority of users will never get to use it. Digging into the Sierra GM PrivateFrameworks directory revealed a very helpfully named framework called PIP.framework. As with any framework it can be included in a project and used like any other. However Apple remove the headers from their private frameworks which stops us from using them freely. I ran the framework through Steve Nygard's excellent class-dump spitting out a number of helpful header files in…