Skip to content

Instantly share code, notes, and snippets.

import UIKit
import StreamChat
import StreamChatCore
class ContactsViewController: ChannelsViewController {
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
Client.config = .init(apiKey: "b67pax5b2wdq", logOptions: .info)
Client.shared.set(user: User(id: "polished-poetry-5"),
token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoicG9saXNoZWQtcG9ldHJ5LTUifQ.o8SWzSlb68EntudwjVul1rUCYGpla-CimXNKxj3wKOc")
return true
}