如何使背景层清晰

问题描述

如何使这一层清晰而不是白色?

PLAlert 是 UIAlertController 的子类。

我试过了

plAlert.view.backgroundColor = .clear
hostingViewController.view.backgroundColor = .clear
swiftuialertVC.view.backgroundColor = .clear

plAlert.view.layer.backgroundColor = .clear
hostingViewController.layer.backgroundColor = .clear
swiftuialertVC.layer.backgroundColor = .clear

plAlert.view.subviews.forEach({$0.backgroundColor = .clear})
hostingViewController.view.subviews.forEach({$0.backgroundColor = .clear})
swiftuialertVC.view.subviews.forEach({$0.backgroundColor = .clear})

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)