Skip to content

Instantly share code, notes, and snippets.

@cardoso
Last active July 6, 2020 20:15
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 cardoso/8beda003a646a01be5edd3072eb0e536 to your computer and use it in GitHub Desktop.
Save cardoso/8beda003a646a01be5edd3072eb0e536 to your computer and use it in GitHub Desktop.
import StreamChat
import StreamChatClient
class ClassViewController: ChatViewController {
lazy var channel = Client.shared.channel(
type: .messaging,
id: "history_class_id",
extraData: ChannelExtraData(name: "History Class", imageURL: nil)
)
let student = User(id: .random())
let teacher = User(
id: "teacher",
extraData: UserExtraData(
name: "Teacher",
avatarURL: URL(string: "https://raw.githubusercontent.com/GetStream/edtech-classroom-app-ios/main/meta/teacher.png")
)
)
override func viewDidLoad() {
super.viewDidLoad()
setupViews()
setupHandlers()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment