SwiftUI透明TabView(无背景模糊)?
根据我在互联网上找到的信息,这个版本的 Swift 中的 Tabview 应该是透明的。
但就我而言,当它显示的视图中下方有东西时,它总是显示灰色调,顶部有一条线。如果我向下滚动到该视图中的空白空间,选项卡视图将再次变为透明。
多年来我一直在努力寻找解决方案,但我绝对是个菜鸟。有人可以帮我解决这个问题并使其始终透明吗?非常感谢!
截图:
From what I found on the internet, the Tabview in this version of Swift is meant to be transparent.
But in my case it always dispalys a grayish tone with a line on top when there is something underneath it in the view it is displaying. If I scroll down to a space in that view which is empty, the tabview becomes transparent again.
I have been trying to find a solution to this for ages but I'm a absolute noob. Can someone please help me fix this and make it always transparent? Thank you so much!
Screenshots:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
UIBarAppearance.configureWithTransparentBackground()
。Use
UIBarAppearance.configureWithTransparentBackground()
.