We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce05306 commit 7ec0204Copy full SHA for 7ec0204
1 file changed
README.md
@@ -155,10 +155,10 @@ struct ContentView: View {
155
.tag(language)
156
}
157
158
- Picker("Theme", selection: $theme) {
+ Picker("Theme", selection: $theme) { theme in
159
ForEach(CodeEditor.availableThemes) {
160
- Text("\($0.rawValue.capitalized)")
161
- .tag($0)
+ Text("\(theme.rawValue.capitalized)")
+ .tag(theme)
162
163
164
@@ -168,7 +168,7 @@ struct ContentView: View {
168
169
#if os(macOS)
170
CodeEditor(source: $source, language: language, theme: theme,
171
- fontSize: .init(get: { CGFloat(fontSize) },
+ fontSize: .init(get: { CGFloat(fontSize) },
172
set: { fontSize = Int($0) }))
173
.frame(minWidth: 640, minHeight: 480)
174
#else
0 commit comments