Skip to content

Commit

Permalink
Merge pull request #555 from yimajo/remove_redundant_key
Browse files Browse the repository at this point in the history
Remove redundant `\.id` in SwiftUI.ForEach
  • Loading branch information
MrSmart00 authored Aug 17, 2024
2 parents ae4f887 + a7a7b3f commit 441a53c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app-ios/Sources/SponsorFeature/SponsorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public struct SponsorView: View {
GridItem(.flexible(), spacing: 12, alignment: .center)
}
LazyVGrid(columns: gridItems, spacing: 12) {
ForEach(items, id: \.id) { item in
ForEach(items) { item in
Button {
selectedSponsorData = item
} label: {
Expand Down
2 changes: 1 addition & 1 deletion app-ios/Sources/StaffFeature/StaffView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct StaffView: View {
public var body: some View {
ScrollView {
LazyVStack {
ForEach(store.list, id: \.id) { staff in
ForEach(store.list) { staff in
Button {
selectedStaffData = staff
} label: {
Expand Down

0 comments on commit 441a53c

Please sign in to comment.