-
-
Save zontan/0461f60b9a5545c22f445f4fb0cfe72f 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
@IBAction func didTapChat(_ sender: Any) { | |
let storyboard = UIStoryboard(name: "ChatViewController", bundle: nil) | |
let chatVC = storyboard.instantiateInitialViewController()! | |
// Use the popover presentation style for your view controller. | |
chatVC.modalPresentationStyle = .popover | |
if let chatVC = chatVC as? ChatViewController { | |
chatVC.channelName = channelName | |
chatVC.agoraRtm = agoraRtm | |
} | |
// Present the view controller (in a popover). | |
self.present(chatVC, animated: true) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment