-
-
Save cardoso/993c79080a7787e446f029c0fcdd32dd to your computer and use it in GitHub Desktop.
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
import UIKit | |
import StreamChatClient | |
... | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | |
// Override point for customization after application launch. | |
/// 1: Create a `ChatClientConfig` with the API key. | |
let config = ChatClientConfig(apiKeyString: "kvgjrn7nmuuj") | |
/// 2: Set the shared `ChatClient` instance with the config and a temporary token provider. | |
ChatClient.shared = ChatClient(config: config, tokenProvider: .anonymous) | |
return true | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment