Dismissing viewController by pressing on tabbar button remain black screen swift 5
问题 I have a custom action sheet viewController . Which is presented modally on the current top view controller. Like this: //MARK: Static Func static func initViewController() -> CustomActionSheetViewController { let customActionSheetViewController = CustomActionSheetViewController(nibName: "CustomActionSheetViewController", bundle: nil) return customActionSheetViewController } func presentViewController<T: UIViewController>(viewController: T) { DispatchQueue.main.async { if let