标签: swift swiftui swiftui-environment
在Apple文档中,Color定义为:“一种 与环境有关的 颜色”。 (强调我的)
Color
https://developer.apple.com/documentation/swiftui/color
因此,说SwiftUI颜色不是恒定的,而是颜色(sic)的颜色取决于其环境是正确的。
这种环境依赖性的例子是什么?
答案 0 :(得分:1)
暗/亮模式 是与环境有关的颜色的示例