Skip to content

Commit 3ca2f30

Browse files
committed
Add Identifiable conformance to Row and Section
1 parent b30da69 commit 3ca2f30

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

WordPress/Classes/ViewRelated/Me/App Settings/Boolean User Defaults/BooleanUserDefaultsDebugView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ struct BooleanUserDefaultsDebugView: View {
55

66
var body: some View {
77
List {
8-
ForEach(viewModel.userDefaultsSections, id: \.id) { section in
8+
ForEach(viewModel.userDefaultsSections) { section in
99
Section(header: Text(section.key)
1010
.font(.caption)) {
11-
ForEach(section.rows, id: \.id) { row in
11+
ForEach(section.rows) { row in
1212
let isOn = Binding<Bool>(
1313
get: {
1414
row.value

WordPress/Classes/ViewRelated/Me/App Settings/Boolean User Defaults/BooleanUserDefaultsDebugViewModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ final class BooleanUserDefaultsDebugViewModel: ObservableObject {
114114

115115
// MARK: - Types
116116

117-
struct Section {
117+
struct Section: Identifiable {
118118
let id: String = UUID().uuidString
119119
let key: String
120120
let rows: [Row]
121121
}
122122

123-
final class Row {
123+
final class Row: Identifiable {
124124
let id: String = UUID().uuidString
125125
let key: String
126126
let title: String

0 commit comments

Comments
 (0)