forked from intitni/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFeatureSettingsView.swift
More file actions
47 lines (41 loc) · 1.15 KB
/
FeatureSettingsView.swift
File metadata and controls
47 lines (41 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import SwiftUI
struct FeatureSettingsView: View {
@State var tag = 0
var body: some View {
SidebarTabView(tag: $tag) {
ScrollView {
SuggestionSettingsView().padding()
}
.sidebarItem(
tag: 0,
title: "Suggestion",
subtitle: "Generate suggestions for your code",
image: "lightbulb"
)
ScrollView {
ChatSettingsView().padding()
}
.sidebarItem(
tag: 1,
title: "Chat",
subtitle: "Chat about your code",
image: "character.bubble"
)
ScrollView {
PromptToCodeSettingsView().padding()
}
.sidebarItem(
tag: 2,
title: "Prompt to Code",
subtitle: "Write code with natural language",
image: "paintbrush"
)
}
}
}
struct FeatureSettingsView_Previews: PreviewProvider {
static var previews: some View {
FeatureSettingsView()
.frame(width: 800)
}
}