@@ -22,8 +22,12 @@ struct ChatSettingsView: View {
2222 @AppStorage ( \. chatModels) var chatModels
2323 @AppStorage ( \. embeddingModels) var embeddingModels
2424 @AppStorage ( \. wrapCodeInChatCodeBlock) var wrapCodeInCodeBlock
25- @AppStorage ( \. keepFloatOnTopIfChatPanelAndXcodeOverlaps) var keepFloatOnTopIfChatPanelAndXcodeOverlaps
26- @AppStorage ( \. disableFloatOnTopWhenTheChatPanelIsDetached) var disableFloatOnTopWhenTheChatPanelIsDetached
25+ @AppStorage (
26+ \. keepFloatOnTopIfChatPanelAndXcodeOverlaps
27+ ) var keepFloatOnTopIfChatPanelAndXcodeOverlaps
28+ @AppStorage (
29+ \. disableFloatOnTopWhenTheChatPanelIsDetached
30+ ) var disableFloatOnTopWhenTheChatPanelIsDetached
2731
2832 init ( ) { }
2933 }
@@ -157,22 +161,22 @@ struct ChatSettingsView: View {
157161 }
158162
159163 Toggle ( isOn: $settings. wrapCodeInCodeBlock) {
160- Text ( " Wrap code in code block " )
161- }
162-
163- Toggle ( isOn: $settings. disableFloatOnTopWhenTheChatPanelIsDetached) {
164- Text ( " Disable float on top when the chat panel is detached " )
165- }
166-
167- Toggle ( isOn: $settings. keepFloatOnTopIfChatPanelAndXcodeOverlaps) {
168- Text ( " But, keep float on top if chat panel and Xcode overlaps " )
164+ Text ( " Wrap text in code block " )
169165 }
170166
171167 #if canImport(ProHostApp)
172168
173169 CodeHighlightThemePicker ( scenario: . chat)
174170
175171 #endif
172+
173+ Toggle ( isOn: $settings. disableFloatOnTopWhenTheChatPanelIsDetached) {
174+ Text ( " Disable float on top when the chat panel is detached " )
175+ }
176+
177+ Toggle ( isOn: $settings. keepFloatOnTopIfChatPanelAndXcodeOverlaps) {
178+ Text ( " But, keep float on top if chat panel and Xcode overlaps " )
179+ }
176180 }
177181 }
178182
@@ -348,7 +352,7 @@ struct ChatSettingsView: View {
348352 Text ( """
349353 Enable the bot to search code and texts \
350354 in the project, third party packages and the SDK.
351-
355+
352356 The current implementation only performs keyword search.
353357 """ )
354358 } else: {
@@ -361,7 +365,7 @@ struct ChatSettingsView: View {
361365 WithFeatureEnabled ( \. senseScopeInChat, alignment: . inlineLeading) {
362366 Text ( " the project, third party packages and the SDK. " )
363367 }
364-
368+
365369 Text ( " The current implementation only performs keyword search. " )
366370 }
367371 }
0 commit comments