Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func tabBarController(_ tabBarController: UITabBarController, shouldSelect viewController: UIViewController) -> Bool {
- if viewController is PopupViewController {
- if let popupView = tabBarController.storyboard?.instantiateInitialViewController() {
- popupView.modalPresentationStyle = .fullScreen
- tabBarController.present(popupView, animated: true, completion: nil)
- return false
- }
- }
- return true
- }
Add Comment
Please, Sign In to add comment