Skip to content

Commit 7ec0204

Browse files
committed
Do not use $0
... nicer.
1 parent ce05306 commit 7ec0204

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ struct ContentView: View {
155155
.tag(language)
156156
}
157157
}
158-
Picker("Theme", selection: $theme) {
158+
Picker("Theme", selection: $theme) { theme in
159159
ForEach(CodeEditor.availableThemes) {
160-
Text("\($0.rawValue.capitalized)")
161-
.tag($0)
160+
Text("\(theme.rawValue.capitalized)")
161+
.tag(theme)
162162
}
163163
}
164164
}
@@ -168,7 +168,7 @@ struct ContentView: View {
168168

169169
#if os(macOS)
170170
CodeEditor(source: $source, language: language, theme: theme,
171-
fontSize: .init(get: { CGFloat(fontSize) },
171+
fontSize: .init(get: { CGFloat(fontSize) },
172172
set: { fontSize = Int($0) }))
173173
.frame(minWidth: 640, minHeight: 480)
174174
#else

0 commit comments

Comments
 (0)