forked from github/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCopilotMessageHeader.swift
More file actions
32 lines (26 loc) · 864 Bytes
/
CopilotMessageHeader.swift
File metadata and controls
32 lines (26 loc) · 864 Bytes
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
import SwiftUI
public struct CopilotMessageHeader: View {
let spacing: CGFloat
public init(spacing: CGFloat = 4) {
self.spacing = spacing
}
public var body: some View {
HStack(spacing: spacing) {
ZStack {
Circle()
.stroke(Color(nsColor: .separatorColor), lineWidth: 1)
.frame(width: 24, height: 24)
Image("CopilotLogo")
.resizable()
.renderingMode(.template)
.scaledToFit()
.frame(width: 12, height: 12)
}
Text("GitHub Copilot")
.font(.system(size: 13))
.fontWeight(.semibold)
.padding(.leading, 4)
Spacer()
}
}
}