[macOS] id: \.self added to ForEach

This commit is contained in:
Stuart Breckenridge
2023-05-31 16:33:11 +08:00
parent abcc836c07
commit ffa16aab81
2 changed files with 2 additions and 2 deletions

View File

@@ -202,7 +202,7 @@ struct AddAccountsView: View {
.padding(.top, 8)
HStack {
ForEach(0..<chunkedWebAccounts().count, content: { chunk in
ForEach(0..<chunkedWebAccounts().count, id: \.self, content: { chunk in
VStack {
Picker(selection: $selectedAccount, label: Text(""), content: {
ForEach(chunkedWebAccounts()[chunk], id: \.self, content: { account in

View File

@@ -23,7 +23,7 @@ struct EnableExtensionPointHelpView: View {
var body: some View {
VStack {
HStack {
ForEach(0..<extensionPoints.count, content: { i in
ForEach(0..<extensionPoints.count, id: \.self, content: { i in
Button(action: {
preferencesController?.enableExtensionPointFromSelection(extensionPoints[i])
}, label: {