Presenting a UIViewController with background transparent in swift 3.0

Viewed 4274

I am presenting a viewController with transparent background. But the components on that viewController is invisible when it is presented. A blank viewController is seen.I have given alpha value and black background color. This is my code when i call the transparent viewController

if indexPath.row==0
{
   let modalViewController = PopUpViewController()
    modalViewController.modalPresentationStyle = .overCurrentContext
    present(modalViewController, animated: true, completion: nil)
 }

enter image description here

But there is a orange color UIView present on this Controller which is invisible Thanks in advanceenter image description here enter image description here

2 Answers
Related