Skip to content

Instantly share code, notes, and snippets.

@ZaidPathan
Last active March 24, 2019 10:31
Show Gist options
  • Save ZaidPathan/71d45796dec56e20f93460567decf7df to your computer and use it in GitHub Desktop.
Save ZaidPathan/71d45796dec56e20f93460567decf7df to your computer and use it in GitHub Desktop.
TheAwesomeApp: Chat.swift file.
import Foundation
import UIKit
public class Chat {
public static let shared = Chat()
private let bundle = Bundle(for: Chat.self)
public func getViewController() -> UIViewController {
let storyboard: UIStoryboard = UIStoryboard(name: "ChatModule", bundle: bundle)
let viewController = storyboard.instantiateViewController(withIdentifier: "ChatViewController")
return viewController
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment