Guest User

Untitled

a guest
Jan 14th, 2020
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private func updateContentViewWith(viewController: UIViewController, screenTitle: String) {
  2.         self.clearContentView()
  3.        
  4.         self.titleLabel.text = screenTitle
  5.         addChild(viewController)
  6.         viewController.view.frame = self.contentView.bounds
  7.         self.contentView.addSubview(viewController.view)
  8.         viewController.didMove(toParent: self)
  9.     }
RAW Paste Data