Created
November 27, 2019 17:02
-
-
Save digitallysavvy/b8c017b55641b497d1859ed1f5d1b50f to your computer and use it in GitHub Desktop.
Snippet for the loadView function within ARSupportAudienceViewController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func loadView() { | |
super.loadView() | |
createUI() // init and add the UI elements to the view | |
// TODO: setup touch gestures | |
// Add Agora setup | |
guard let appID = getValue(withKey: "AppID", within: "keys") else { return } // get the AppID from keys.plist | |
self.agoraKit = AgoraRtcEngineKit.sharedEngine(withAppId: appID, delegate: self) // - init engine | |
self.agoraKit.setChannelProfile(.communication) // - set channel profile | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment