如果我更改行背景颜色,那么当我点击该行时默认的灰色选择就会消失。可以带回来吗?或者我是否必须添加自定义覆盖/在选择时手动更改行的颜色?
我用于更改背景颜色的代码如下:.listRowBackground(Color(.secondarySystemGroupedBackground))
.listRowBackground(Color(.secondarySystemGroupedBackground))
swiftui swiftui-list
swiftui ×1
swiftui-list ×1