Skip to content

Commit fb5f749

Browse files
committed
Hello from a working version
0 parents  commit fb5f749

File tree

80 files changed

+4042
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+4042
-0
lines changed

.gitignore

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
# Created by
2+
https://www.toptal.com/developers/gitignore/api/xcode,macos,swift,swiftpackagemanager
3+
# Edit at
4+
https://www.toptal.com/developers/gitignore?templates=xcode,macos,swift,swiftpackagemanager
5+
6+
### macOS ###
7+
# General
8+
.DS_Store
9+
.AppleDouble
10+
.LSOverride
11+
12+
# Icon must end with two \r
13+
Icon
14+
15+
16+
# Thumbnails
17+
._*
18+
19+
# Files that might appear in the root of a volume
20+
.DocumentRevisions-V100
21+
.fseventsd
22+
.Spotlight-V100
23+
.TemporaryItems
24+
.Trashes
25+
.VolumeIcon.icns
26+
.com.apple.timemachine.donotpresent
27+
28+
# Directories potentially created on remote AFP share
29+
.AppleDB
30+
.AppleDesktop
31+
Network Trash Folder
32+
Temporary Items
33+
.apdisk
34+
35+
### macOS Patch ###
36+
# iCloud generated files
37+
*.icloud
38+
39+
### Swift ###
40+
# Xcode
41+
#
42+
# gitignore contributors: remember to update Global/Xcode.gitignore,
43+
Objective-C.gitignore & Swift.gitignore
44+
45+
## User settings
46+
xcuserdata/
47+
48+
## compatibility with Xcode 8 and earlier (ignoring not required starting
49+
Xcode 9)
50+
*.xcscmblueprint
51+
*.xccheckout
52+
53+
## compatibility with Xcode 3 and earlier (ignoring not required starting
54+
Xcode 4)
55+
build/
56+
DerivedData/
57+
*.moved-aside
58+
*.pbxuser
59+
!default.pbxuser
60+
*.mode1v3
61+
!default.mode1v3
62+
*.mode2v3
63+
!default.mode2v3
64+
*.perspectivev3
65+
!default.perspectivev3
66+
67+
## Obj-C/Swift specific
68+
*.hmap
69+
70+
## App packaging
71+
*.ipa
72+
*.dSYM.zip
73+
*.dSYM
74+
75+
## Playgrounds
76+
timeline.xctimeline
77+
playground.xcworkspace
78+
79+
# Swift Package Manager
80+
# Add this line if you want to avoid checking in source code from Swift
81+
Package Manager dependencies.
82+
# Packages/
83+
# Package.pins
84+
# Package.resolved
85+
# *.xcodeproj
86+
# Xcode automatically generates this directory with a .xcworkspacedata
87+
file and xcuserdata
88+
# hence it is not needed unless you have added a package configuration
89+
file to your project
90+
# .swiftpm
91+
92+
.build/
93+
94+
# CocoaPods
95+
# We recommend against adding the Pods directory to your .gitignore.
96+
However
97+
# you should judge for yourself, the pros and cons are mentioned at:
98+
#
99+
https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
100+
# Pods/
101+
# Add this line if you want to avoid checking in source code from the
102+
Xcode workspace
103+
# *.xcworkspace
104+
105+
# Carthage
106+
# Add this line if you want to avoid checking in source code from Carthage
107+
dependencies.
108+
# Carthage/Checkouts
109+
110+
Carthage/Build/
111+
112+
# Accio dependency management
113+
Dependencies/
114+
.accio/
115+
116+
# fastlane
117+
# It is recommended to not store the screenshots in the git repo.
118+
# Instead, use fastlane to re-generate the screenshots whenever they are
119+
needed.
120+
# For more information about the recommended setup visit:
121+
#
122+
https://docs.fastlane.tools/best-practices/source-control/#source-control
123+
124+
fastlane/report.xml
125+
fastlane/Preview.html
126+
fastlane/screenshots/**/*.png
127+
fastlane/test_output
128+
129+
# Code Injection
130+
# After new code Injection tools there's a generated folder
131+
/iOSInjectionProject
132+
# https://github.com/johnno1962/injectionforxcode
133+
134+
iOSInjectionProject/
135+
136+
### SwiftPackageManager ###
137+
Packages
138+
xcuserdata
139+
*.xcodeproj
140+
141+
142+
### Xcode ###
143+
144+
## Xcode 8 and earlier
145+
146+
### Xcode Patch ###
147+
*.xcodeproj/*
148+
!*.xcodeproj/project.pbxproj
149+
!*.xcodeproj/xcshareddata/
150+
!*.xcodeproj/project.xcworkspace/
151+
!*.xcworkspace/contents.xcworkspacedata
152+
/*.gcno
153+
**/xcshareddata/WorkspaceSettings.xcsettings
154+
155+
# End of
156+
https://www.toptal.com/developers/gitignore/api/xcode,macos,swift,swiftpackagemanager

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "copilot.vim"]
2+
path = copilot.vim
3+
url = git@github.com:github/copilot.vim.git

.swiftformat

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
--allman false
2+
--beforemarks
3+
--binarygrouping 4,8
4+
--categorymark "MARK: %c"
5+
--classthreshold 0
6+
--closingparen balanced
7+
--commas always
8+
--conflictmarkers reject
9+
--decimalgrouping 3,6
10+
--elseposition same-line
11+
--enumthreshold 0
12+
--exponentcase lowercase
13+
--exponentgrouping disabled
14+
--fractiongrouping disabled
15+
--fragment false
16+
--funcattributes preserve
17+
--guardelse auto
18+
--header ignore
19+
--hexgrouping 4,8
20+
--hexliteralcase uppercase
21+
--ifdef no-indent
22+
--importgrouping testable-bottom
23+
--indent 2
24+
--indentcase false
25+
--lifecycle
26+
--linebreaks lf
27+
--maxwidth 100
28+
--modifierorder
29+
--nospaceoperators ...,..<
30+
--nowrapoperators
31+
--octalgrouping 4,8
32+
--operatorfunc spaced
33+
--patternlet hoist
34+
--ranges spaced
35+
--self remove
36+
--selfrequired
37+
--semicolons inline
38+
--shortoptionals always
39+
--smarttabs enabled
40+
--stripunusedargs unnamed-only
41+
--structthreshold 0
42+
--tabwidth unspecified
43+
--trailingclosures
44+
--trimwhitespace always
45+
--typeattributes preserve
46+
--varattributes preserve
47+
--voidtype void
48+
--wraparguments before-first
49+
--wrapcollections disabled
50+
--wrapparameters before-first
51+
--xcodeindentation disabled
52+
--yodaswap always
53+
54+
--enable isEmpty
55+
56+
--exclude Pods,**/Generated

AppIcon.png

29.8 KB
Loading

Config.debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BUNDLE_IDENTIFIER_BASE = dev.com.intii.CopilotForXcode

Config.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BUNDLE_IDENTIFIER_BASE = com.intii.CopilotForXcode

Copilot for Xcode/App.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import SwiftUI
2+
3+
@main
4+
struct CopilotForXcodeApp: App {
5+
var body: some Scene {
6+
return WindowGroup {
7+
ContentView()
8+
.frame(minWidth: 500, maxWidth: .infinity, minHeight: 700)
9+
}
10+
.windowStyle(.hiddenTitleBar)
11+
}
12+
}
13+
14+
var isPreview: Bool { ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" }
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import SwiftUI
2+
3+
struct AppInfoView: View {
4+
@State var appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String
5+
6+
var body: some View {
7+
Section {
8+
VStack(alignment: .leading) {
9+
HStack(alignment: .top) {
10+
Text("Copilot For Xcode")
11+
.font(.title)
12+
Text(appVersion ?? "")
13+
.font(.footnote)
14+
.foregroundColor(.white.opacity(0.5))
15+
16+
Spacer()
17+
}
18+
19+
Link(destination: URL(string: "https://github.com/intitni/CopilotForXcode")!) {
20+
HStack(spacing: 2) {
21+
Image(systemName: "link")
22+
Text("GitHub")
23+
}
24+
}
25+
.focusable(false)
26+
}
27+
}
28+
}
29+
}
30+
31+
struct AppInfoView_Preview: PreviewProvider {
32+
static var previews: some View {
33+
AppInfoView()
34+
.background(.black)
35+
}
36+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "app-icon-realistic-materials_2x 9.png",
5+
"idiom" : "mac",
6+
"scale" : "1x",
7+
"size" : "16x16"
8+
},
9+
{
10+
"filename" : "app-icon-realistic-materials_2x 8.png",
11+
"idiom" : "mac",
12+
"scale" : "2x",
13+
"size" : "16x16"
14+
},
15+
{
16+
"filename" : "app-icon-realistic-materials_2x 7.png",
17+
"idiom" : "mac",
18+
"scale" : "1x",
19+
"size" : "32x32"
20+
},
21+
{
22+
"filename" : "app-icon-realistic-materials_2x 6.png",
23+
"idiom" : "mac",
24+
"scale" : "2x",
25+
"size" : "32x32"
26+
},
27+
{
28+
"filename" : "app-icon-realistic-materials_2x 5.png",
29+
"idiom" : "mac",
30+
"scale" : "1x",
31+
"size" : "128x128"
32+
},
33+
{
34+
"filename" : "app-icon-realistic-materials_2x 4.png",
35+
"idiom" : "mac",
36+
"scale" : "2x",
37+
"size" : "128x128"
38+
},
39+
{
40+
"filename" : "app-icon-realistic-materials_2x 3.png",
41+
"idiom" : "mac",
42+
"scale" : "1x",
43+
"size" : "256x256"
44+
},
45+
{
46+
"filename" : "app-icon-realistic-materials_2x 2.png",
47+
"idiom" : "mac",
48+
"scale" : "2x",
49+
"size" : "256x256"
50+
},
51+
{
52+
"filename" : "app-icon-realistic-materials_2x 1.png",
53+
"idiom" : "mac",
54+
"scale" : "1x",
55+
"size" : "512x512"
56+
},
57+
{
58+
"filename" : "app-icon-realistic-materials_2x.png",
59+
"idiom" : "mac",
60+
"scale" : "2x",
61+
"size" : "512x512"
62+
}
63+
],
64+
"info" : {
65+
"author" : "xcode",
66+
"version" : 1
67+
}
68+
}

0 commit comments

Comments
 (0)