-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0224e8
commit 71b6720
Showing
5 changed files
with
132 additions
and
23 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
ExtensionService/Assets.xcassets/CopilotLogo.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "copilot.svg", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"preserves-vector-representation" : true | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
ExtensionService/Assets.xcassets/CopilotLogo.imageset/copilot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import SwiftUI | ||
|
||
public struct HalfCapsule: Shape { | ||
public func path(in rect: CGRect) -> Path { | ||
Path { path in | ||
path.move(to: .init(x:0, y: 0)) | ||
path.addLine(to: .init(x:rect.width, y:0)) | ||
path.addArc( | ||
center: .init(x: rect.width - rect.height/2, y: rect.height/2), | ||
radius: rect.height/2, | ||
startAngle: .degrees(270), | ||
endAngle: .degrees(90), | ||
clockwise: false | ||
) | ||
path.addLine(to: CGPoint(x:0, y:rect.height)) | ||
path.addLine(to: CGPoint(x:0, y:rect.height)) | ||
} | ||
} | ||
} |