### Swift Package Manager Installation URL Source: https://github.com/getsidetrack/swiftui-pipify/blob/main/README.md Add this URL to your Xcode project's Swift Package Manager dependencies to include the Pipify library. ```Text https://github.com/getsidetrack/swiftui-pipify.git ``` -------------------------------- ### Handling PIP Render Size Changes Source: https://github.com/getsidetrack/swiftui-pipify/blob/main/README.md Illustrates how to attach the `.onPipRenderSizeChanged` closure to your custom pipify view to receive updates whenever the Picture-in-Picture window's size changes. ```Swift yourPipifyView .onPipRenderSizeChanged { size in // size has changed } ``` -------------------------------- ### Accessing PipifyController via EnvironmentObject Source: https://github.com/getsidetrack/swiftui-pipify/blob/main/README.md Shows how to declare a variable to access the `PipifyController` as an environment object within the custom pipify view, allowing access to properties like `renderSize`. ```Swift @EnvironmentObject var controller: PipifyController ``` -------------------------------- ### Applying the Pipify Modifier in SwiftUI Source: https://github.com/getsidetrack/swiftui-pipify/blob/main/README.md Demonstrates how to add the `.pipify` modifier to a SwiftUI view, showing both the default usage (presenting the view itself) and providing a custom view for the Picture-in-Picture window. The `$isPresented` binding controls when the PIP window is shown. ```Swift @State var isPresented = false var body: some View { yourView .pipify(isPresented: $isPresented) // presents `yourView` in PIP // or yourView .pipify(isPresented: $isPresented) { SomeOtherView() // presents `SomeOtherView` in PIP } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.