Skip to content

Commit 63bc41e

Browse files
committed
Add toggles to UI
1 parent 9202191 commit 63bc41e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Core/Sources/HostApp/FeatureSettings/ChatSettingsView.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ 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
2527

2628
init() {}
2729
}
@@ -157,6 +159,14 @@ struct ChatSettingsView: View {
157159
Toggle(isOn: $settings.wrapCodeInCodeBlock) {
158160
Text("Wrap code in code block")
159161
}
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")
169+
}
160170

161171
#if canImport(ProHostApp)
162172

0 commit comments

Comments
 (0)