Skip to content

Commit 343c1f7

Browse files
committed
Allow setting value lower than 10
1 parent 33d0081 commit 343c1f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Copilot for Xcode/SettingsView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ struct SettingsView: View {
198198
TextField(text: .init(get: {
199199
"\(Int(settings.chatFontSize))"
200200
}, set: {
201-
settings.chatFontSize = Double(Int($0) ?? 1)
201+
settings.chatFontSize = Double(Int($0) ?? 0)
202202
})) {
203203
Text("Font size of chat message")
204204
}
@@ -211,7 +211,7 @@ struct SettingsView: View {
211211
TextField(text: .init(get: {
212212
"\(Int(settings.chatCodeFontSize))"
213213
}, set: {
214-
settings.chatCodeFontSize = Double(Int($0) ?? 1)
214+
settings.chatCodeFontSize = Double(Int($0) ?? 0)
215215
})) {
216216
Text("Font size of code block in chat")
217217
}
@@ -224,7 +224,7 @@ struct SettingsView: View {
224224
TextField(text: .init(get: {
225225
"\(Int(settings.suggestionCodeFontSize))"
226226
}, set: {
227-
settings.suggestionCodeFontSize = Double(Int($0) ?? 1)
227+
settings.suggestionCodeFontSize = Double(Int($0) ?? 0)
228228
})) {
229229
Text("Font size of suggestion code")
230230
}

0 commit comments

Comments
 (0)