
Comment out the placeholder text ‘code’ since we will implement this function a bit later.

Select Fix to automatically add the SendBirdCallDelegate protocol to the AppDelegate that implements the didStartRinging(_ call: DirectCall) function. Xcode may show you a warning that Argument type ‘AppDelegate’ does not conform to expected type ‘SendBirdCallDelegate’, followed by a ‘Fix’ option. Do this by adding your Sendbird application ID and configuring Sendbird Calls for your app.
#Swift share button update#
In the AppDelegate.swift file, import Sendbird Calls and update the didFinishLaunchingWithOptions method. This will make it possible to build and run the app later.ģ. For this tutorial, you can skip adding any background mode operations.Īfter installation and SDK configuration, be sure to close any current Xcode sessions and use the `ScreenShare.xcworkspace` file for this project from now on. This will walk you through all of the SDK installation and ist file configuration necessary for this application to enable the microphone and camera. Follow the Getting started and Configuring the application for the SDK sections on the Sendbird Calls iOS SDK Readme.md page on GitHub. Xcode will automatically create your application with the AppDelegate.swift, ViewController.swift, and the Main.storyboard files that we will be editing in this tutorial.Ģ.

Name your app ScreenShare, set the Interface to Storyboard, and select Swift as the language: Create a new Xcode app, configure and import Sendbird Calls
