Guest User

Untitled

a guest
May 22nd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. func tabBarController(_ tabBarController: UITabBarController, shouldSelect viewController: UIViewController) -> Bool {
  2. if viewController is PopupViewController {
  3. if let popupView = tabBarController.storyboard?.instantiateInitialViewController() {
  4. popupView.modalPresentationStyle = .fullScreen
  5. tabBarController.present(popupView, animated: true, completion: nil)
  6.  
  7. return false
  8. }
  9. }
  10. return true
  11. }
Add Comment
Please, Sign In to add comment