Appl SF 符号 square.grid.2x2 始终被填充

问题描述 投票:0回答:1

我正在

TabBar
上创建一个简单的
visionOS
,使用
square.grid.2x2
,它应该是四个有边框的正方形,但操作系统不断将它们渲染为填充,如
square.grid.2x2.fill
中所示。我是否遗漏了什么,或者这个版本的图标在
visionOS
上不可用?

.tabItem {
    Label("Browse", systemImage: "square.grid.2x2")
}

swiftui tabbar visionos
1个回答
0
投票

在visionOS中,这是在选项卡栏中渲染符号/图标的底层行为(我的意思是自动选择填充符号而不是轮廓变体)。我在visionOS HIG中没有找到这个主题,但是文本明确地said

Prefer filled symbols or icons for consistency with the platform
。未来这样的UI设计有可能会改变。

© www.soinside.com 2019 - 2024. All rights reserved.