How to Add Floating Window into Your iOS Calling App
In your iOS calling app, you may encounter scenarios where users need to switch out of the call interface and perform some operations within the app. If you have such a requirement, it is essential to read this tutorial blog, which will guide you to add just a few lines of code to implement the floating window feature in iOS development.
Why Tencent RTC Call is Preferred?
This tutorial blog uses the Tencent RTC Call (TUICallKit) component, which provides a simple and easy-to-integrate enableFloatingWindow interface. It is very friendly for developers with limited experience. Moreover, it comes with UI, saving developers a lot of time and effort. Below are the detailed integration steps. Let's get started and give it a try!
Video Tutorial
How to Add Floating Window Feature in Your iOS App?
Note: If you haven't created a Tencent RTC Call application yet, please refer to the blog "How to Build A Video Calling App on iOS" and follow the steps in the TRTC console to create one.
Step 1: Add a button to enable the floating window in the call interface.
First, go to your iOS project and copy the following code to add the UI for the button that enables the floating window:
- Set the starting position at x = 100, y = 250.