forked from intitni/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContentView.swift
More file actions
47 lines (44 loc) · 1.29 KB
/
ContentView.swift
File metadata and controls
47 lines (44 loc) · 1.29 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
47
import AppKit
import CopilotModel
import SwiftUI
struct ContentView: View {
@Environment(\.openURL) var openURL
@AppStorage("username") var username: String = ""
@State var copilotStatus: CopilotStatus?
@State var message: String?
@State var userCode: String?
var body: some View {
ScrollView {
VStack(alignment: .leading, spacing: 8) {
AppInfoView()
LaunchAgentView()
AccountView()
SettingsView()
InstructionView()
DebugSettingsView()
Spacer()
}
.padding(.all, 12)
}
.background(LinearGradient(
colors: [Color("BackgroundColorTop"), Color("BackgroundColor")],
startPoint: .topLeading,
endPoint: .bottom
))
.overlay(alignment: .top) {
LinearGradient(
colors: [Color("BackgroundColorTop"), Color("BackgroundColorTop").opacity(0)],
startPoint: .center,
endPoint: .bottom
)
.frame(height: 44)
.ignoresSafeArea()
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
.frame(height: 1200)
}
}