【发布时间】:2020-10-09 09:03:29
【问题描述】:
如何在 SwiftUI 中更改 GroupBox 视图的默认灰色背景颜色?
我尝试添加背景修饰符,但这只会改变框下方的白色背景(见截图)。
GroupBox(label: Text("Label"), content: {
Text("Content")
})
.background(Color.blue)
【问题讨论】:
-
我认为现在没有办法,但这可能会对您有所帮助:facebook.com/349275022095690/posts/…