Skip to content

Instantly share code, notes, and snippets.

@digitallysavvy
Created November 27, 2019 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitallysavvy/b8c017b55641b497d1859ed1f5d1b50f to your computer and use it in GitHub Desktop.
Save digitallysavvy/b8c017b55641b497d1859ed1f5d1b50f to your computer and use it in GitHub Desktop.
Snippet for the loadView function within ARSupportAudienceViewController
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