[FIX] App permission icon color

This commit is contained in:
Fabian Thies
2023-01-13 11:54:44 +01:00
parent 29fc693f4d
commit 9f429fb068

View File

@@ -35,7 +35,8 @@ struct AppPermissionGridItemView: View {
self.isPopoverPresented = true
} label: {
VStack {
Image(uiImage: permission.type.icon ?? UIImage(systemSymbol: .questionmark))
Image(uiImage: permission.type.icon?.withRenderingMode(.alwaysTemplate) ?? UIImage(systemSymbol: .questionmark))
.foregroundColor(.primary)
.padding()
.background(Circle().foregroundColor(Color(.secondarySystemBackground)))
Text(permission.type.localizedShortName ?? permission.type.localizedName ?? "")