My root view controller is a UITabBarController. I\'m trying to present a modal view controller over one of the tab bar controller\'s view controllers, but still allow the
i had this problem : when i present my ModalController it takes transparent background and when i changed the tab to next one in tabBarController and getBack to previous one the transparent background was gone and and there is a bad black background after research i found the point the point is this:
the self is not modal controller self is that presenting controller for modalController and another point is .overCurrentContext like this
self.definesPresentationContext = true
modalController.modalPresentationStyle = .overCurrentContext
self.present(modalController, animated: true, completion: nil)