-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathChatNoWorkspaceView.swift
More file actions
48 lines (42 loc) · 1.56 KB
/
ChatNoWorkspaceView.swift
File metadata and controls
48 lines (42 loc) · 1.56 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
48
import SwiftUI
import Perception
import SharedUIComponents
struct ChatNoWorkspaceView: View {
var body: some View {
WithPerceptionTracking {
VStack(spacing: 0) {
VStack(alignment: .center, spacing: 32) {
Spacer()
VStack (alignment: .center, spacing: 8) {
Image("CopilotLogo")
.resizable()
.renderingMode(.template)
.scaledToFill()
.scaledFrame(width: 64.0, height: 64.0)
.foregroundColor(.secondary)
Text("No Active Xcode Workspace")
.scaledFont(.largeTitle)
.multilineTextAlignment(.center)
Text("To use Copilot, open Xcode with an active workspace in focus")
.scaledFont(.body)
.multilineTextAlignment(.center)
}
CopilotIntroView()
Spacer()
}
.padding()
.frame(
maxWidth: .infinity,
maxHeight: .infinity
)
}
.xcodeStyleFrame()
.ignoresSafeArea(edges: .top)
}
}
}
struct ChatNoWorkspace_Previews: PreviewProvider {
static var previews: some View {
ChatNoWorkspaceView()
}
}