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
31 lines (25 loc) · 853 Bytes
/
CopilotMessageHeader.swift
File metadata and controls
31 lines (25 loc) · 853 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
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)
.scaledFrame(width: 24, height: 24)
Image("CopilotLogo")
.resizable()
.renderingMode(.template)
.scaledToFit()
.scaledFrame(width: 14, height: 14)
}
Text("GitHub Copilot")
.scaledFont(size: 13, weight: .semibold)
.padding(.leading, 4)
Spacer()
}
}
}