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)
}
But there is a orange color UIView present on this Controller which is invisible Thanks in advance
You just have to present your second Viewcontroller, which has a transparent background, modally. with the following config:
and that's the result :
for those who may not familiar with Opacity: in the situation like this, for transparency, it's better to use Opacity instead of Alpha
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With